Skip to content

Commit

Permalink
docs(docs): update sphinx docs
Browse files Browse the repository at this point in the history
  • Loading branch information
caizhengxin committed Jan 2, 2020
1 parent 0e21c87 commit 629f069
Show file tree
Hide file tree
Showing 7 changed files with 86 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/source/changelog.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.. include:: ../../CHANGELOG.rst
12 changes: 12 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# -*- coding: utf-8 -*-
# @Author: JanKinCai
# @Date: 2019-12-30 21:47:52
# @Last Modified by: JanKinCai
# @Last Modified time: 2020-01-02 12:40:57
# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
Expand Down Expand Up @@ -34,6 +39,9 @@
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.viewcode",
"sphinx.ext.extlinks",
"sphinx.ext.napoleon",
"sphinx.ext.todo",
"sphinx.ext.coverage",
"sphinx.ext.githubpages",
"sphinx.ext.inheritance_diagram",
Expand Down Expand Up @@ -62,3 +70,7 @@
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']

# TODO

todo_include_todos = True
13 changes: 13 additions & 0 deletions docs/source/datatype.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Support Data Type
-----------------

* boolean
* string
* int
* float
* list
* choice
* mac
* ipv4
* cidr, eg: ``192.168.1.1/24``
* hex
7 changes: 7 additions & 0 deletions docs/source/feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Features
--------

* Interact input
* Supports multiple data types
* Support input check
* Support regex
5 changes: 3 additions & 2 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,17 @@
contain the root `toctree` directive.
Welcome to interact-cli's documentation!
================================================
========================================

.. toctree::
:maxdepth: 2
:caption: documentation:
:caption: documentation

introduction
installation
usage
modules
changelog
api


Expand Down
3 changes: 3 additions & 0 deletions docs/source/introduction.rst
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
Introduction
============

.. include:: ../../README.rst
47 changes: 47 additions & 0 deletions docs/source/modules.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
Interact cli
============

Interact
--------

.. automodule:: interact.__init__
:members:
:noindex:
:undoc-members:
:show-inheritance:

Base
----

.. automodule:: interact.base
:members:
:noindex:
:undoc-members:
:show-inheritance:

Fields
------

.. automodule:: interact.fields
:members:
:noindex:
:undoc-members:
:show-inheritance:

When
----

.. automodule:: interact.when
:members:
:noindex:
:undoc-members:
:show-inheritance:

Utils
-----

.. automodule:: interact.utils
:members:
:noindex:
:undoc-members:
:show-inheritance:

0 comments on commit 629f069

Please sign in to comment.