|
| 1 | +import { defineConfig } from 'astro/config'; |
| 2 | +import starlight from '@astrojs/starlight'; |
| 3 | +import starlightBlog from 'starlight-blog'; |
| 4 | +import remarkMath from 'remark-math'; |
| 5 | +import rehypeKatex from 'rehype-katex'; |
| 6 | + |
| 7 | +export default defineConfig({ |
| 8 | + site: 'https://minish.ai', |
| 9 | + redirects: { |
| 10 | + '/packages': '/packages/overview/', |
| 11 | + }, |
| 12 | + integrations: [ |
| 13 | + starlight({ |
| 14 | + title: 'Minish', |
| 15 | + components: { |
| 16 | + Header: './src/components/Header.astro', |
| 17 | + }, |
| 18 | + description: 'Fast open-source NLP models and packages', |
| 19 | + logo: { |
| 20 | + light: '/logo/minish_logo_lighter.png', |
| 21 | + dark: '/logo/minish_logo_lighter.png', |
| 22 | + replacesTitle: false, |
| 23 | + }, |
| 24 | + favicon: '/logo/minish_logo.png', |
| 25 | + customCss: ['./src/styles/custom.css'], |
| 26 | + social: [ |
| 27 | + { icon: 'github', label: 'GitHub', href: 'https://github.com/minishlab' }, |
| 28 | + { icon: 'linkedin', label: 'LinkedIn', href: 'https://linkedin.com/company/minish-lab' }, |
| 29 | + { icon: 'x.com', label: 'X', href: 'https://x.com/minishlab' }, |
| 30 | + { icon: 'discord', label: 'Discord', href: 'https://discord.gg/4BDPR5nmtK' }, |
| 31 | + ], |
| 32 | + plugins: [ |
| 33 | + starlightBlog({ |
| 34 | + title: 'Blog', |
| 35 | + authors: { |
| 36 | + minish: { name: 'Minish Lab', url: 'https://minish.ai' }, |
| 37 | + }, |
| 38 | + }), |
| 39 | + ], |
| 40 | + sidebar: [ |
| 41 | + { |
| 42 | + label: 'Packages', |
| 43 | + items: [ |
| 44 | + { label: 'Overview', link: '/packages/overview/' }, |
| 45 | + { |
| 46 | + label: 'Model2Vec', |
| 47 | + items: [ |
| 48 | + { label: 'Introduction', link: '/packages/model2vec/introduction/' }, |
| 49 | + { label: 'Installation', link: '/packages/model2vec/installation/' }, |
| 50 | + { label: 'Inference', link: '/packages/model2vec/inference/' }, |
| 51 | + { label: 'Distillation', link: '/packages/model2vec/distillation/' }, |
| 52 | + { label: 'Training', link: '/packages/model2vec/training/' }, |
| 53 | + { label: 'Models', link: '/packages/model2vec/models/' }, |
| 54 | + { label: 'Results', link: '/packages/model2vec/results/' }, |
| 55 | + { label: 'Integrations', link: '/packages/model2vec/integrations/' }, |
| 56 | + ], |
| 57 | + }, |
| 58 | + { |
| 59 | + label: 'SemHash', |
| 60 | + items: [ |
| 61 | + { label: 'Introduction', link: '/packages/semhash/introduction/' }, |
| 62 | + { label: 'Installation', link: '/packages/semhash/installation/' }, |
| 63 | + { label: 'Deduplication', link: '/packages/semhash/deduplication/' }, |
| 64 | + { label: 'Outlier Filtering', link: '/packages/semhash/outlier-filtering/' }, |
| 65 | + { label: 'Representative Sampling', link: '/packages/semhash/representative-sampling/' }, |
| 66 | + { label: 'Benchmarks', link: '/packages/semhash/benchmarks/' }, |
| 67 | + { label: 'Custom Encoders', link: '/packages/semhash/custom-encoders/' }, |
| 68 | + ], |
| 69 | + }, |
| 70 | + { |
| 71 | + label: 'Vicinity', |
| 72 | + items: [ |
| 73 | + { label: 'Introduction', link: '/packages/vicinity/introduction/' }, |
| 74 | + { label: 'Installation', link: '/packages/vicinity/installation/' }, |
| 75 | + { label: 'Usage', link: '/packages/vicinity/usage/' }, |
| 76 | + { label: 'Supported Backends', link: '/packages/vicinity/supported-backends/' }, |
| 77 | + ], |
| 78 | + }, |
| 79 | + { |
| 80 | + label: 'Tokenlearn', |
| 81 | + items: [ |
| 82 | + { label: 'Usage', link: '/packages/tokenlearn/usage/' }, |
| 83 | + ], |
| 84 | + }, |
| 85 | + { |
| 86 | + label: 'Model2Vec-rs', |
| 87 | + items: [ |
| 88 | + { label: 'Usage', link: '/packages/model2vec-rs/usage/' }, |
| 89 | + ], |
| 90 | + }, |
| 91 | + ], |
| 92 | + }, |
| 93 | + ], |
| 94 | + }), |
| 95 | + ], |
| 96 | + markdown: { |
| 97 | + remarkPlugins: [remarkMath], |
| 98 | + rehypePlugins: [rehypeKatex], |
| 99 | + }, |
| 100 | +}); |
0 commit comments