|
| 1 | +import {defineConfig} from 'vitepress' |
| 2 | + |
| 3 | +// https://vitepress.dev/reference/site-config |
| 4 | +export default defineConfig({ |
| 5 | + title: "Opengist", |
| 6 | + description: "Documention for Opengist", |
| 7 | + rewrites: { |
| 8 | + 'index.md': 'index.md', |
| 9 | + 'introduction.md': 'docs/index.md', |
| 10 | + ':path(.*)': 'docs/:path' |
| 11 | + }, |
| 12 | + themeConfig: { |
| 13 | + // https://vitepress.dev/reference/default-theme-config |
| 14 | + logo: 'https://raw.githubusercontent.com/thomiceli/opengist/master/public/opengist.svg', |
| 15 | + logoLink: '/', |
| 16 | + nav: [ |
| 17 | + { text: 'Demo', link: 'https://demo.opengist.io' }, |
| 18 | + { text: 'Translate', link: 'https://tr.opengist.io' } |
| 19 | + ], |
| 20 | + |
| 21 | + sidebar: { |
| 22 | + '/docs/': [ |
| 23 | + { |
| 24 | + text: '', items: [ |
| 25 | + {text: 'Introduction', link: '/docs'}, |
| 26 | + {text: 'Installation', link: '/docs/installation', items: [ |
| 27 | + {text: 'Docker', link: '/docs/installation/docker'}, |
| 28 | + {text: 'Binary', link: '/docs/installation/binary'}, |
| 29 | + {text: 'Source', link: '/docs/installation/source'}, |
| 30 | + ], |
| 31 | + collapsed: true |
| 32 | + }, |
| 33 | + {text: 'Update', link: '/docs/update'}, |
| 34 | + ], collapsed: false |
| 35 | + }, |
| 36 | + { |
| 37 | + text: 'Configuration', base: '/docs/configuration', items: [ |
| 38 | + {text: 'Configure Opengist', link: '/configure'}, |
| 39 | + {text: 'Admin panel', link: '/admin-panel'}, |
| 40 | + {text: 'OAuth Providers', link: '/oauth-providers'}, |
| 41 | + {text: 'Custom assets', link: '/custom-assets'}, |
| 42 | + {text: 'Custom links', link: '/custom-links'}, |
| 43 | + {text: 'Cheat Sheet', link: '/cheat-sheet'}, |
| 44 | + ], collapsed: false |
| 45 | + }, |
| 46 | + { |
| 47 | + text: 'Usage', base: '/docs/usage', items: [ |
| 48 | + {text: 'Init via Git', link: '/init-via-git'}, |
| 49 | + {text: 'Embed Gist', link: '/embed'}, |
| 50 | + {text: 'Gist as JSON', link: '/gist-json'}, |
| 51 | + {text: 'Import Gists from Github', link: '/import-from-github-gist'}, |
| 52 | + {text: 'Git push options', link: '/git-push-options'}, |
| 53 | + ], collapsed: false |
| 54 | + }, |
| 55 | + { |
| 56 | + text: 'Administration', base: '/docs/administration', items: [ |
| 57 | + {text: 'Run with systemd', link: '/run-with-systemd'}, |
| 58 | + {text: 'Reverse proxy', items: [ |
| 59 | + {text: 'Nginx', link: '/nginx-reverse-proxy'}, |
| 60 | + {text: 'Traefik', link: '/traefik-reverse-proxy'}, |
| 61 | + ], collapsed: true}, |
| 62 | + {text: 'Fail2ban', link: '/fail2ban-setup'}, |
| 63 | + {text: 'Healthcheck', link: '/healthcheck'}, |
| 64 | + ], collapsed: false |
| 65 | + }, |
| 66 | + { |
| 67 | + text: 'Contributing', base: '/docs/contributing', items: [ |
| 68 | + {text: 'Community', link: '/community'}, |
| 69 | + {text: 'Development', link: '/development'}, |
| 70 | + ], collapsed: false |
| 71 | + }, |
| 72 | + |
| 73 | + ]}, |
| 74 | + |
| 75 | + socialLinks: [ |
| 76 | + {icon: 'github', link: 'https://github.com/thomiceli/opengist'} |
| 77 | + ], |
| 78 | + editLink: { |
| 79 | + pattern: 'https://github.com/thomiceli/opengist/edit/stable/docs/:path' |
| 80 | + }, |
| 81 | + // @ts-ignore |
| 82 | + lastUpdated: true, |
| 83 | + |
| 84 | + }, |
| 85 | + head: [ |
| 86 | + ['link', {rel: 'icon', href: '/favicon.svg'}], |
| 87 | + ], |
| 88 | + ignoreDeadLinks: true |
| 89 | +}) |
0 commit comments