Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sphinx configuration for NEMSpy #57

Open
ghost opened this issue Nov 10, 2021 · 0 comments
Open

Sphinx configuration for NEMSpy #57

ghost opened this issue Nov 10, 2021 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@ghost
Copy link

ghost commented Nov 10, 2021

Sphinx RST files in docs directory

I generated the docs directory using the sphinx-quickstart command
./docs

index.rst (docs homepage)

this page includes the README file using m2r2, and then includes a hidden table of contents (so the sidebar includes these links)

.. mdinclude:: ../../README.md
.. toctree::
:hidden:
nemspy.interface
nemspy.model
nemspy.configuration
nemspy.utilities

example of a module page

Sphinx can use automodule, autoclass, and autofunction

``ModelingSystem`` Interface
============================
.. automodule:: nemspy.interface

dependencies

'documentation': ['dunamai', 'm2r2', 'sphinx', 'sphinx-rtd-theme'],

pip install -e .[documentation]

building locally

to build the website with Sphinx, run the following:

cd docs
make html

ReadTheDocs configuration

nemspy/.readthedocs.yml

Lines 1 to 20 in 08b454c

# .readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
version: 2
build:
os: ubuntu-20.04
tools:
python: "3.9"
sphinx:
configuration: docs/source/conf.py
python:
install:
- method: pip
path: .
extra_requirements:
- documentation

@ghost ghost self-assigned this Nov 10, 2021
@ghost ghost added the documentation Improvements or additions to documentation label Nov 10, 2021
@ghost ghost changed the title add more docstrings to NEMSpy Sphinx configuration for NEMSpy Dec 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

0 participants