Collection of CLIs, scripts and modules useful to generate the NWB documentation
Project description
This project is under active development. Its content, API and behavior may change at any time. We mean it.
Overview
This project is a collection of CLIs, scripts and modules useful to generate the HDMF documentation.
Using hdmf-docutils to generate documentation for an extension: http://pynwb.readthedocs.io/en/latest/extensions.html#documenting-extensions
To cite this tool use: (HDMF Documentation Utilities, RRID:SCR_021341)
Installation
pip install hdmf-docutils
Available Tools
hdmf_generate_format_docs: Generate figures and RST documents from the HDMF YAML specification for the format specification documentation. Previously called “nwb_generate_format_docs”.
hdmf_init_sphinx_extension_doc: Create format specification SPHINX documentation for an HDMF extension. Previously called “nwb_init_sphinx_extension_doc”.
hdmf_gallery_prototype: Tool for prototyping sphinx gallery examples. Previously called “nwb_gallery_prototype”.
Available Modules
hdmf_docutils/doctools/*: This package contains modules used to generate figures of the hierarchies of HDMF files and specifications as well as to help with the programmatic generation of reStructuredText (RST) documents.
Available Notebooks
compare-hdf5-files.ipynb: This notebook illustrates how to compare hdf5 files.
History
nwb-docutils was renamed to hdmf-docutils and generalized to be (mostly) independent of NWB in January, 2020.
nwb-docutils was initially a sub-directory of the nwb-schema project. Corresponding history was extracted during the 4th NWB Hackathon into a dedicated pip-installable project to facilitate its use by both core NWB documentation projects and various NWB extensions.
Usage
pip install hdmf-docutils
For the purpose of this example, we assume that our current directory has the following structure.
- my_extension/
- my_extension_source/
- mylab.namespace.yaml
- mylab.specs.yaml
- ...
- docs/ (Optional)
- mylab_description.rst
- mylab_release_notes.rst
In addition to Python 3.x, you will also need sphinx (including the sphinx-quickstart tool) installed. Sphinx is available here http://www.sphinx-doc.org/en/stable/install.html .
We can now create the sources of our documentation as follows:
python3 hdmf_init_sphinx_extension_doc \
--project my-extension \
--author "Dr. Master Expert" \
--version "1.2.3" \
--release alpha \
--output my_extension_docs \
--spec_dir my_extension_source \
--namespace_filename mylab.namespace.yaml \
--default_namespace mylab
--external_description my_extension_source/docs/mylab_description.rst \ (Optional)
--external_release_notes my_extension_source/docs/mylab_release_notes.rst \ (Optional)
.. tip::
Additional instructions for how to use and customize the extension documentations are also available
in the ``Readme.md`` file that ``init_sphinx_extension_doc.py`` automatically adds to the docs.
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 hdmf_docutils-0.4.4.tar.gz
.
File metadata
- Download URL: hdmf_docutils-0.4.4.tar.gz
- Upload date:
- Size: 1.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1867eb5f385c374ae18df92114cafea6b7f5c2d12e4b56dbdd8a850664d44a4c |
|
MD5 | 83f2f1ae84f735b58ec5591f4abf037f |
|
BLAKE2b-256 | 8732fce67e00b2cef89e63ad7aaa43da18d96dcffc74f53f204f15a466c0d4b8 |
File details
Details for the file hdmf_docutils-0.4.4-py2.py3-none-any.whl
.
File metadata
- Download URL: hdmf_docutils-0.4.4-py2.py3-none-any.whl
- Upload date:
- Size: 1.6 MB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56fac91b7dce9d334b2cf12688ba95739fb3149eb783947423c9759d0048a359 |
|
MD5 | 107953e4826a26154950a60837f15da0 |
|
BLAKE2b-256 | 02321dcf576fd6d74c15fe6d54acb3c09e79da7e4fa2fb7f5b06ead65a9816dd |