-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
s: Halt build on pfsc- directives with bad opt block in Sphinx pages
- Loading branch information
Showing
5 changed files
with
111 additions
and
25 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
changelog.d/skieffer.catch-invalid-opt-block.branchnews.improved.txt
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Provide a helpful error message in case of invalid option blocks | ||
in pfsc directives in Sphinx pages. |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import os | ||
import sys | ||
sys.path.insert(0, os.path.abspath('../..')) | ||
|
||
# Configuration file for the Sphinx documentation builder. | ||
# | ||
# For the full list of built-in configuration values, see the documentation: | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html | ||
|
||
# -- Project information ----------------------------------------------------- | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information | ||
|
||
project = 'sphinx-proofscape doc with errors' | ||
copyright = '2024, author' | ||
author = 'author' | ||
|
||
# -- General configuration --------------------------------------------------- | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration | ||
|
||
extensions = [] | ||
|
||
templates_path = ['_templates'] | ||
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', 'venv'] | ||
|
||
# -- Options for HTML output ------------------------------------------------- | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output | ||
|
||
#html_theme = 'alabaster' | ||
#html_static_path = ['_static'] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
sphinx-proofscape doc with errors | ||
================================= | ||
|
||
.. pfsc:: | ||
|
||
deduc Thm { | ||
asrt C { | ||
sy="C" | ||
} | ||
meson = "C" | ||
} | ||
|
||
deduc Pf of Thm.C { | ||
asrt R { | ||
sy="R" | ||
} | ||
asrt S { | ||
sy="S" | ||
} | ||
meson = "R, so S, therefore Thm.C." | ||
} | ||
|
||
This chart widget has an error, because the ``viewOpts`` field uses | ||
improper indentation. (The closing brace needs to be further indented.) | ||
|
||
.. pfsc-chart:: | ||
:view: Thm.C | ||
:viewOpts: { | ||
transition: false, | ||
} |
This file contains 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