vitepress-bilingual-page
Skill46 starsChanged 5 months agoMITView on GitHub
How to add a page to the tdmcp VitePress docs site so it builds, gets a clean URL, and lands in the right nav — including the repo's partial-translation convention (only the artist guide is EN+PT; reference/legal pages are English). Use when authoring the privacy policy or any new docs page for tdmcp.
In this repository64 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- connectors-directory-specSkill
- mcpb-bundleSkill
- submission-qaSkill
- td-feature-buildSkill
- td-feature-designSkill
- td-feature-integrateSkill
- td-feature-qaSkill
- td-feature-releaseSkill
- td-feature-surveySkill
- td-feature-synthesizeSkill
- tdmcp-backlog-campaignSkill
- tdmcp-bridge-endpointSkill
- tdmcp-cookbook-examplesSkill
- tdmcp-coverage-writerSkill
- tdmcp-docs-roadmap-updateSkill
- tdmcp-feature-discoverySkill
- tdmcp-implementation-learningSkill
- tdmcp-kinect-wall-harpSkill
- tdmcp-pipelineSkill
- tdmcp-quality-auditSkill
- tdmcp-submissionSkill
- tdmcp-test-coverageSkill
- tdmcp-tool-builderSkill
- ai-party-mixer-runbookSkill
- connectors-directory-specSkill
- mcpb-bundleSkill
- mixer-policy-safetySkill
- mixer-scene-contractSkill
- soundcraft-ui24r-adapterSkill
- submission-qaSkill
- td-feature-buildSkill
- td-feature-designSkill
- td-feature-integrateSkill
- td-feature-qaSkill
- td-feature-releaseSkill
- td-feature-surveySkill
- td-feature-synthesizeSkill
- td-hype-synthesizeSkill
- tdmcp-ai-party-mixer-designSkill
- tdmcp-backlog-campaignSkill
- tdmcp-bridge-endpointSkill
- tdmcp-cookbook-examplesSkill
- tdmcp-coverage-writerSkill
- tdmcp-docs-interactiveSkill
- tdmcp-docs-roadmap-updateSkill
- tdmcp-feature-discoverySkill
- tdmcp-hype-scoutSkill
- tdmcp-implementation-learningSkill
- tdmcp-kinect-wall-harpSkill
- tdmcp-pipelineSkill
- tdmcp-quality-auditSkill
- tdmcp-raytk-integrationSkill
- tdmcp-roadmap-campaignSkill
- tdmcp-submissionSkill
- tdmcp-test-coverageSkill
- tdmcp-tool-builderSkill
- td-trend-scoutSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 36
If a PT version is wanted: docs/pt/privacy.md + a { text: "Privacidade", link: "/pt/privacy" } entry in the PT-side nav config.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Adding a page to the tdmcp VitePress site
The site lives under docs/, config in docs/.vitepress/config.ts
(base: "/tdmcp/", cleanUrls: true, deployed to
https://pantani.github.io/tdmcp/).
i18n convention — read this before deciding paths
Only the artist guide track is translated (EN + PT-BR). Everything else is English-only. The config encodes three nav groups:
artistGuide(base)/artistGuidePt→docs/guide/*.mdanddocs/pt/guide/*.md. This is the only mirrored track.devReference→docs/reference/*.md(English only).operations→ standalone pages likedocs/DEPLOYMENT.md,docs/ROADMAP.md(English only), plus external GitHub links.
So a privacy / legal page is NOT an artist-guide page. It belongs as a standalone page, English as the canonical version (legal text is fine in EN; the form needs exactly one privacy URL). Add a PT mirror only if the spec asks — do not force it just because the guide is bilingual.
Recommended placement for the privacy policy
- File:
docs/privacy.md→ clean URLhttps://pantani.github.io/tdmcp/privacy. - Frontmatter: give it a
title:(used bytransformHead) and consideraside: falsefor a legal page. - Nav: add to the
operationsarray inconfig.ts:{ text: "Privacy", link: "/privacy" }. (It's the legal/ops group, not the artist sidebar.) Put it near the end, before/after Changelog. - If a PT version is wanted:
docs/pt/privacy.md+ a{ text: "Privacidade", link: "/pt/privacy" }entry in the PT-side nav config.
The site uses
cleanUrls, so link to/privacy, never/privacy.html. For a page that needs a non-default URL (like DEPLOYMENT→deployment) you'd add arewritesentry — a lowercaseprivacy.mdneeds none.
How to verify a page is wired correctly
- The
.mdfile exists at the path whose URL you put in the nav. - The nav entry's
linkmatches the clean URL (no.md, no.html). npm run docs:buildpasses — VitePress fails the build on dead internal links, so a typo'd nav link or a broken in-page link is caught here. This is the gate; always run it after adding a page.- Loopback URLs (
localhost,127.0.0.1) in prose are ignored by the dead-link checker (seeignoreDeadLinks), so you can mention the bridge address freely.
Voice / content
Match the existing docs voice — pull product framing from docs/index.md and
docs/guide/what-is-tdmcp.md rather than inventing new copy. Keep legal pages
plain and direct; artists are the audience, so avoid dense legalese.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

