Skip to content

Documentation generation via Github Actions - #127

Merged
Jfeatherstone merged 9 commits into
powerlaw-devs:masterfrom
Jfeatherstone:master
Apr 9, 2026
Merged

Documentation generation via Github Actions#127
Jfeatherstone merged 9 commits into
powerlaw-devs:masterfrom
Jfeatherstone:master

Conversation

@Jfeatherstone

Copy link
Copy Markdown
Collaborator

This PR includes a Github Action that will generate the documentation automatically to be hosted on Github Pages. It uses Sphinx to build the documentation, and then peaceiris' action for deploying the site from the gh-pages branch.

I've also converted the documentation_figures.ipynb file into a proper script, documentation_figures.py, so the figures can be generated during the Action.

I've set the action to run only on changes to the master branch, either through a direct push or when a PR is merged into it. The latter case might be redundant there, but I'm not sure, and it can't hurt to have it (hopefully). I'm not an expert on this stuff, so if anyone sees any issues please let me know! That being said, this does mean that this won't run until we merge this PR, so we can't exactly test it... but I've tested it on my fork of the repo and it seems fine.

@keflavich keflavich left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I have a few suggestions for cleanup, but overall looks fine.

Comment thread docs/documentation_figures.py Outdated
Comment on lines +12 to +13
- Make sure to close the figures after they are saved using ``plt.close()``;
this script is not meant to display anything.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

let's use the 'agg' backend, then

Comment thread docs/documentation_figures.py
Co-authored-by: Adam Ginsburg <keflavich@gmail.com>
@Jfeatherstone

Copy link
Copy Markdown
Collaborator Author

Great, thanks for checking! I'll merge this and then update the Pages settings to point to the new branch.

@Jfeatherstone
Jfeatherstone merged commit d2b563a into powerlaw-devs:master Apr 9, 2026
9 checks passed
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.

2 participants