Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ async function buildPageMap(pagesDir: string): Promise<Record<string, { title: s
if (skipDirs.includes(dirName)) {
return;
}

try {
const entries = await readdir(dir, { withFileTypes: true });
for (const entry of entries) {
Expand Down Expand Up @@ -130,6 +130,10 @@ export default defineConfig({
],
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
outline: {
level: [2, 3],
label: 'On this page'
},
logo: {
light: `/gardenlinux-logo.svg`,
dark: `/gardenlinux-logo.svg`,
Expand Down Expand Up @@ -226,14 +230,14 @@ export default defineConfig({
// Build page map - NOT cached globally due to VitePress config execution issues
const pagesDir = siteConfig.root;
const pageMap = await buildPageMap(pagesDir);

// Resolve related_topics if present
const relatedTopics = pageData.frontmatter?.related_topics;
if (relatedTopics && Array.isArray(relatedTopics)) {
// Get current page URL
let currentPageUrl = "/" + pageData.relativePath.replace(/\.md$/, ".html");
currentPageUrl = currentPageUrl.replace(/\/index\.html$/, "/");

pageData.frontmatter.resolvedRelated = relatedTopics
.map((ref: string) => {
// Normalize the file path to URL
Expand Down
14 changes: 7 additions & 7 deletions repos-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"docs_path": "docs",
"target_path": "projects/gardenlinux",
"ref": "docs-ng",
"commit": "609ee3cf5f593b9d413e0809ba6856b96df1707c",
"commit": "85a50cbc54a5856008b3b457938b6a0cd3f98e45",
"root_files": [
"CONTRIBUTING.md",
"SECURITY.md",
Expand All @@ -32,7 +32,7 @@
"docs_path": "docs",
"target_path": "projects/builder",
"ref": "docs-ng",
"commit": "ef6b09f8bd78975dde6e9cff4e1707c798af03a3",
"commit": "b4ef334934f108f2aa1a2b3430a6d25a6dd89c26",
"media_directories": [
".media",
"assets",
Expand All @@ -45,7 +45,7 @@
"docs_path": "docs",
"target_path": "projects/python-gardenlinux-lib",
"ref": "docs-ng",
"commit": "995886a39a0ca93e9710a97acb3995dc93c99c87",
"commit": "24d5a0eb5e683f61ada7033584c1b6b7df798e06",
"structure": "sphinx",
"media_directories": [
".media",
Expand All @@ -62,7 +62,7 @@
"docs_path": "docs",
"target_path": "projects/package-linux",
"ref": "docs-ng",
"commit": "9570d0f81eae4e1e500dd3f36ea845a2dce14357",
"commit": "a402f6ff869717137590b883c2a28a17c27d907b",
"media_directories": [
".media",
"assets"
Expand All @@ -74,7 +74,7 @@
"docs_path": "docs",
"target_path": "projects/package-build",
"ref": "docs-ng",
"commit": "b4bce8b1dbb48cfedefdd866f3bc28d1c395c060",
"commit": "b37eed4f0133e0b51079d87f67332ac9e12dc110",
"media_directories": [
".media",
"assets"
Expand All @@ -86,7 +86,7 @@
"docs_path": "docs",
"target_path": "projects/repo",
"ref": "docs-ng",
"commit": "4953feba27c5efd31421a883dec7c5bd61ac40f5",
"commit": "96491381c64b7c9f7ebee33841ae409ffc9dcf94",
"media_directories": [
".media",
"assets"
Expand All @@ -98,7 +98,7 @@
"docs_path": "docs",
"target_path": "projects/glrd",
"ref": "docs-ng",
"commit": "b5262e0bf409065ee1b9d62f4d0270695d9081a2",
"commit": "4969f8dadcb777e53e4928083797b0f9eb15c775",
"media_directories": [
".media",
"assets"
Expand Down
Loading