|
| 1 | +// @ts-check |
| 2 | +import { defineConfig } from 'astro/config'; |
| 3 | +import starlight from '@astrojs/starlight'; |
| 4 | + |
| 5 | +// https://astro.build/config |
| 6 | +export default defineConfig({ |
| 7 | + site: 'https://code2prompt.dev', |
| 8 | + integrations: [ |
| 9 | + starlight({ |
| 10 | + title: 'Code2prompt', |
| 11 | + logo: { |
| 12 | + light:'./src/assets/logo_dark_v0.0.1.svg', |
| 13 | + dark:'./src/assets/logo_light_v0.0.1.svg', |
| 14 | + }, |
| 15 | + defaultLocale: 'root', |
| 16 | + locales: { |
| 17 | + // English docs in `src/content/en/` |
| 18 | + root: { |
| 19 | + label: 'English', |
| 20 | + lang: 'en', |
| 21 | + }, |
| 22 | + }, |
| 23 | + social: { |
| 24 | + github: 'https://github.com/mufeedvh/code2prompt', |
| 25 | + discord: 'https://discord.gg/ZZyBbsHTwH', |
| 26 | + }, |
| 27 | + sidebar: [ |
| 28 | + { |
| 29 | + label: "🚀 CLI Documentation", |
| 30 | + items: [ |
| 31 | + { label: "Welcome", link: "docs/cli/welcome" }, |
| 32 | + { |
| 33 | + label: "Tutorials", |
| 34 | + items: [ |
| 35 | + { label: "Getting Started", link: "docs/cli/tutorials/getting_started" }, |
| 36 | + { label: "Using Templates", link: "docs/cli/tutorials/using_templates" }, |
| 37 | + { label: "Using Glob Pattern Tool", link: "docs/cli/tutorials/using_glob_pattern_tool" }, |
| 38 | + { label: "Use Filter", link: "docs/cli/tutorials/use_filter" }, |
| 39 | + { label: "Handlebars Templates", link: "docs/cli/tutorials/templates" }, |
| 40 | + ], |
| 41 | + }, |
| 42 | + { |
| 43 | + label: "Explanations", |
| 44 | + items: [ |
| 45 | + { label: "What are Glob Patterns?", link: "docs/cli/explanations/glob_patterns" }, |
| 46 | + { label: "How the Glob Pattern Filter Works", link: "docs/cli/explanations/glob_pattern_filter" }, |
| 47 | + { label: "Understanding Tokenizers", link: "docs/cli/explanations/tokenizers" }, |
| 48 | + { label: "Glob Pattern Tool", link: "docs/cli/explanations/glob_pattern_tool" }, |
| 49 | + ], |
| 50 | + }, |
| 51 | + { |
| 52 | + label: "How-To Guides", |
| 53 | + items: [ |
| 54 | + { label: "Install Code2Prompt", link: "docs/cli/how_to/install" }, |
| 55 | + { label: "Filter Files", link: "docs/cli/how_to/filter_files" }, |
| 56 | + { label: "Save Generated Prompt", link: "docs/cli/how_to/save_generated_prompt" }, |
| 57 | + { label: "Exclude Files from Tree", link: "docs/cli/how_to/exclude_files_from_tree" }, |
| 58 | + ], |
| 59 | + }, |
| 60 | + ], |
| 61 | + }, |
| 62 | + { |
| 63 | + label: "📦 SDK Documentation", |
| 64 | + items: [ |
| 65 | + { label: "Welcome", link: "docs/sdk/welcome" }, |
| 66 | + { |
| 67 | + label: "Tutorials", |
| 68 | + items: [ |
| 69 | + { label: "SDK Tutorial 1", link: "docs/sdk/tutorials/tutorial1" }, |
| 70 | + { label: "SDK Tutorial 2", link: "docs/sdk/tutorials/tutorial2" }, |
| 71 | + ], |
| 72 | + }, |
| 73 | + { |
| 74 | + label: "Explanations", |
| 75 | + items: [ |
| 76 | + { label: "SDK Concepts", link: "docs/sdk/explanations/sdk_concepts" }, |
| 77 | + ], |
| 78 | + }, |
| 79 | + { |
| 80 | + label: "How-To Guides", |
| 81 | + items: [ |
| 82 | + { label: "Install SDK", link: "docs/sdk/how_to/install" }, |
| 83 | + { label: "Use SDK", link: "docs/sdk/how_to/use_sdk" }, |
| 84 | + ], |
| 85 | + }, |
| 86 | + ], |
| 87 | + }, |
| 88 | + ] |
| 89 | + }), |
| 90 | + ], |
| 91 | +}); |
0 commit comments