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

Add basic documentation + small fixes #4

Merged
merged 4 commits into from
Jul 19, 2024

Conversation

igoumiri
Copy link
Contributor

Add some basic documentation for the API reference. Also clean up some of the imports so that the imported classes don't appear as duplicates in the API reference. I wonder if there is a cleaner way to do that than importing Thing as _Thing like I did.

Add a README in docs/ to explain how to build the docs.

Also fix some leftover x2y -> x_to_y references to util functions, mostly in tests.


Then open `_build/html/index.html` to browse the docs locally.

Note that if you updated docstrings, you'll need to re-build and re-install ssapy before re-building the docs.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might add that you can also use the python package sphinx-autobuild to build and host the documentation (https://pypi.org/project/sphinx-autobuild/). To view the documentation point the browser to http://127.0.0.1:8000/.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! I tried but I'm using python 3.9 and the version of sphinx-autobuild I have installed requires python 3.10+ (we should pin versions!)

I still added it to the README!

@@ -34,7 +34,7 @@ These requirements can be easily installed on most modern macOS and Linux system
.. code-block:: console

brew update
brew install gcc git git-lfs python3 svn graphviz
brew install gcc git git-lfs python3 graphviz
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you remove svn?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It couldn't tell why it was needed, I didn't install it and didn't run into any issues, and it didn't seem required for other platforms (lines above) so I assumed it was outdated. Is it still needed?

@SuperdoerTrav SuperdoerTrav merged commit e4036a0 into LLNL:main Jul 19, 2024
5 checks passed
aperloff pushed a commit that referenced this pull request Jan 13, 2025
Add basic documentation + small fixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants