docs: the glossary says a model holds no data, as math-spec uses the word, and every link into math-spec's docs resolves - #1740
Merged
Conversation
…that model with data attached, as math-spec uses the word math-spec defines a model as the optimisation problem a file states, with no data. The glossary said a model is a spec with data on it, the opposite definition. It now says the model is math-spec's, and specsolve.Model is that model with data attached. Three links to math-spec's reading page pointed at reference/language/reading/, which moved to reference/reading/. They now point there, with anchors that exist. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01A89tReSh8rTBG9ocy7688y
Merging this PR will not alter performance
Comparing Footnotes
|
math-spec restructured its pages, and 20 of the 48 distinct math-spec URLs here pointed at a page or anchor that no longer exists: - the 16 ladder pages linked examples/pypsa/#rung-N, and the rungs are headed rung-N--<name>, five of them on a page of their own. tools/ladder.py now holds a table from rung to page and anchor, and the pages are regenerated. - limits/#solver-capability moved to what-counts-as-language/#what-each-tool-decides-for-itself; expressions/#named-expressions to named/#expressions; dimensions/#relations and #how-the-map-is-supplied to the relations page; absence/#a-row-with-no-variable-terms-is-not-built to #rows-with-no-variable-terms; piecewise/#lp-the-one-that-declares-nothing to #method. Checked against a local zensical build of math-spec's main: all 85 links resolve. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01A89tReSh8rTBG9ocy7688y
FBumann
enabled auto-merge (squash)
September 25, 2026 08:31
fluxopt-release-bot Bot
added a commit
that referenced
this pull request
Sep 25, 2026
🤖 I have created a release *beep* *boop* --- ## [0.0.1-alpha.356](v0.0.1-alpha.355...v0.0.1-alpha.356) (2026-09-25) ### Documentation * the glossary says a model holds no data, as math-spec uses the word, and every link into math-spec's docs resolves ([#1740](#1740)) ([da3f211](da3f211)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: fluxopt-release-bot[bot] <307443024+fluxopt-release-bot[bot]@users.noreply.github.com>
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.
Note
The following content was generated by AI.
Later prompts that set scope: "Do it", then "Check if the specsolve PR has correct links! mathspec changed its docs a bit!"
The glossary now defines a model as math-spec does: the problem a spec states, with no data.
specsolve.Modelis that model with data attached. All 85 links into math-spec's docs resolve on its current site. Before this PR, 20 of the 48 distinct URLs were broken.Method, gate output, alternatives
Glossary (
docs/reference/glossary.md):Modelis that model with your data attached."specsolve.Modelis that model with data attached.Links. math-spec's
mainnow holds the merged docs restructure, and #568 moved its site to zensical. I built that site locally frommainwith zensical and checked everymath-spec.readthedocs.ioURL in this repository against its pages and element ids.Ladder pages, 16 links: they linked
examples/pypsa/#rung-N. The rungs are headedrung-N--<name>, and rungs 10 and 12–15 have a page of their own. The names differ from this ladder's (multi-link, notmultilink), so they cannot be derived.tools/ladder.pynow holds aCORPUS_RUNGStable from rung to page and anchor, and the 16 pages are regenerated. The regeneration changes one line per page.Hand-written links:
about/limits/#solver-capability(4)about/what-counts-as-language/#what-each-tool-decides-for-itselfreference/language/expressions/#named-expressions(3)reference/language/named/#expressionsreference/language/dimensions/#relations(2),#how-the-map-is-suppliedreference/language/relations/,#the-data-contractreference/language/absence/#a-row-with-no-variable-terms-is-not-built#rows-with-no-variable-termsreference/language/piecewise/#lp-the-one-that-declares-nothing#methodreference/language/reading/…(3)reference/reading/…One link's text quoted the old heading, "Capability is not the ceiling". It now reads "what each tool decides for itself".
Gates (pixi is not installable in this session; a Python 3.12 venv with
pip install -e .stood in):python -m tools.ladder --check: exit 0.pytest tests/test_pypsa_ladder_page.py tests/test_docs_math.py tests/test_docs_site.py tests/test_doc_examples.py: 200 passed, 73 skipped (the docs group is skipped in the default environment).ruff checkandruff format --check(0.16.1) ontools/ladder.py: clean.pixi run check, the full suite, the docs build.Not done:
specsolve.Modelis not renamed.CORPUS_RUNGStable breaks again if math-spec renames a rung heading. A test that asks math-spec's built site would catch that, but this PR does not add one.🤖 Generated with Claude Code
https://claude.ai/code/session_01A89tReSh8rTBG9ocy7688y