Skip to content

docs: warning-free sphinx build + regenerate getting_started notebook#260

Merged
Riley16 merged 3 commits into
masterfrom
docs_polish
May 28, 2026
Merged

docs: warning-free sphinx build + regenerate getting_started notebook#260
Riley16 merged 3 commits into
masterfrom
docs_polish

Conversation

@Riley16
Copy link
Copy Markdown
Contributor

@Riley16 Riley16 commented May 27, 2026

Summary

Documentation polish, split out from the build-modernization PR (#259)
so the build PR stays focused. Stacked on top of #259 — until #259
merges to master, this PR's diff will also show #259's commits; once
#259 lands, it narrows to the two docs commits below.

  • Sphinx build is now warning-free (14 → 0). conf.py: repo root on
    sys.path for autodoc, language='en', drop deprecated
    get_html_theme_path(), filter the readers FutureWarning, suppress the
    intentional toc.excluded notebooks warning; add docs/_static/;
    reformat the concat() docstring as valid reST.
  • getting_started.ipynb regenerated on 3.0.6 (numpy 2.x / pandas 3.x /
    xarray 2026.x) with a portable python3 kernelspec, plus
    tests/test_notebooks.py, which executes it end-to-end via nbclient
    (skips cleanly where the notebook toolchain is absent). The legacy
    py2/rhino eeg.ipynb is left as-is.

Not included: a regenerated docs/html/ snapshot — that GH-Pages
artifact is rebuilt at deploy time via maint/build_docs.py (now that
the build is warning-free).

Validation

  • sphinx-build of docs/: 0 warnings.
  • Sybil doc-example tests: 34 passed. tests/test_notebooks.py: passes
    locally (numpy 2.4 / pandas 3.0 / xarray 2026.4).

🤖 Generated with Claude Code

@review-notebook-app
Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Riley16 and others added 3 commits May 28, 2026 02:05
- conf.py: put repo root on sys.path so autodoc imports ptsa regardless
  of CWD/install; set language='en'; drop the deprecated
  get_html_theme_path(); filter the readers FutureWarning; suppress the
  intentional toc.excluded warning for the notebooks-only examples
  toctree.
- add docs/_static/ (html_static_path entry that didn't exist).
- concat.py: reformat the concat() docstring as valid reST (blank lines
  before nested bullet lists, aligned continuations) — fixes 9 docutils
  Unexpected-indentation / block-quote warnings.

Sphinx build is now warning-free; the 34 sybil doc-example tests still
pass.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Re-executed the synthetic getting-started notebook against the modern
stack (numpy 2.x / pandas 3.x / xarray 2026.x) so its stored outputs
match current PTSA, and normalized its kernelspec to python3.

Add tests/test_notebooks.py, which executes the notebook end-to-end via
nbclient against a kernel pinned to the test interpreter, so notebook
API drift fails pytest the way sybil already guards docs/*.rst. It
skips cleanly when the notebook toolchain (nbclient/ipykernel/
matplotlib) is absent. The legacy py2/rhino eeg.ipynb is left as-is and
not executed.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Add a 'Building the documentation' section: the sphinx toolchain, the
sphinx-build command, the PTSA_DOCS_BUILD_NOTEBOOKS=1 + pandoc opt-in
for notebooks, and a note that docs/html/ is a generated GH-Pages
artifact (regenerated via maint/build_docs.py at publish time).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@Riley16 Riley16 merged commit 264cae6 into master May 28, 2026
13 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.

1 participant