-
Notifications
You must be signed in to change notification settings - Fork 262
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
Updated Documentation #100
Conversation
…documentation_old
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also add the installation dependencies to build using sphinx .
No longer need generate_documentation.py. Deprecating that script for now but may need it later if api-docs needs further changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check the Conversation tab for updates to documentation process.
@Abdullahshah Any updates on this PR? Let's merge this as early as possible. |
Add sphinx and sphinx_rtd_theme to conda environment file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Version 2 (current):
The api-docs now uses a new recursive way to find source code and build summary pages for them for our documentation. The only change moving forward would be to add a quick description in the
__init__.py
files for each module. An example would be:__init__.py: """ A quick description of the module """
Sphinx auto-doc will take this string and set it as a quick description for the module's page.
To generate the documentation, navigate to
eva/api-docs/
and runmake clean && make html
. This will create the HTML files under_build
which you can use to view the changes locally. It also generates the.rst
files underapi-docs/_autosummary
which are used by Spinx to generate the HTML contentVersion 1 (OLD):
Created script
generate_documentation.py
which creates the documenation.rst
using the jinja templating engine.(this script can only be run from the root directory -> but there is a check for this in the script)
To test these changes, enter the conda environment, navigate to the directory
api-docs
and runmake html
. This will generate a local copy of the website under the directory_build
which can be opened in the browser.