Skip to content

fix(docs): show the tutorials link on 2.39 - #32328

Merged
nickvigilante merged 2 commits into
release/2.39from
vigilante/tutorials-url-2.39
Nov 17, 2026
Merged

nickvigilante merged 2 commits into
release/2.39from
vigilante/tutorials-url-2.39

Conversation

@nickvigilante

@nickvigilante nickvigilante commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

The tutorials index on 2.39 has a note inside its <children> block with the URL written as <https://coder.com/docs/tutorials>. The whole block is raw HTML, so Markdown isn't parsed inside it: the URL is read as an HTML tag named https, which the docs sanitizer deletes, and the backticks around the path show literally. The published page reads "This page is rendered on . Refer to the other documents in the `docs/tutorials/` directory…". HTML elements do survive in that block (thanks to Jeremy for the suggestion), so this uses an <a> for the URL and <code> for the path. The file no longer exists on main, so this change is for release/2.39 only.

It also unblocks coder/docs-engine#357, which adds a sync check that fails a strict docs build when prose contains a tag the sanitizer would silently delete. 2.39 is the current release and builds strictly, so without this fix the next 2.39 docs publish would stop on this line once that check lands. 2.38 has the same line but builds leniently, so there it's only a warning.

Testing:

  • Strict sync: I ran the docs-engine sync in single-version publish mode from Security: Guidance for working with secrets #357's branch against release/2.39. Before this change, it fails with 1 unknown tag(s) in prose that the sanitizer deletes ... tutorials/index.md:9 <https>. After, it passes.
  • Rendering: I rendered the page body through the engine's Markdown pipeline. The unchanged file gives exactly the text on the live page, with the URL missing. With this change, the note renders a working link to https://coder.com/docs/tutorials and the path as code.

🤖 Built with AI assistance.

The note inside the tutorials index's <children> block wraps its URL in
angle brackets. The whole block is raw HTML, so Markdown isn't parsed there
and the URL is read as an <https> tag, which the docs sanitizer deletes: the
published 2.39 page drops the URL from the sentence. Plain text keeps it.

docs-engine is adding a sync check that fails a strict build on such tags,
and 2.39 is the strict line, so the next 2.39 docs build would stop here.

Assisted-by: AI
@github-actions

Copy link
Copy Markdown
Contributor

👋 Hey @nickvigilante!

This PR is targeting the release/2.39 release branch, but its title does not start with fix: or fix(scope):.

Only bug fixes should be cherry-picked to release branches. If this is a bug fix, please update the PR title to match the conventional commit format:

fix: description of the bug fix
fix(scope): description of the bug fix

If this is not a bug fix, it likely should not target a release branch.

@nickvigilante
nickvigilante marked this pull request as ready for review November 17, 2026 16:29
Comment thread docs/tutorials/index.md Outdated

<children>
This page is rendered on <https://coder.com/docs/tutorials>. Refer to the other documents in the `docs/tutorials/` directory for specific employee-written guides.
This page is rendered on https://coder.com/docs/tutorials. Refer to the other documents in the `docs/tutorials/` directory for specific employee-written guides.

@jeremyruppel jeremyruppel Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can still use actual markup with rehypeSanitizeCoderDocs , at least by default. I haven't tried this out, but we may be able to make this an <a> tag (and perhaps even the backticks a <code> tag)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call, tested and applied in d9d8137. Inside <children> the <a> and <code> both survive the sanitizer: rendered through the engine pipeline, the note now has a working link and the path as code, where before it read "rendered on ." with literal backticks (matching the live page). The strict 2.39 sync with the new placeholder check passes too.

The <children> block is raw HTML, so Markdown inside it isn't parsed: the
URL in angle brackets was read as an <https> tag and deleted, and the
backticks showed literally. HTML elements do survive there, so use an <a>
for the URL and <code> for the path, which renders a working link instead
of plain text.

Assisted-by: AI
@nickvigilante nickvigilante changed the title docs: show the tutorials URL on 2.39 fix(docs): show the tutorials link on 2.39 Nov 17, 2026
@nickvigilante
nickvigilante merged commit eb80e6e into release/2.39 Nov 17, 2026
42 checks passed
@nickvigilante
nickvigilante deleted the vigilante/tutorials-url-2.39 branch November 17, 2026 17:07

This branch had an error being deployed

1 failed deployment
docs-preview — d9d81374 Deployed Nov 17, 2026 by nickvigilante via cleanup #172
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants