Skip to content

docs: add README documenting docs build sources and outputs#848

Merged
kennethshsu merged 2 commits into
casact:mainfrom
priyam0k:docs/845-doc-build-readme
May 26, 2026
Merged

docs: add README documenting docs build sources and outputs#848
kennethshsu merged 2 commits into
casact:mainfrom
priyam0k:docs/845-doc-build-readme

Conversation

@priyam0k
Copy link
Copy Markdown
Contributor

@priyam0k priyam0k commented May 25, 2026

Closes #845. Refs parent #841.

Adds a docs/README.md documenting how the docs site is built and which files are sources vs. generated, so future contributors do not have to reverse-engineer it.

The README covers:

  • Local build command (pip install -e .[docs] then cd docs && jb build .) and where the rendered output lands.
  • Source files (intro.md, _toc.yml, _config.yml, conf.py, the getting_started/ / user_guide/ / gallery/ notebooks, library/api.md, library/releases.md).
  • Generated files that should not be hand-edited (_build/ from Sphinx, library/generated/*.rst from sphinx.ext.autosummary).
  • A short "what to edit for which part of the site" table.
  • A pointer at [DOCS] Eliminate docs warnings #841 for the known-warnings context.

No code or config changes; docs-only addition. The companion cleanup for the redundant generated stubs is in #846.


Note

Low Risk
Documentation-only addition with no runtime, config, or API behavior changes.

Overview
Adds docs/README.md as contributor-facing documentation for the Jupyter Book / Sphinx docs tree.

It documents how to build locally (pip install -e .[docs], then jb build . in docs/), where output lands (docs/_build/html/), and optional make targets. Tables map editable sources (intro.md, _toc.yml, _config.yml, conf.py, notebook folders, library/api.md, etc.) versus generated artifacts (_build/, library/generated/*.rst from autosummary). It also explains that new API symbols are added via library/api.md and package docstrings, not hand-written .rst stubs.

Reviewed by Cursor Bugbot for commit 9669d2d. Bugbot is set up for automated code reviews on this repo. Configure here.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.94%. Comparing base (04e95f0) to head (9669d2d).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #848   +/-   ##
=======================================
  Coverage   86.94%   86.94%           
=======================================
  Files          86       86           
  Lines        4994     4994           
  Branches      644      644           
=======================================
  Hits         4342     4342           
  Misses        462      462           
  Partials      190      190           
Flag Coverage Δ
unittests 86.94% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@henrydingliu
Copy link
Copy Markdown
Collaborator

@priyam0k this is great. what did you use to generate it?

Comment thread docs/README.md Outdated

The rendered site is written to `docs/_build/html/`. Open `docs/_build/html/index.html` in a browser to review changes.

`jb build .` reads `_config.yml` and `_toc.yml`, then hands off to Sphinx using the extensions declared in `conf.py`. A full build currently emits warnings; cleaning those up is tracked under [#841](https://github.com/casact/chainladder-python/issues/841).
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 don't think this needs to be here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Agreed, dropping it. The warning callout is duplicated lower down and the internals sentence doesn't earn its keep.

Comment thread docs/README.md Outdated
| `_toc.yml` | Book structure and page ordering. |
| `_config.yml` | Jupyter Book configuration (title, theme, Sphinx extensions). |
| `conf.py` | Sphinx configuration (autosummary, intersphinx, numpydoc, etc.). |
| `getting_started/` | Install, quickstart, and tutorial notebooks. |
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.

Instead of "tutorial notebooks" I would change the wording to onboarding or Quickstart notebooks.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

True, switching to "onboarding and Quickstart notebooks."

Comment thread docs/README.md Outdated
Comment on lines +52 to +65
| You want to change... | Edit... |
| --- | --- |
| The home page | `intro.md` |
| Page order or sidebar nav | `_toc.yml` |
| Site title, theme, Sphinx extensions | `_config.yml` and `conf.py` |
| Which classes/functions appear in the API reference | `library/api.md` (autosummary lists) |
| The content of a class or function's API page | The docstring of that class/function in `chainladder/**/*.py` |
| Release notes | `library/releases.md` |
| A tutorial or user guide topic | The relevant notebook under `getting_started/` or `user_guide/` |
| A gallery example | The relevant notebook under `gallery/` |

## Known issues

A clean `jb build .` currently emits a number of Sphinx warnings; cleanup is tracked in [#841](https://github.com/casact/chainladder-python/issues/841) and its sub-issues. Please do not silence warnings ad-hoc as part of unrelated PRs.
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 don't think anything here needs to be shown?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Agreed, the table mostly restates the Source files table above, and the warnings note is repeated. Removing both.

@priyam0k
Copy link
Copy Markdown
Contributor Author

@priyam0k this is great. what did you use to generate it?

Thanks! Drafted with Copilot / Claude after reading through the docs setup myself, then checked each path and command against the repo before pushing. Happy to tweak wording.

- Drop the jb build internals + duplicate warnings note (kennethshsu)
- Rename 'tutorial notebooks' to 'onboarding and Quickstart notebooks' (kennethshsu)
- Drop the 'What to edit for which part of the site' table and 'Known issues' section as redundant with the Source files table and casact#841 (kennethshsu)
@kennethshsu kennethshsu merged commit 0b06614 into casact:main May 26, 2026
10 checks passed
@henrydingliu
Copy link
Copy Markdown
Collaborator

@priyam0k thanks for putting this together
@kennethshsu thanks for the review

this looks so hype :D
image

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.

[DOCS] readme for the doc build

3 participants