Repository navigation
Releases
v0.1.2
v0.1.2 is a sidebar layout fix covering the changes since v0.1.1.
On desktop layouts (960px and wider), the sidebar now stops at the footer's top edge and scrolls internally. This keeps the lower navigation entries accessible on short pages and in short viewports, while the footer remains full width.
👉 Changelog
0.1.2 (2026-11-17)
Bug Fixes
- end the sidebar at the footer instead of covering it (ca4b967)
v0.1.1
v0.1.1 switches
@routup/docs-themeto compiled distribution files. These notes cover the changes since v0.1.0.
👀 Highlights
📦 Compiled theme, configuration and named exports
The package now ships compiled ES modules and type declarations in dist/, rather than Vue and TypeScript source. Your site no longer needs to compile the theme's Vue components. The @routup/docs-theme/config entry stays plain JavaScript so Node can load it from node_modules.
You can also import components and helpers directly from the package root:
import { RtButton } from '@routup/docs-theme';The theme still loads its CSS automatically, and @routup/docs-theme/style.css remains available. Stylesheets stay separate from the JavaScript so your site's Vite resolves the fontsource imports.
⚠️ Heads-Up Before Upgrading
| Change | What to do |
|---|---|
The ./components/* subpath export is removed. |
If you used it from a checkout, switch to named imports such as import { RtButton } from '@routup/docs-theme'. |
| Only build output is published. | Use the public theme, config and stylesheet entries instead of paths into src/. |
⬆️ Upgrading
npm install @routup/docs-theme@0.1.1Requirements remain Node.js 22 or later, VitePress ^1.6.0 and Vue ^3.5.0.
👉 Changelog
0.1.1 (2026-11-16)
Features
v0.1.0
v0.1.0 is the first release of
@routup/docs-theme, the shared VitePress theme for routup documentation sites. These notes cover its initial history through v0.1.0.
👀 Highlights
🧩 A shared theme with site-owned content
You can share the routup palette, self-hosted Geist fonts and documentation styles without moving your site's navigation, sidebar or copy into the theme. defineRoutupConfig sets the Vite integration needed to consume the package's source files and supplies a theme-color meta tag and favicon unless you already configure them.
// .vitepress/config.mts
import { defineRoutupConfig } from '@routup/docs-theme/config';
export default defineRoutupConfig({
title: 'My site',
themeConfig: { /* your nav, sidebar and footer */ },
});// .vitepress/theme/index.ts
import Theme from '@routup/docs-theme';
export default Theme;The package extends VitePress's default theme without its Inter fonts. Its config entry is plain JavaScript with TypeScript declarations, so Node can load it from node_modules.
🎨 Shared building blocks for landing pages and docs
Sections, headings, cards, buttons, HTTP method badges and code panels are globally registered and work both on landing pages and inside Markdown documentation. Shared CSS tokens keep the dark palette consistent; heading highlights and method badges use darker colour variants on light surfaces to preserve contrast.
<RtSection surface="tinted">
<RtHeading title="Build with" highlight="routup" />
<RtCard href="/guide/">
Start with the guide.
</RtCard>
</RtSection>Code panels support labelled tabs and keyboard accessibility, and keep tabs visible beside long titles.
Note
RtCodePanel's active prop sets the initial tab only. RtCard and RtButton use href as given, so include your site's base path when needed.
📖 Components and design decisions
🧭 Landing-page navigation and a configurable footer
Landing pages get a transparent navigation bar over the hero and hide VitePress's mobile local navigation. The shared footer appears on every page when you set themeConfig.rtFooter; without that configuration it renders nothing.
---
layout: page
pageClass: rt-home
sidebar: false
---Note
At widths of 960px and above, add --rt-nav-offset to your landing hero's top padding to clear the fixed navigation bar. Set sidebar: false if your site has a global sidebar.
📖 Landing-page and footer configuration
⚠️ Before You Install
| Requirement | What to do |
|---|---|
| Node.js 22 or later | Use Node.js >=22.0.0. |
| VitePress and Vue peers | Use vitepress@^1.6.0 and vue@^3.5.0. |
| Source-only distribution | Let your site's Vite compile the published Vue, TypeScript and CSS files; use defineRoutupConfig for the integration. |
⬇️ Installing
npm install @routup/docs-theme@0.1.0Follow the setup instructions to configure your site.
👉 Changelog
0.1.0 (2026-11-16)
Features
- docs-theme: add a highlight to RtHeading (bbe2d4f)
- docs-theme: add layout with footer, transparent nav and doc styles (9fc8ac8)
- docs-theme: add shared section, card and code panel components (86879c3)
- docs-theme: add shared theme package with tokens and config helper (c88300b)
Bug Fixes
- a11y: darken the brand button hover background (75d33b2)
- a11y: keep method badge and heading highlight contrast on light surfaces (32a70f2)
- a11y: name the code panel tablist (afefaee)
- docs-theme: extend the VitePress theme without its Inter fonts (9ea71d5)
- docs-theme: hide the mobile local nav on landing pages (88255cb)
- docs-theme: keep the mobile nav transparent while the hero scrolls away (f1f1977)
- docs-theme: key footer columns and links by index and value (e516eab)
- docs-theme: make shared components work inside doc pages and complete code panel accessibility (2c708ee)
- docs-theme: resolve the config types under nodenext and add a default export condition (d50188e)
- docs-theme: unify the dark palette and fix table and contrast issues (c9dc4e3)
- keep the code panel tabs visible next to a long title (f8452ad)