Skip to main content

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.

Usage

Please see the demo directory for more information.

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

sphinx-inplace-0.0.3.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

sphinx_inplace-0.0.3-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file sphinx-inplace-0.0.3.tar.gz.

File metadata

  • Download URL: sphinx-inplace-0.0.3.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for sphinx-inplace-0.0.3.tar.gz
Algorithm Hash digest
SHA256 c294b7e353701d70a7cbbb110319ef09af21fca52ed16d4fd17e287a8664cef1
MD5 e752e38d5ede48a3f7178fef5386450c
BLAKE2b-256 905c92f693977574705cc8676e0b6862e6cf50ae62a4efa808b6b92e5def6500

See more details on using hashes here.

File details

Details for the file sphinx_inplace-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: sphinx_inplace-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for sphinx_inplace-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fbf973d96280bd39e6f1d8f5d7d0e5a59c8af291fc95e7ce3f85bf5d69fc82ce
MD5 2c4942483a8165c33555790046acfcac
BLAKE2b-256 00d506826550185a18958175e2b6ffb1d57bdbb1dcd41b8bb3ba1a8649892127

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page