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>
15 lines
665 B
Lua
15 lines
665 B
Lua
-- 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"
|