Skip to content

fix(docs): keep the Authorization header code span of viewer.md on one line - #1813

Merged
ajianaz merged 1 commit into
developfrom
fix/docs-viewer-bearer-token-span
Nov 26, 2026
Merged

ajianaz merged 1 commit into
developfrom
fix/docs-viewer-bearer-token-span

Conversation

@ajianaz

@ajianaz ajianaz commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

What

The code span Authorization: Bearer <token> in docs/viewer.md is on one line again. It was wrapped across two lines, and VitePress read the <token> as an HTML element without an end tag.

Why

Refs #1776. The Deploy Website to Cloudflare Pages workflow has failed on every push to main and every tag since v0.23.0 (6 runs in a row, the last on v0.24.1), so uteke.app has not been updated since. The log of the last run:

bun install --frozen-lockfile   → + @codecora/theme@github:codecoradev/codecora-theme#c6a6aa6 (installed)
vitepress build                 → viewer.md (81:93): Element is missing end tag.

So the failing step is the Build, on this file. #1776 attributes the failure to the private @codecora/theme dependency having no token; that happened in one run (v0.24.0, 14 Nov, Install step), but the Install step passed on v0.23.0 and v0.24.1, and the Build step failed on both. This PR fixes the cause that is present in every failing run. The private dependency is a separate and intermittent problem, left as it is: a fix that requires a THEME_READ_TOKEN secret would fail the install that currently works.

How

One line: the two lines of the list item are joined so the code span does not cross a line break. The position 81:93 of the error is in the compiled Vue template, not in the markdown, so it does not point at the source line.

Testing

  • cargo test --workspace passes
  • cargo fmt --all -- --check passes
  • cargo clippy --workspace --all-targets -- -D warnings passes
  • Cora review run locally (cora review --base origin/develop)
  • Manual smoke-test of the affected feature

Reproduced and verified outside CI, with VitePress 1.6.4 and Vue 3.5.41 (the versions of the lockfile) and every page of docs/, without the private theme (it cannot be fetched from outside the organisation): before, viewer.md (81:93): Element is missing end tag, the same message as the CI log; after, build complete, and viewer.html renders the header text. The Cloudflare deploy step itself is not exercised here.

What this does not do: uteke.app (production) is only updated by a push to main or a tag, and main still holds the old docs, so the site recovers with the next release. No CI job builds docs/ on a pull request, which is why this error went unnoticed for three weeks; that is a separate change.

Related Issues

Refs #1776 (the issue stays open: the private theme dependency is not addressed here).

Checklist

  • Branch name follows convention (fix/, feat/, docs/, chore/, refactor/, test/, perf/, security/)
  • Branch is from develop
  • Commit messages follow Conventional Commits
  • No secrets or credentials committed
  • One logical change per PR (no mixed concerns)

…e line

The span `Authorization: Bearer <token>` was wrapped across two lines, and
VitePress read the `<token>` as an HTML element without an end tag
("viewer.md: Element is missing end tag"). The Deploy Website workflow
failed at its Build step on every push to main and every tag from v0.23.0
on, so uteke.app was not updated.

Checked by building every page of docs/ with VitePress 1.6.4 (the version of
the lockfile) without the private theme: the build failed on this file and
passes with the span on one line.
@github-actions

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

@ajianaz
ajianaz merged commit fe358f1 into develop Nov 26, 2026
18 checks passed
ajianaz added a commit that referenced this pull request Nov 26, 2026
Patch release: doc create on stores that went through schema v11 (#1806), the website build (#1813), the secret detector gap (#1794), list_pinned with schema v28 (#1804), dependency updates and the MCP Registry rename.

Pre-release mutation gate: 2 mutants, 1 missed (Uteke::list_pinned wrapper), killed by a new test.
@ajianaz ajianaz mentioned this pull request Nov 26, 2026
4 tasks done
ajianaz added a commit that referenced this pull request Nov 26, 2026
Patch release v0.24.2: doc create on stores that went through schema v11 (#1806), the website build (#1813), the secret detector gap (#1794, #1810, #1816), list_pinned with schema v28 (#1804), dependency updates and the MCP Registry rename. See the CHANGELOG entry [0.24.2].
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.

1 participant