Skip to content

Configuration ​

synced/.repos-metadata.json ​

Written by scripts/sync-docs.ts after each sync. Do not edit manually — it is regenerated on every run.

json
[
  {
    "slug": "dotfiles",
    "title": "Dotfiles",
    "description": "macOS and Debian dotfiles and setup scripts.",
    "repo": "KevinDeBenedetti/dotfiles",
    "branch": "main"
  }
]
FieldDescription
slugRepository name, used as the synced/<slug>/ directory name and URL prefix.
titleHuman-readable title derived from the repository name (kebab-case → Title Case).
descriptionGitHub repository description.
repoFull owner/name slug.
branchDefault branch of the repository: the source card and edit links point at it.

Local project metadata ​

Locally managed projects (under docs/<slug>/) are discovered automatically when their index.md contains a repo: frontmatter field and an H1, which is the project title. The page is then regenerated on every build from these fields, so edit the frontmatter and the H1, not the body:

FieldTypeRequiredDescription
repostringYesFull owner/name slug. Presence of this field marks the directory as a local project. Used for the source card and the Projects page link.
descriptionstringNoOne-line summary shown on the homepage feature card and the Projects page.
iconstringNoEmoji or short text shown above the title on the project's homepage feature card.
ordernumberNoSort position in the sidebar, the homepage cards and the Projects page. Lower numbers appear first; projects without one follow, by slug.

Example (docs/docs/index.md frontmatter):

yaml
---
title: "Docs Generator"
description: "Documentation for this documentation hub — sync, generation, and contribution guides."
repo: KevinDeBenedetti/kevindebenedetti.github.io
order: 0
generated: true
---

title and generated are written by the generator: title repeats the H1, and generated: true marks the page as rebuilt on every run.

.vitepress/config.ts ​

Static VitePress configuration. Builds nav, sidebar and edit links at load time with scripts/site-navigation.ts, from the projects found on disk.

Key settings:

OptionValue
base/
srcDir. (repo root)
srcExcludeREADME.md, TODO.md, CHANGELOG.md, CLAUDE.md, GLOSSARY.md, docs/adr/**
rewritesMaps synced/:slug/* and docs/:slug/* → /:slug/*
titleHome, the nav bar title (pages use the :title | Kevin's Docs template)
themeConfig.navnav from buildSiteNavigation
themeConfig.sidebarsidebar from buildSiteNavigation
themeConfig.editLinkeditLinkPattern(projects): links each page back to its source file on GitHub
markdownlanguageAlias (env → dotenv), Shiki grammars from .vitepress/shiki/ (LogQL)
transformPageDataCanonical URL, Open Graph, Twitter and JSON-LD tags per page; the homepage title

The homepage is titled Kevin's Docs: developer documentation hub (HOME_TITLE), with no template, in its <title>, og:title and twitter:title.

A page's meta description is its frontmatter description:. A project page that sets none gets <page title>, in the <project> documentation: <project description> (pageDescription in scripts/site-navigation.ts), so search results do not repeat the site description for every page.

Environment variables ​

Used by scripts/sync-docs.ts at sync time and by scripts/check-docs-changes.ts in the docs poll:

VariableDefaultDescription
GITHUB_TOKEN(empty)Personal access token for the GitHub API. Without it, requests are unauthenticated and rate-limited to 60/hour.
GITHUB_OWNERKevinDeBenedettiGitHub username to fetch repositories for.
GITHUB_API_URLhttps://api.github.comGitHub API base URL. Override for GitHub Enterprise.
SITE_URLhttps://kevindebenedetti.github.ioLive site the docs poll reads /sync-state.json from (scripts/check-docs-changes.ts only).