Skip to content

Commit

Permalink
Add doc generated from code and docstrings
Browse files Browse the repository at this point in the history
GitHub: fix mxcube#804
  • Loading branch information
fabcor-maxiv committed Oct 13, 2023
1 parent bee4273 commit 5789292
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ build:
- "asdf plugin add poetry"
- "asdf install poetry latest"
- "asdf global poetry latest"
- "poetry install --only docs"
- "poetry install --only docs,main"
- "poetry run sphinx-build -T -E -b html -c ./docs/ ./docs/source/ ${READTHEDOCS_OUTPUT}/html/"


Expand Down
16 changes: 16 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@

extensions = [
"myst_parser",
"sphinx.ext.autodoc",
"sphinx.ext.autosummary",
]

root_doc = "contents"
Expand All @@ -57,4 +59,18 @@
}


# -- Options for sphinx.ext.autodoc ------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html

autodoc_default_options = {
'members': True,
}


# -- Options for sphinx.ext.autosummary --------------------------------------
# https://www.sphinx-doc.org/en/master/usage/extensions/autosummary.html

autosummary_generate = True


# EOF
15 changes: 15 additions & 0 deletions docs/source/dev/api.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
..

***
API
***

.. autosummary::
:toctree: autosummary
:recursive:

mxcubecore


.. EOF
7 changes: 7 additions & 0 deletions docs/source/dev/autosummary/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#


*


# EOF

0 comments on commit 5789292

Please sign in to comment.