Automatically manage *.rst files in sphinx projects
Project description
Sphinx Inplace
.. toctree:: :maxdepth: 2
file_tree.rst
rst_generator.rst
doc_guide/index.rst
Sphinx provides powerful functions, but provides few functions about edit doc inplace. We have to generate rst files and edit the rst files. This package provides a new procedure, that we can write code just in the same directory with python files.
The code was firstly used in pyminer.
This package aims to replace sphinx-apidoc
.
The source docstring is parsed and then generate doc with levels.
In a normal sphinx project,
developers have to maintain *.rst directory.
Sphinx
provides series of directors to generate html from python source code.
sphinx-apidoc
is required to create *.rst
file structure.
However, if python structure changed, developers have to update *.doc
file structure manually.
This tool do not need apidoc
, and all the doc will automatically generated from python code.
Tips
__init__.py
are important files, the same as in python project.
Directory with __init__.py
will be regarded as the python package,
and the package template will be used.
All the assets can be put in the same directory as *.py
files.
The assets will be copy to the docs/rst
directory.
Thus, relative path is available in *.rst
and *.md
files.
If you are not satisfied with the auto generated *.rst
file,
you can create the {filename}.rst
file at the same directory with the {filename}.py
.
The new rst file will cover the autogenerated rst file.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file sphinx-inplace-0.0.2.tar.gz
.
File metadata
- Download URL: sphinx-inplace-0.0.2.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d43885345c1329fbfbd4cca301c80a533b5ec3233b4c45b8691d1fd3aee9a06 |
|
MD5 | 3a7e0311ef839abfb4cbfd8bb4504d99 |
|
BLAKE2b-256 | b44024fad8099e7878ac99bb61d119922f3d20c8e9198c909677434c1189ac20 |
File details
Details for the file sphinx_inplace-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: sphinx_inplace-0.0.2-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c79817bc1cef1303824951b60b4266a189dd9297e28a6d354d9f2e8aaa0c6cc5 |
|
MD5 | 1e11247c8242a81467198342e36a1660 |
|
BLAKE2b-256 | 2507809437bd078facdc709efe48ddfbda0ca1163bc229fdeace3921632d96a7 |