Parts V to IX in the book, extension 2.9.1, Demo topics
Add chapters 05-08 to the three language profiles: the published book stopped at Part IV because only 00-04 were listed. Rename the MQTT topic root Tutorial/ to Demo/ in Part IX (code and output included). Shared notes extension 2.9.1: dependency folders are named after the extension version, so browsers stop serving stale scripts after an update. Full rebuild of _book/ (HTML and PDF, three languages); remove the stray site_libs/ that the last Deploy commit had added at the project root. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
01f681165f
commit
f047b9c7ae
128 files changed
+18893
-7591
No files matched your search
@@ -1,28 +1,29 @@
|
||||
5b7e9e47a1d66e992b69f7ac91901349 README.md
|
||||
41f8fa1eb18e957e8423e0c97275af73 _extension.yml
|
||||
3323be390b976ebb455bbe1eb519cde2 README.md
|
||||
edf3ece1cedee3683c33e445f8baa7a0 _extension.yml
|
||||
9037e06faf2c5fde7b3d614039652eed audit-page.js
|
||||
f6fbbba5aecc3141f06bf2aca93fccac audit.py
|
||||
a2f486f6e2dc382624f99801db209b75 calc-notes.css
|
||||
e9500e2554429fc8da7e9b2a6b51c8f1 calc-notes.js
|
||||
c06ae335d8506b347298d2a8f0e04ef2 calc-notes.lua
|
||||
9522cbbd7257f1c23801ac45445c79d7 calc-notes.lua
|
||||
e380e93d24a5968cc483dcbe48d99613 exo.css
|
||||
1b1c35a5488c4e695a34b1f9efaeab4f exo.js
|
||||
0bb15846fbb2bc9be2bde88d77698de8 exo.lua
|
||||
b8f9d58b33f59a8706114043f77e45d8 exo.lua
|
||||
62e03d6d5bd4f62830d71eadb66aa5ed fenced-divs.lua
|
||||
8bd78a96d4553b922718a381d14a44a3 further.css
|
||||
1b1237dd91ec14b2c8a9ad20c8ee844f further.lua
|
||||
0004ad931e4e0fdc443d4181516e3eb1 further.lua
|
||||
2a324dc0362a2a569ac4053b923c17f4 glossary.css
|
||||
6144abf4ad62088ab51409542e5f28e1 glossary.js
|
||||
3766b7d739c8aebb790b7092af31a57a glossary.lua
|
||||
f15c28669daddf935768611de0bf06f6 glossary.lua
|
||||
2aa159cbe6bfe1ee35e18d4290d67425 handin.sh
|
||||
93c5c7dddcc07fd7dcedcf06ff32c0d3 high-contrast.css
|
||||
691f5e66397d855e951c37a953701913 i18n.lua
|
||||
061f762946d63ea672d4f989f762baf7 latex-tables.css
|
||||
bab632a49553476bc5275b9c583f457e latex-tables.lua
|
||||
399329f7ed50a9739820c27e4813b6b5 latex-tables.lua
|
||||
b846f2c4afd59aa0c9a328c71633425f narrow.css
|
||||
21b27640373cee858ad28cd9aaa1e858 quiz.css
|
||||
d03bb30f6a18c048173c24a0bcba5e24 quiz.js
|
||||
fb8f6092f6d5c3d2d407f8dac41bd2af quiz.lua
|
||||
16ef26fab71f8bb28d7764727b8fb4b4 quiz.lua
|
||||
2b8ca7ff531d30903bc41240e8b77691 si-mathjax.lua
|
||||
d32141259df2ce229400779c2ed284d9 sync.sh
|
||||
838bac386bf1e2b1e0323d91119c3632 theme.css
|
||||
5148165bac2ad330a55f4fbae833b20b version.lua
|
||||
@@ -17,6 +17,7 @@ documents its syntax in the comment at its top; this page is the overview.
|
||||
| `theme.css` | the palette every part shares, in light and in night mode |
|
||||
| `high-contrast.css` | the high-contrast pair, after GitHub's two high-contrast VS Code themes |
|
||||
| `narrow.css` | keeps the page inside a phone screen: formulas, code and tables scroll in place |
|
||||
| `version.lua` | the `version:` of `_extension.yml`, given to every html dependency: the files land in `site_libs/quarto-contrib/<name>-<version>/`, so each bump is a new URL and no browser keeps an older script |
|
||||
|
||||
## Options (in `_quarto.yml`)
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
title: notes
|
||||
author: Matsune
|
||||
version: 2.9.0
|
||||
version: 2.9.1
|
||||
quarto-required: ">=1.4.0"
|
||||
contributes:
|
||||
filters:
|
||||
|
||||
@@ -391,7 +391,7 @@ function Meta(m)
|
||||
if fmt_is("html") then
|
||||
quarto.doc.add_html_dependency({
|
||||
name = "calc-notes",
|
||||
version = "1.0.0",
|
||||
version = dofile(quarto.utils.resolve_path("version.lua")),
|
||||
stylesheets = { "theme.css", "high-contrast.css", "calc-notes.css", "narrow.css" },
|
||||
scripts = { "calc-notes.js" },
|
||||
})
|
||||
|
||||
@@ -159,7 +159,7 @@ local function read_meta(meta)
|
||||
if fmt_is("html") then
|
||||
quarto.doc.add_html_dependency({
|
||||
name = "calc-exo",
|
||||
version = "2.0.0",
|
||||
version = dofile(quarto.utils.resolve_path("version.lua")),
|
||||
stylesheets = { "exo.css" },
|
||||
scripts = { "exo.js" },
|
||||
})
|
||||
|
||||
@@ -60,7 +60,7 @@ local function read_meta(meta)
|
||||
if fmt_is("html") then
|
||||
quarto.doc.add_html_dependency({
|
||||
name = "calc-further",
|
||||
version = "1.0.0",
|
||||
version = dofile(quarto.utils.resolve_path("version.lua")),
|
||||
stylesheets = { "further.css" },
|
||||
})
|
||||
-- as for notecolor: the book's own colour is kept, and theme.css
|
||||
|
||||
@@ -249,7 +249,7 @@ local function read_meta(meta)
|
||||
if quarto ~= nil and quarto.doc ~= nil and fmt_is("html") then
|
||||
quarto.doc.add_html_dependency({
|
||||
name = "calc-glossary",
|
||||
version = "2.0.0",
|
||||
version = dofile(quarto.utils.resolve_path("version.lua")),
|
||||
stylesheets = { "glossary.css" },
|
||||
scripts = { "glossary.js" },
|
||||
})
|
||||
|
||||
@@ -545,7 +545,7 @@ local function read_meta(meta)
|
||||
if fmt_is("html") then
|
||||
quarto.doc.add_html_dependency({
|
||||
name = "calc-latex-tables",
|
||||
version = "1.0.0",
|
||||
version = dofile(quarto.utils.resolve_path("version.lua")),
|
||||
stylesheets = { "latex-tables.css" },
|
||||
})
|
||||
elseif fmt_is("latex") then
|
||||
|
||||
@@ -139,7 +139,7 @@ local function read_meta(meta)
|
||||
if fmt_is("html") then
|
||||
quarto.doc.add_html_dependency({
|
||||
name = "calc-quiz",
|
||||
version = "1.0.0",
|
||||
version = dofile(quarto.utils.resolve_path("version.lua")),
|
||||
stylesheets = { "quiz.css" },
|
||||
scripts = { "quiz.js" },
|
||||
})
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
-- version.lua -- the extension's version, read from _extension.yml.
|
||||
--
|
||||
-- version = dofile(quarto.utils.resolve_path("version.lua"))
|
||||
--
|
||||
-- Every html dependency of the filters takes it: Quarto copies a dependency to
|
||||
-- site_libs/quarto-contrib/<name>-<version>/, so each version bump is a new
|
||||
-- URL and a browser cannot go on serving a cached script or stylesheet from
|
||||
-- an older version. The number lives in one place, the `version:` line that
|
||||
-- is bumped anyway.
|
||||
local f = io.open(quarto.utils.resolve_path("_extension.yml"), "r")
|
||||
if not f then return "0" end
|
||||
local text = f:read("a")
|
||||
f:close()
|
||||
return ("\n" .. text):match("\nversion:%s*([%w.%-]+)") or "0"
|
||||
Reference in new issue
Block a user