Skip to content

docs: go natural-language first — natural_language is the main overview, The Basics becomes The Python API - #1588

Merged
Jammy2211 merged 3 commits into
mainfrom
feature/natural-language-first-docs
Sep 9, 2026
Merged

Jammy2211 merged 3 commits into
mainfrom
feature/natural-language-first-docs

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

The PyAutoFit docs led with the Python API: docs/index.md opened with "The basic PyAutoFit API allows a user to…", carried a ~90-line Gaussian walkthrough under ## API Overview, and the Overview toctree started with the_basics. A new overview page, docs/overview/natural_language.md, argues the opposite order — describe the model in natural language, let an assistant run it, drop to Python when you want to see the mechanism. This PR makes the docs match that argument.

  • Overview toctree is now natural_language → scientific_workflow → statistical_methods → python_api. natural_language is the main overview page; it previously appeared in no toctree at all (Sphinx treated it as an orphan).
  • the_basics.md → python_api.md, "The Basics" → "The Python API", anchor (the-basics)= → (python-api)=. Tracked as a rename, so history follows. The page now opens as the under-the-hood companion to the natural-language page, and its closing "the next overview will…" pointer is named rather than positional, since it now sits last.
  • index.md leads natural-language first: the assistant route up top, autofit_assistant as the first Getting Started bullet, and the Python walkthrough under ## API Overview replaced by a short section pointing at the two overview pages. Nothing is lost — that walkthrough exists in full on the Python API page.
  • natural_language.md: teacher-mode section added under HowToFit (grounded in autofit_assistant/README.md, modes/teacher.md — the trigger is Teacher mode.), plus typo-only fixes.
  • natural_language.md gains a Scientific Context section, sitting after the three worked "extend the workflow" requests and before the What Next pointers: how to populate the assistant's literature wiki (wiki/literature/) so it can connect natural-language scientific descriptions to the inference.
  • Sphinx warning baseline 31 → 30, ratcheted down as the docs CI notice asks: deleting the orphaned backup.md removes its "not included in any toctree" warning.

Closes #1587.

API Changes

None — this PR touches docs/** only. No autofit/** source, no public symbols added, removed or renamed.

One user-visible URL change: the readthedocs page overview/the_basics.html becomes overview/python_api.html. The old URL will 404; this was raised and accepted. All in-repo links were updated (docs/api/{model,priors,analysis}.rst and two links inside natural_language.md). Links to the workspace notebook overview_1_the_basics.ipynb point at autofit_workspace and are deliberately untouched.

Test Plan

  • python -m sphinx -b html docs docs/_build/html -w /tmp/sphinx-warnings.log builds successfully: 30 warnings vs baseline 31. Verified that main builds at exactly 31 in the same environment, so the drop is deterministic and reproduces the CI check (PyAutoHeart/.github/workflows/docs-build.yml).
  • The only two warnings that changed are the removed backup.md orphan warning and the renamed path in a pre-existing lexing warning. No new warning classes; no orphan warning for natural_language.
  • grep -rn "the_basics" docs/ returns only the out-of-scope autofit_workspace notebook links.
  • Rendered nav reads: Inference with Natural Language → Scientific Workflow → Statistical Methods → The Python API.

Companion PR: autofit_assistant carries the same walkthrough into its README under "Using PyAutoFit Assistant" — same content, same reader.

Notes for the reviewer

  • docs/overview/natural_language.md is human-authored and carried onto this branch unchanged in the first commit; the second commit is the reorganisation around it.
  • Left in deliberately: the placeholder [Find 1D example of a random model to the data, maybe from HowToFit]? in natural_language.md. It is the author's own note; no image was invented to fill it.
  • Heart was RED at ship time on release validation FAILED (stage integrate) — organism-scope, the release chain. Acknowledged by the human at ship: this branch is docs-only and nothing in it is in the release chain.

Generated by the PyAutoLabs agent workflow.

🤖 Generated with Claude Code

https://claude.ai/code/session_015LXave3uvSeLEq7S68NjXk

Jammy2211 and others added 3 commits September 9, 2026 12:09
Carries the human-authored `docs/overview/natural_language.md` and the
deletion of the superseded `docs/overview/backup.md` ("Extending Models"
draft) off the canonical checkout's working tree and onto this branch,
unchanged. Content is the human's; this commit only moves it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015LXave3uvSeLEq7S68NjXk
The docs led with the Python API — index.md opened on "the basic PyAutoFit
API", carried a ~90-line Gaussian walkthrough, and the Overview toctree
started with the_basics. The new natural-language overview argues the
opposite order, so the docs now match it.

- Overview toctree: natural_language, scientific_workflow,
  statistical_methods, python_api. natural_language is the main overview
  page (it was previously in no toctree at all).
- the_basics.md -> python_api.md, "The Basics" -> "The Python API",
  anchor (the-basics)= -> (python-api)=. It now opens as the under-the-hood
  companion to the natural-language page, and its "next overview" pointer
  is named rather than positional now that it sits last.
- index.md leads with the assistant/natural-language route; the Python
  walkthrough under "API Overview" is replaced by a short section pointing
  at the two overview pages (the walkthrough survives in full on the
  Python API page). Getting Started gains the assistant as its first bullet.
- api/{model,priors,analysis}.rst and the two links inside
  natural_language.md now point at overview/python_api.html. The
  autofit_workspace notebook links (overview_1_the_basics.ipynb) are
  deliberately untouched.
- natural_language.md: teacher-mode section added under HowToFit, plus
  typo-only fixes.
- Sphinx warning baseline 31 -> 30: deleting the orphaned backup.md removes
  its "not included in any toctree" warning. Verified locally that main
  builds at exactly 31, so the new count is deterministic.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015LXave3uvSeLEq7S68NjXk
…ew (#1587)

Sits after the three worked "extend the workflow" requests and before the
What Next pointers to Scientific Workflow and Statistical Methods. Covers
populating the assistant's literature wiki (wiki/literature/) so it can
connect natural-language scientific descriptions to the inference.

Sphinx warning count unchanged at 30 (baseline 30).

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015LXave3uvSeLEq7S68NjXk
@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label Sep 9, 2026
@Jammy2211
Jammy2211 merged commit 2a355cf into main Sep 9, 2026
4 checks passed
@Jammy2211
Jammy2211 deleted the feature/natural-language-first-docs branch September 9, 2026 16:38
@Jammy2211 Jammy2211 removed the pending-release PR queued for the next release build label Sep 26, 2026
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: go natural-language first — natural_language becomes the main overview, The Basics becomes The Python API

1 participant