Skip to content

docs: Natural Language Inference — retitle, orange AI First Design asides, BYO likelihood - #1589

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/natural-language-inference-polish
Sep 9, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/natural-language-inference-polish

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Follow-up polish on the overview page from #1588.

  • "Inference with Natural Language" → "Natural Language Inference", at the page title and all three references (index.md ×2, python_api.md).
  • Removed the "An LLM can help write a fitting script…" paragraph.
  • New "Bring Your Own Likelihood" section before Contents: you can point the assistant at an existing likelihood function and it takes care of the integration, with the natural-language prompt to do it.
  • The five "AI First Design" asides now render in the project accent (orange).
  • "HowToFit" → "HowToFit / Teacher Mode", and its prompt moves from a fenced code block to a blockquote.

Two defects fixed along the way

The asides were malformed markdown. Each read **AI First Design: … **PyAutoFit** …** — bold opened inside bold, which terminates the emphasis early rather than nesting. They have never rendered as intended. Each is now a container directive with a fixed **AI First Design:** label.

The teacher-mode prompt was in a fenced code block, so a natural-language prompt was rendering as source code. Every other prompt on the page is a > blockquote; this one now matches.

Styling

The orange lands in a new docs/_static/pyautofit.css, not in pyauto.css — that file states in its own header that it is identical across PyAutoFit / PyAutoGalaxy / PyAutoLens, so a PyAutoFit-only rule there would silently diverge the three. Colour comes from Furo's --color-brand-content, so it follows the light/dark accent already configured in conf.py (#c2410c / #f28c38) instead of hard-coding a second orange.

Test Plan

  • python -m sphinx -b html docs … → 30 warnings, baseline 30, and the warning set is byte-identical to the pre-change build (diffed, not just counted).
  • All five asides render as <div class="ai-first-design docutils container">, and pyautofit.css is linked from the built page.
  • Page <title> is Natural Language Inference - PyAutoFit; no reference to the old title remains in docs/.
  • Eyeball the orange in light and dark mode on the built page.

Companion PR: PyAutoLabs/autofit_assistant#34 mirrors the same changes in the README.

🤖 Generated with Claude Code

https://claude.ai/code/session_015LXave3uvSeLEq7S68NjXk

…ides, BYO likelihood

- "Inference with Natural Language" -> "Natural Language Inference", updated
  at the page title and all three references (index.md x2, python_api.md).
- Dropped the "An LLM can help write a fitting script..." paragraph.
- New "Bring Your Own Likelihood" section before Contents: point the assistant
  at an existing likelihood function and it handles the integration, with the
  natural-language prompt to do it.
- The five "AI First Design" asides now render in the project accent (orange).
  They were also malformed: `**AI First Design: ... **PyAutoFit** ...` nests
  bold inside bold, which breaks the emphasis. Each is now a `container`
  directive with a fixed bold label.
- "HowToFit" -> "HowToFit / Teacher Mode", and its teacher-mode prompt moves
  from a fenced code block to a blockquote, matching every other
  natural-language prompt on the page (it was rendering as code).

Styling lands in a new docs/_static/pyautofit.css rather than pyauto.css,
which is byte-identical across PyAutoFit/PyAutoGalaxy/PyAutoLens by contract.
Colour comes from Furo's --color-brand-content, so it follows the light/dark
accent already set in conf.py.

Sphinx: 30 warnings, unchanged against the baseline, and the warning set is
byte-identical to the pre-change build.

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 11f71d5 into main Sep 9, 2026
4 checks passed
@Jammy2211
Jammy2211 deleted the feature/natural-language-inference-polish branch September 9, 2026 17:22
@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.

1 participant