Skip to content

Commit

Permalink
Merge pull request #240 from hey-api/fix/docs-base
Browse files Browse the repository at this point in the history
chore(docs): set base in config
  • Loading branch information
jordanshatford authored Apr 3, 2024
2 parents dcc80e0 + dd3dae7 commit 7722ae5
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 31 deletions.
37 changes: 19 additions & 18 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,24 @@ import { defineConfig } from 'vitepress'

// https://vitepress.dev/reference/site-config
export default defineConfig({
title: "OpenAPI TypeScript",
description: "Turn your OpenAPI specification into a beautiful TypeScript client",
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
nav: [
{ text: 'Guide', link: '/introduction' },
],
sidebar: [
{
text: 'Guide',
items: [
{ text: 'Introduction', link: '/introduction' },
base: '/openapi-ts/',
title: "OpenAPI TypeScript",
description: "Turn your OpenAPI specification into a beautiful TypeScript client",
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
nav: [
{ text: 'Guide', link: '/introduction' },
],
sidebar: [
{
text: 'Guide',
items: [
{ text: 'Introduction', link: '/introduction' },
]
}
],
socialLinks: [
{ icon: 'github', link: 'https://github.com/hey-api/openapi-ts' }
]
}
],
socialLinks: [
{ icon: 'github', link: 'https://github.com/hey-api/openapi-ts' }
]
}
}
})
26 changes: 13 additions & 13 deletions docs/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "openapi-ts-docs",
"version": "0.1.0",
"description": "Documentation for OpenaAPI TypeScript.",
"private": true,
"type": "module",
"scripts": {
"dev": "vitepress dev",
"build": "vitepress build",
"preview": "vitepress preview"
},
"devDependencies": {
"vitepress": "1.0.2"
}
"name": "openapi-ts-docs",
"version": "0.1.0",
"description": "Documentation for OpenaAPI TypeScript.",
"private": true,
"type": "module",
"scripts": {
"dev": "vitepress dev",
"build": "vitepress build",
"preview": "vitepress preview"
},
"devDependencies": {
"vitepress": "1.0.2"
}
}

0 comments on commit 7722ae5

Please sign in to comment.