Skip to content

Commit bca656d

Browse files
mohnjilesclaude
andcommitted
docs: add local search, edit links, sitemap, lastUpdated, SWA 404 page
- VitePress built-in local search (Ctrl+K) - "Edit this page on GitHub" links for community contributions - sitemap.xml generated for docs.lykos.ai - lastUpdated page footers (deploy job now checks out full history) - staticwebapp.config.json rewrites Azure SWA 404s to the VitePress 404 page Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent be68753 commit bca656d

3 files changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/docs-site.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ jobs:
2323
contents: read
2424
steps:
2525
- uses: actions/checkout@v4
26+
with:
27+
# Full history so VitePress lastUpdated timestamps are accurate
28+
fetch-depth: 0
2629

2730
- name: Set up Node.js
2831
uses: actions/setup-node@v4

docs/.vitepress/config.mts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,25 @@ export default defineConfig({
1616

1717
appearance: 'dark',
1818

19+
// Requires full git history at build time (fetch-depth: 0 in the deploy job).
20+
lastUpdated: true,
21+
22+
sitemap: {
23+
hostname: 'https://docs.lykos.ai'
24+
},
25+
1926
themeConfig: {
2027
outline: 'deep',
2128

29+
search: {
30+
provider: 'local'
31+
},
32+
33+
editLink: {
34+
pattern: 'https://github.com/LykosAI/StabilityMatrix/edit/main/docs/:path',
35+
text: 'Edit this page on GitHub'
36+
},
37+
2238
nav: [
2339
{ text: 'Home', link: '/' },
2440
{ text: 'Getting Started', link: '/getting-started/overview' },
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"responseOverrides": {
3+
"404": {
4+
"rewrite": "/404.html"
5+
}
6+
}
7+
}

0 commit comments

Comments
 (0)