Skip to content

Add documentation using sphinx and github pages (Codex) - #45

Merged
PeterCalifano merged 9 commits into
mainfrom
refactor/update-port-doc-to-github
May 20, 2026
Merged

Add documentation using sphinx and github pages (Codex)#45
PeterCalifano merged 9 commits into
mainfrom
refactor/update-port-doc-to-github

Conversation

@PeterCalifano

Copy link
Copy Markdown
Owner

Description

This PR renews the documentation of the library and moves the CI to github pages from Read The Docs. Sphinx with pydata theme is used. Documentation includes installation guide, examples and usage guides for relatively stable modules.

@PeterCalifano PeterCalifano self-assigned this May 20, 2026
@PeterCalifano PeterCalifano added the documentation Improvements or additions to documentation label May 20, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 032809fee0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +34 to +36
python -m sphinx -b html "${source_root_}/doc" "${OUTPUT_DIR}/${output_name_}"; then
echo "Skipping ${version_name_}: Sphinx build failed"
rm -rf "${OUTPUT_DIR:?}/${output_name_}"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Fail build when stable docs generation fails

The build_docs_ helper suppresses Sphinx errors by catching a failed build, deleting the output folder, and continuing, and this same path is used for the stable build. On a main or tag push with a docs breakage, the workflow can still pass and deploy an incomplete site (including a root redirect to stable/), which hides the regression instead of failing CI. stable generation should be treated as required and exit non-zero on failure.

Useful? React with 👍 / 👎.

Comment on lines +25 to +27
if [ "${version_name_}" != "stable" ] && [ ! -f "${source_root_}/doc/_static/switcher.json" ]; then
echo "Skipping ${version_name_}: versioned docs config not found"
return 0

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Remove tag-build skip tied to missing switcher source file

This gate skips every non-stable version unless doc/_static/switcher.json exists in that tag checkout, but this commit generates switcher.json into the output site later and does not require a source copy in tags. As a result, historical tag builds are systematically skipped and the published version switcher cannot include those versions even though the workflow says it builds versioned docs.

Useful? React with 👍 / 👎.

Comment thread conda_install.sh
Comment on lines +212 to +214
--with-explain)
add_extra "explain"
shift

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Align installer extras flags with declared pyproject extras

The installer adds extras like explain/explain-shap/explain-captum via CLI flags, but this commit’s pyproject.toml only defines cuda_all, test, and docs optional dependency groups. Passing these flags produces pip install .[...] with unknown extras and fails installation, so advertised install modes are broken for users who follow those options.

Useful? React with 👍 / 👎.

@PeterCalifano
PeterCalifano merged commit 4e404af into main May 20, 2026
3 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant