|
| 1 | +import {defineConfig} from 'vitepress' |
| 2 | + |
| 3 | +// https://vitepress.dev/reference/site-config |
| 4 | +export default defineConfig({ |
| 5 | + title: "Transformers PHP", |
| 6 | + description: "State-of-the-art Machine Learning for PHP. Run Transformers in PHP", |
| 7 | + base: "/transformers-docs/", |
| 8 | + themeConfig: { |
| 9 | + // https://vitepress.dev/reference/default-theme-config |
| 10 | + nav: [ |
| 11 | + {text: 'Home', link: '/'}, |
| 12 | + {text: 'Docs', link: '/docs/'}, |
| 13 | + { |
| 14 | + text: '0.1.x', |
| 15 | + items: [ |
| 16 | + { |
| 17 | + text: 'Changelog', |
| 18 | + link: 'https://github.com/CodeWithKyrian/transformers-php/blob/main/CHANGELOG.md' |
| 19 | + }, |
| 20 | + { |
| 21 | + text: 'Contributing', |
| 22 | + link: 'https://github.com/CodeWithKyrian/transformers-php/blob/main/.github/contributing.md' |
| 23 | + }, |
| 24 | + ] |
| 25 | + } |
| 26 | + ], |
| 27 | + |
| 28 | + sidebar: [ |
| 29 | + { |
| 30 | + text: 'Getting Started', |
| 31 | + collapsed: false, |
| 32 | + items: [ |
| 33 | + {text: 'Introduction', link: '/docs/'}, |
| 34 | + {text: 'Getting Started', link: '/docs/getting-started'}, |
| 35 | + {text: 'Basic Usage', link: '/docs/basic-usage'}, |
| 36 | + {text: 'Configuration', link: '/docs/configuration'}, |
| 37 | + ] |
| 38 | + }, |
| 39 | + { |
| 40 | + text: 'Pipelines', |
| 41 | + collapsed: false, |
| 42 | + link: '/docs/pipelines', |
| 43 | + items: [ |
| 44 | + {text: 'Text Classification', link: '/docs/text-classification'}, |
| 45 | + {text: 'Fill Mask', link: '/docs/fill-mask'}, |
| 46 | + {text: 'Zero Shot Classification', link: '/docs/zero-shot-classification'}, |
| 47 | + {text: 'Question Answering', link: '/docs/question-answering'}, |
| 48 | + {text: 'Token Classification', link: '/docs/token-classification'}, |
| 49 | + {text: 'Feature Extraction', link: '/docs/feature-extraction'}, |
| 50 | + {text: 'Text to Text Generation', link: '/docs/text-to-text-generation'}, |
| 51 | + {text: 'Translation', link: '/docs/translation'}, |
| 52 | + {text: 'Summarization', link: '/docs/summarization'}, |
| 53 | + {text: 'Text Generation', link: '/docs/text-generation'}, |
| 54 | + ] |
| 55 | + }, |
| 56 | + { |
| 57 | + text: 'Advanced Usage', |
| 58 | + collapsed: false, |
| 59 | + items: [ |
| 60 | + {text: 'Auto Models', link: '/docs/auto-models'}, |
| 61 | + {text: 'Auto Tokenizers', link: '/docs/auto-tokenizers'}, |
| 62 | + ] |
| 63 | + }, |
| 64 | + { |
| 65 | + text: 'Utilities', |
| 66 | + collapsed: false, |
| 67 | + items: [ |
| 68 | + {text: 'Generation', link: '/docs/generation'}, |
| 69 | + ] |
| 70 | + } |
| 71 | + ], |
| 72 | + |
| 73 | + socialLinks: [ |
| 74 | + {icon: 'github', link: 'https://github.com/CodeWithKyrian/transformers-php'}, |
| 75 | + {icon: 'twitter', link: 'https://twitter.com/CodeWithKyrian'} |
| 76 | + ], |
| 77 | + |
| 78 | + footer: { |
| 79 | + message: 'Released under the MIT License.', |
| 80 | + copyright: 'Copyright © 2024 <a href="https://github.com/yyx990803">Kyrian Obikwelu</a>' |
| 81 | + }, |
| 82 | + |
| 83 | + editLink: { |
| 84 | + pattern: 'https://github.com/vuejs/vitepress/edit/main/docs/:path', |
| 85 | + text: 'Edit this page on GitHub' |
| 86 | + }, |
| 87 | + |
| 88 | + search: { |
| 89 | + provider: 'local' |
| 90 | + } |
| 91 | + }, |
| 92 | + cleanUrls: true, |
| 93 | + lastUpdated: true, |
| 94 | + markdown: { |
| 95 | + theme: {light: 'min-light', dark: 'min-dark'}, |
| 96 | + } |
| 97 | +}) |
0 commit comments