Docs / Course authoring
Course pages - publishing, limits and error messages
Page states
- Draft: never published (or unpublished). Participants cannot see it.
- Published: participants see the published version.
- Published, modified: a newer draft exists. Participants still see the previous published version until you republish.
Saving only writes the draft; there is no autosave. Publishing or republishing revalidates the whole page and then replaces the published version. Only the author of the course can publish. Unpublishing removes the published version and keeps the draft.
Limits and server messages
When a page is refused, the server returns one of the messages below. The messages are currently in French (or in English for the first two); they are listed verbatim so you can recognize them.
| Rule | Message |
|---|---|
| Page source up to 1 MB (UTF-8, language blocks included) | body exceeds 1024KB |
| On publishing: compiled version up to 256 KB per language | compiled_too_large (with lang) |
| Page title not empty | title is required |
::repertoire, ::puzzles or ::game needs an id | ::<type> sans 'id' |
Resource and action tags need a non-empty label | ::<type> sans 'label' non vide. |
::action needs a known type | ::action type invalide (attendu [...]) |
::diagram line must be replayable | ::diagram ligne illégale : '<moves>' — <error> |
::diagram ply must be in range | ::diagram ply hors bornes (attendu [0, N]) |
::diagram ply must be an integer | ::diagram ply invalide (entier attendu) |
::diagram startFen must be a valid FEN | ::diagram startFen invalide |
[[page:]] needs a page id | [[page:...]] avec un pageId vide. |
| Embedded resource must exist | ressource embarquée introuvable: <type> <id> |
| Another user’s resource must be shared | ressource d'autrui non partagée (>=shared requis) |
| Your private resource in a non-private course | dans un cours non privé, votre ressource doit être >=shared |
| Too many diagrams for the Coach index | diagramsBudgetExceeded (at publication) |
A course has at most 50 modules and 500 pages.
What the AI Coach sees
When a page is published it is indexed so the AI Coach can use it. Tags are replaced by readable labels: a repertoire, puzzle suite, game or action becomes its label, a diagram keeps its id and label (the position and moves are stored separately) and a page link becomes a reference to the linked page. Drafts are never indexed. Give every diagram and resource an explicit id and label: the Coach can then cite them and show the right diagram.
Complete example
# The knight fork
A **knight** attacks two pieces at once: this is the *fork*.
::diagram{id="d4f1c2a9" startFen="r3k3/8/8/8/8/8/8/4K1N1 w - - 0 1" moves="1. Nf3 Kd8 2. Ne5" orientation="white" ply="0" label="Fork on e5"}
Remember:
- look for squares from which the knight attacks **two** targets;
- check that the square is not defended.
::puzzles{id="<puzzle suite id>" label="Tactics: the fork"}
::youtube{dQw4w9WgXcQ}