# M68. The documentation, organized by what a reader needs **Package:** the pages for users, built anew: tutorials, topics, recipes and reference kept apart, a start page by subject, a gallery with one page for each example, and the pages of the project at the end. In one pull request, by the owner's word. ## What was built - **Four kinds of pages, each in its folder.** A tutorial in six parts (`intro/`), 24 topics with one concept each (`topics/`), 26 recipes (`howto/`), and a reference in 16 pages (`ref/`): the Python API by object, what is solved where on each family of domains, the methods of a plan, the diagnostics, and how accurate it is. The known limits stay one page, listed under the reference. - **A start page by subject**, as that of the documentation of Django: first steps, how the documentation is organized, then for each subject the links to the pages of every kind. - **A gallery of 45 examples**, one on a page, in eight themes. The first gallery had 15 on one page. Its start page shows a tile for each, with the first picture of the page in the light and in the dark version, drawn when the site is built. - **The method pages** for boxes and for shapes, 700 and 900 lines, became twelve pages, each below 350 lines. No table, formula or limit was dropped. - **Questions that come up**, a **glossary**, and **release notes** by version. - **The pages of the project** behind one entry at the end. - **The addresses of the first website forward** to their successors. - **Tests that keep it so**: every example of the tutorial, the topics, the recipes and the gallery runs, a block of text below an example is what the example prints, every such page has an example, and none has more than 250 lines. - **A fix on the way**: the film of a solution on a region could not be saved. ## What it reaches | | Before | Now | |---|---|---| | Pages for users | 33 | 155 | | Longest page of the guide, now of the topics | 834 lines | 231 lines | | Longest method page | 896 lines | 317 lines | | Examples in the gallery | 15 | 45 | | Pages of reference | 1 | 16, and the known limits | | Pages whose examples run in the tests | 15 | 104 | | Build of the site | | 3 min 43 s | Every statement of the old pages was run against the package while it was moved. Nine statements of the old guide were out of date, among them that a ball is not plotted and that a starting value is not taken between walls. The new pages say what the package does. ## Decisions ### D68.1. Four kinds of pages, after the documentation of Django *Owner, 2026-11-20.* The owner found the website badly organized, and asked for a proposal after the documentation of Django. The first website was laid out by what a reader came for (decision D61), with one guide whose pages each taught, explained, instructed and listed at once. Milestone after milestone built on to them, until one subject stood on four pages and one page had 834 lines. The proposal keeps tutorials, topics, recipes and reference apart, each in a folder, with a start page by subject that links into all four. The owner: "Gefällt mir gut, aber mach das in einem einzigen PR. und zwar sofort." ### D68.2. Three rules that keep the pages so *Owner, 2026-11-20, with the proposal.* A page is of one kind, and in the tutorial, the topics, the recipes and the gallery it has at most 250 lines. What is solved where, and what does not work, stands in the reference and nowhere else in full. And a milestone is done when a topic page explains what it built, the reference lists it, and an example in the gallery shows it. This widens decision D37.1, which stays: every other page that names the subject must still hold. The rules are in the workflow, and the first is a test. ### D68.3. The old addresses forward *Developer, 2026-11-20.* The page of version 0.1.0 on PyPI links to pages of the first website, and cannot be changed. For each page that was removed, a small page at its old address forwards to its successor. They are files in `docs/_redirects`, copied as they are: no extension and no dependency. ### D68.4. The pages of the project keep their folder *Developer, 2026-11-20.* The proposal named a folder `internals/`. The pages stay in `docs/dev/`: the session conventions, the scripts and every record name that path, and other sessions may be at work. What a visitor sees is what was proposed, one entry "The project" at the end. The known limits are in that folder too, and are listed under the reference, where a user looks for them. ### D68.5. The tiles are built from the pages *Developer, 2026-11-20.* A page of the gallery has a fixed form: its title, one sentence, the example. The extension that draws the figures of the site reads those and the first picture of the page, and builds the tiles of the start page of the gallery and its table of contents from the list of pages under each theme. A new example is one file and one line. ### D68.6. Written side by side, from one brief *Developer, 2026-11-20.* One pull request at once meant 150 pages in a day. Eight writers worked side by side, each on folders of its own, from one brief with the names of all pages, the rules and the voice. None built the site, and none committed. Each had to run every example, and to report where the package did not do what the old pages said. Their findings that concern the package are the package P3 of the backlog. ## What is left - An example in the gallery for what milestone 67 brings. - P3: what the rebuild found in the package. - P2: pages by field of application, now as further parts of the tutorial. - Seven examples save a film, which is a third of the time of a build.