Skip to content

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

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

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

Conversation

@mcanouil

@mcanouil mcanouil commented Aug 1, 2026

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-code-window/.

Every code block on the site is framed by this extension, so the pages demonstrate themselves. The examples page adds the parts the default does not show: all three window styles side by side, both folding states, the highlighted-line chip, and a block with the chrome turned off.

This repository publishes one of the website scaffold's own dependencies, so it is set up the self-hosting way: the committed copy under docs/_extensions/mcanouil/code-window/ is dropped, and the filter resolves from the copy sync-extension.sh takes from the repository root. The site therefore runs the version being released rather than a pinned one.

reference.qmd records an interaction found while documenting the rest of the family: this filter claims code blocks at pre-quarto, which is why typst-render never sees its own ```{typst} blocks when both run, and why language-cell-decorator decorates the same blocks a second time.

README.md becomes a landing page pointing at the site.

Every code block on the site is framed by the extension, so the pages
are their own demonstration: the three styles, both folding states, the
highlighted-line chip, and a block with the chrome turned off.

This repository publishes one of the website's own dependencies, so the
committed copy under docs/_extensions/mcanouil/ is dropped and the site
resolves the filter from the copy sync-extension.sh takes from the
repository root. The site therefore runs the version being released.

The reference records that the filter claims code blocks at pre-quarto,
which is why typst-render never sees its own {typst} blocks when both
run, and why language-cell-decorator decorates the same blocks twice.

README.md becomes a landing page pointing at the website.
@mcanouil mcanouil added the Type: Documentation 📝 Issues related to documentation label Aug 1, 2026
@mcanouil mcanouil self-assigned this Aug 1, 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.
The HTML chrome is assembled at page load by an injected script, so the
frame, the fold, and the line chip all need JavaScript; the fold is not a
static <details> element.

In HTML only an author-set filename is framed. Quarto builds the wrapper
before this filter runs, so auto-filename arrives too late and the block
renders unframed. Typst frames both.

A boolean option written as bare false under extensions.code-window is
read as unset, so the site quotes its auto-filename value.
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 fd21dc6 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