HTML Rendered Documentation via Sphinx #54
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR to create HTML documentation using Sphinx and with an associated GitHub Actions workflow to generate and push the documentation to GitHub Pages. I think this PR covers the basics and includes most of the existing information / examples / doc-strings, but there is always room for further improvement...
What this PR does
This PR creates HTML documentation for the package by leveraging Sphinx to convert reStructuredText files into HTML, and to auto-document the
.pyfiles. Via a GitHub Actions workflow (also part of this PR), the documentation will be automatically generated and made available via GitHub Pages.Specifically the documentation created will contain:
How to build and view the documentation locally
requirements-dev.txtfile associated with this PR) with the commandpip install -r requirements-dev.txtmake docswhich builds the HTML documentation and places it locally within the "docs/build" subdirectory of the repositorydocs/build/html/index.htmlin a web browserEnabling the GitHub Pages
I think a switch will have to be flipped after merging this PR to "enable" the GitHub Pages websites. I think the settings will be within "Settings -> Pages" where Source = "Deploy from a branch" and the branch is "gh-pages" and the folder is "/(root)"
Notes on rendered Jupyter Notebooks
Rendering the jupyter notebooks as part of the documentation build comes with some benefits and limitations: