Repository navigation
Publish the built Sphinx documentation to GitHub Pages - #15
Merged
Merged
Conversation
The Pages workflow uploaded the repository root, which has no index.html, so https://erf-model.github.io/FLUME/ returned 404. The job now builds the docs with the same strict command as docs.yml and uploads Docs/sphinx_doc/_build/html. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Related to the documentation site https://erf-model.github.io/FLUME/ returning 404.
Summary
The documentation site showed a 404 page. The Pages workflow (
static.yml) was GitHub's starter template: it uploaded the whole repository as the site. The repository root has noindex.html, so the front page did not exist. Raw files such asREADME.mdwere served instead.The workflow now builds the Sphinx documentation first and uploads only the built HTML. The build uses the same strict command as
docs.yml(warnings are errors). No source, test or documentation content changes.Changes
.github/workflows/static.yml: installDocs/sphinx_doc/requirements.txt, runsphinx-build -W --keep-going -b html Docs/sphinx_doc Docs/sphinx_doc/_build/html, and uploadDocs/sphinx_doc/_build/htmlinstead of.. Workflow renamed to "Deploy documentation to Pages"; a 15-minute timeout added. No new inputs.Test(s)
sphinx-build -W --keep-going -b html) ofdevelopmentat e8603e5: completes, writesindex.html.development, so it is checked after merge: https://erf-model.github.io/FLUME/ should then show the documentation front page.Not in this PR
🤖 Generated with Claude Code