Skip to content

docs: add a documentation website under docs/ - #35

Merged
mcanouil merged 7 commits into
mainfrom
docs/documentation-website
Aug 1, 2026
Merged

docs: add a documentation website under docs/#35
mcanouil merged 7 commits into
mainfrom
docs/documentation-website

Conversation

@mcanouil

Copy link
Copy Markdown
Owner

Moves the reference documentation out of README.md and into a Quarto website under docs/, built on the atelier project type and published to https://m.canouil.dev/quarto-elevator/.

The examples page renders a working button with the extension itself, so the ride can be tried rather than described.

reference.qmd records a limitation the README did not: a page carries one working button. Every shortcode emits a button with the elevator-button class and every script block wires the first one it finds, so a second shortcode on a page gives the first button two elevators and the second none.

It also fixes a broken sound. The extension registers its bundled ding.mp3 with add_format_resource, which writes it into the project directory while a page renders, after Quarto has already resolved the project resources. On a clean checkout the file never reaches the output and the arrival sound 404s. docs/_scripts/pre-render.sh now copies it in before the render and docs/_quarto.yml names it under project.resources; post-render.sh removes the copy afterwards.

README.md becomes a landing page pointing at the site, and example.qmd a short standalone starting point to copy.

.github/workflows/pages.yml renders docs/ on pull requests as a check and deploys it from the release tag. .github/workflows/quarto-extensions-updates.yml keeps the site's own dependencies current.

The README carried the reference: every audio, volume, and keyboard
option, described but never demonstrated. Those move to an atelier
website under docs/, which renders a working button with the extension
itself.

Records two things the README did not. A page carries one working
button: every shortcode emits a button with the same class and every
script block wires the first one it finds, so a second button on the
page gets no elevator. And the bundled arrival sound is registered with
add_format_resource while a page renders, which is after Quarto has
resolved the project resources, so on a clean checkout it never reaches
the output; docs/_scripts/pre-render.sh copies it in beforehand and
_quarto.yml names it as a resource.

README.md becomes a landing page and example.qmd a short starting point
to copy. The Pages workflow renders docs/ on pull requests and deploys
it from the release tag; the Quarto Extensions Updates workflow keeps
the site's own dependencies current.
@mcanouil mcanouil added the Type: Documentation 📝 Issues related to documentation label Jul 31, 2026
@mcanouil mcanouil self-assigned this Jul 31, 2026
The generated copy of this repository's own extension sat directly under
docs/_extensions/, with no owner, where it read as just another
installed extension. It now goes to docs/_extensions/local/<name>/, so
the path says where it came from and keeps it clear of the committed
dependencies.

Quarto resolves an extension under any owner directory, so nothing
referencing it changes.
Picked up from the shared scaffold.
Picked up from the shared scaffold.
1.9.1 keeps the widget's menu inside a docked sidebar, which is what the
three rules in assets/theme.scss did here. Those rules go with it.
pre-render.sh copies the bundled arrival sound into docs/ so the
`resources` entry can find it, and post-render.sh removes it again, but
nothing ignored it in between. Point the _quarto.yml comment at the
scripts that do the work, and fill in the author fields the scaffold
left as placeholders.
The Quarto project root is docs/, so the edit and issue links were built one level up from the page they belong to and did not resolve.
@mcanouil
mcanouil merged commit 2db85ff into main Aug 1, 2026
2 checks passed
@mcanouil
mcanouil deleted the docs/documentation-website branch August 1, 2026 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Documentation 📝 Issues related to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant