Repository navigation
docs: go natural-language first — natural_language is the main overview, The Basics becomes The Python API - #1588
Merged
Conversation
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
This was referenced Sep 9, 2026
Merged
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.
Summary
The PyAutoFit docs led with the Python API:
docs/index.mdopened with "The basic PyAutoFit API allows a user to…", carried a ~90-line Gaussian walkthrough under## API Overview, and the Overview toctree started withthe_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.natural_language→scientific_workflow→statistical_methods→python_api.natural_languageis 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.mdleads natural-language first: the assistant route up top,autofit_assistantas the first Getting Started bullet, and the Python walkthrough under## API Overviewreplaced 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 inautofit_assistant/README.md,modes/teacher.md— the trigger isTeacher mode.), plus typo-only fixes.natural_language.mdgains 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.backup.mdremoves its "not included in any toctree" warning.Closes #1587.
API Changes
None — this PR touches
docs/**only. Noautofit/**source, no public symbols added, removed or renamed.One user-visible URL change: the readthedocs page
overview/the_basics.htmlbecomesoverview/python_api.html. The old URL will 404; this was raised and accepted. All in-repo links were updated (docs/api/{model,priors,analysis}.rstand two links insidenatural_language.md). Links to the workspace notebookoverview_1_the_basics.ipynbpoint atautofit_workspaceand are deliberately untouched.Test Plan
python -m sphinx -b html docs docs/_build/html -w /tmp/sphinx-warnings.logbuilds successfully: 30 warnings vs baseline 31. Verified thatmainbuilds at exactly 31 in the same environment, so the drop is deterministic and reproduces the CI check (PyAutoHeart/.github/workflows/docs-build.yml).backup.mdorphan warning and the renamed path in a pre-existing lexing warning. No new warning classes; no orphan warning fornatural_language.grep -rn "the_basics" docs/returns only the out-of-scopeautofit_workspacenotebook links.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.mdis human-authored and carried onto this branch unchanged in the first commit; the second commit is the reorganisation around it.[Find 1D example of a random model to the data, maybe from HowToFit]?innatural_language.md. It is the author's own note; no image was invented to fill it.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