Use case StRS-MDOKFSTUDIO-MYST-007
Sphinx configuration gaps are reported before building
As a Sphinx author, I want to learn about unsupported syntax before building, through a quiet warning with a path to details, so that I avoid failed builds and can act without being interrupted.
Use case diagram
How it is split
This use case (StRS) is reached by 2 paths, one per coloured line. A path goes from one situation (circle) to the next; each step (pill) is a behaviour (SwRS) with its own tests. Where paths meet, they share the circle or the step.
path 1: Missing extensions are reported path 2: The banner, starts at 2 other outcomeone dot = one scenario checked: nominal boundary refusal
Path 1: Missing extensions are reported
- A document uses syntax of a MyST extensionSwRS-MDOKFSTUDIO-MYST-066 without a certain list nothing is reportedSwRS-MDOKFSTUDIO-MYST-066 · 4 tests the extension reads the enabled MyST extensions from the nearest `conf.py`, as text, never running it
- The enabled MyST extensions are knownSwRS-MDOKFSTUDIO-MYST-072 the same syntax twice gives one warningSwRS-MDOKFSTUDIO-MYST-072 · 4 tests one `myst-extension` warning per extension is listed, at the first use of the syntax, with its line
- The warnings are listedSwRS-MDOKFSTUDIO-MYST-078 an untrusted workspace publishes nothingSwRS-MDOKFSTUDIO-MYST-078 · 1 test a live preview in a trusted workspace publishes them to the Problems view as whole-line warnings
- The warnings are in the Problems view
Path 2: The banner
- The warnings are listedSwRS-MDOKFSTUDIO-MYST-081 other statuses show the full list insteadSwRS-MDOKFSTUDIO-MYST-081 · 6 tests a successful render shows a one-line banner with the count, an Open Problems button and a Close button
- The banner shows the number of MyST syntax warnings from conf.py
This map has 986 different ways through it in 8 steps or fewer. Instead of testing each one end to end, the 4 behaviours on the map are tested one by one, with 29 scenarios.
Behaviours of this use case
SwRS-MDOKFSTUDIO-MYST-066The governing conf.py is found and read as text 4 testsSwRS-MDOKFSTUDIO-MYST-072MyST syntax of a disabled extension is reported with its line 4 testsSwRS-MDOKFSTUDIO-MYST-078Extension warnings appear in the Problems view and follow conf.py 1 testSwRS-MDOKFSTUDIO-MYST-081A closable banner announces conf.py warnings 6 tests
SwRS-MDOKFSTUDIO-CORE-064Warn about MyST syntax of a disabled extension superseded superseded by SwRS-MDOKFSTUDIO-MYST-072 Markdown file
SwRS-MDOKFSTUDIO-MYST-030Prices are not reported as missing dollarmath superseded superseded by SwRS-MDOKFSTUDIO-MYST-072 Markdown file
SwRS-MDOKFSTUDIO-MYST-067A single conf-folder candidate governs when no ancestor conf exists superseded superseded by SwRS-MDOKFSTUDIO-MYST-066 Markdown file
SwRS-MDOKFSTUDIO-MYST-068conf.py is read as text and the check needs a MyST parser superseded superseded by SwRS-MDOKFSTUDIO-MYST-066 Markdown file
SwRS-MDOKFSTUDIO-MYST-069The conf.py reader understands list literal forms superseded superseded by SwRS-MDOKFSTUDIO-MYST-066 Markdown file
SwRS-MDOKFSTUDIO-MYST-070Uncertain conf.py lists suppress all warnings superseded superseded by SwRS-MDOKFSTUDIO-MYST-066 Markdown file
SwRS-MDOKFSTUDIO-MYST-071conf.py lookups are cached and invalidated deprecated deprecated Markdown file
SwRS-MDOKFSTUDIO-MYST-073At most 10 extension warnings are kept superseded superseded by SwRS-MDOKFSTUDIO-MYST-072 Markdown file
SwRS-MDOKFSTUDIO-MYST-074Detection ignores code, comments, roles and look-alikes superseded superseded by SwRS-MDOKFSTUDIO-MYST-072 Markdown file
SwRS-MDOKFSTUDIO-MYST-075Warnings carry the line of the syntax superseded superseded by SwRS-MDOKFSTUDIO-MYST-072 Markdown file
SwRS-MDOKFSTUDIO-MYST-076Included files are not checked against conf.py superseded superseded by SwRS-MDOKFSTUDIO-MYST-072 Markdown file
SwRS-MDOKFSTUDIO-MYST-077Extension warnings use the fixed wording and status list superseded superseded by SwRS-MDOKFSTUDIO-MYST-072 Markdown file
SwRS-MDOKFSTUDIO-MYST-079Problems entries are replaced and removed superseded superseded by SwRS-MDOKFSTUDIO-MYST-078 Markdown file
SwRS-MDOKFSTUDIO-MYST-080conf.py changes update the previews they govern superseded superseded by SwRS-MDOKFSTUDIO-MYST-078 Markdown file
SwRS-MDOKFSTUDIO-MYST-082The banner takes no layout room superseded superseded by SwRS-MDOKFSTUDIO-MYST-081 Markdown file
SwRS-MDOKFSTUDIO-MYST-083Open Problems opens the Problems view superseded superseded by SwRS-MDOKFSTUDIO-MYST-081 Markdown file
SwRS-MDOKFSTUDIO-MYST-084Closing the banner dismisses it for that document superseded superseded by SwRS-MDOKFSTUDIO-MYST-081 Markdown file
SwRS-MDOKFSTUDIO-MYST-085The banner returns when the warning set changes superseded superseded by SwRS-MDOKFSTUDIO-MYST-081 Markdown file
SwRS-MDOKFSTUDIO-MYST-086In Restricted Mode the banner lists warnings in its tooltip superseded superseded by SwRS-MDOKFSTUDIO-MYST-081 Markdown file
SwRS-MDOKFSTUDIO-MYST-089The conf.py reader applies list mutations in order superseded superseded by SwRS-MDOKFSTUDIO-MYST-066 Markdown file