|
| 1 | +import {themes as prismThemes} from 'prism-react-renderer'; |
| 2 | +import type {Config} from '@docusaurus/types'; |
| 3 | +import type * as Preset from '@docusaurus/preset-classic'; |
| 4 | + |
| 5 | +const config: Config = { |
| 6 | + title: "Learn Python", |
| 7 | + tagline: "Python Made Easy By ComputeNepal", |
| 8 | + favicon: "img/ComputeNepal-logo.jpg", |
| 9 | + |
| 10 | + // Set the production url of your site here |
| 11 | + url: "https://computenepal.com/", |
| 12 | + // Set the /<baseUrl>/ pathname under which your site is served |
| 13 | + // For GitHub pages deployment, it is often '/<projectName>/' |
| 14 | + baseUrl: "/", |
| 15 | + |
| 16 | + // GitHub pages deployment config. |
| 17 | + // If you aren't using GitHub pages, you don't need these. |
| 18 | + organizationName: "computenepal", // Usually your GitHub org/user name. |
| 19 | + projectName: "learn-python", // Usually your repo name. |
| 20 | + |
| 21 | + onBrokenLinks: "throw", |
| 22 | + onBrokenMarkdownLinks: "warn", |
| 23 | + |
| 24 | + // Even if you don't use internalization, you can use this field to set useful |
| 25 | + // metadata like html lang. For example, if your site is Chinese, you may want |
| 26 | + // to replace "en" with "zh-Hans". |
| 27 | + i18n: { |
| 28 | + defaultLocale: "en", |
| 29 | + locales: ["en"], |
| 30 | + }, |
| 31 | + |
| 32 | + presets: [ |
| 33 | + [ |
| 34 | + 'classic', |
| 35 | + { |
| 36 | + docs: { |
| 37 | + sidebarPath: './sidebars.ts', |
| 38 | + // Please change this to your repo. |
| 39 | + // Remove this to remove the "edit this page" links. |
| 40 | + editUrl: "https://github.com/computenepal/learn-html/tree/master", |
| 41 | + }, |
| 42 | + theme: { |
| 43 | + customCss: './src/css/custom.css', |
| 44 | + }, |
| 45 | + } satisfies Preset.Options, |
| 46 | + ], |
| 47 | + ], |
| 48 | + |
| 49 | + themeConfig: { |
| 50 | + // Replace with your project's social card |
| 51 | + metadata: [{ |
| 52 | + name: 'keywords', content: 'python, learn python, tutorial, python tutorial, learn to code' |
| 53 | + }], |
| 54 | + navbar: { |
| 55 | + title: "Learn Python", |
| 56 | + logo: { |
| 57 | + alt: "ComputeNepal Logo", |
| 58 | + src: "img/ComputeNepal-logo.jpg", |
| 59 | + }, |
| 60 | + items: [ |
| 61 | + { |
| 62 | + type: "docSidebar", |
| 63 | + sidebarId: "tutorialSidebar", |
| 64 | + position: "left", |
| 65 | + label: "Learn", |
| 66 | + }, |
| 67 | + { href: "https://computenepal.com", label: "Blog", position: "left" }, |
| 68 | + { |
| 69 | + href: "https://github.com/computenepal/learn-html", |
| 70 | + label: "GitHub", |
| 71 | + position: "right", |
| 72 | + }, |
| 73 | + ], |
| 74 | + }, |
| 75 | + footer: { |
| 76 | + style: 'dark', |
| 77 | + links: [ |
| 78 | + { |
| 79 | + title: "Docs", |
| 80 | + items: [ |
| 81 | + { |
| 82 | + label: "Tutorial", |
| 83 | + to: "/docs/intro", |
| 84 | + }, |
| 85 | + ], |
| 86 | + }, |
| 87 | + { |
| 88 | + title: "Community", |
| 89 | + items: [ |
| 90 | + { |
| 91 | + label: "Facebook Group", |
| 92 | + href: "https://www.facebook.com/groups/computenepal", |
| 93 | + }, |
| 94 | + { |
| 95 | + label: "Youtube@ComputeNepal", |
| 96 | + href: "https://youtube.com/@computenepal", |
| 97 | + }, |
| 98 | + { |
| 99 | + label: "Youtube@ramCoder", |
| 100 | + href: "https://youtube.com/@ramcoder", |
| 101 | + }, |
| 102 | + { |
| 103 | + label: "Twitter", |
| 104 | + href: "https://twitter.com/computenepal", |
| 105 | + }, |
| 106 | + ], |
| 107 | + }, |
| 108 | + { |
| 109 | + title: "More", |
| 110 | + items: [ |
| 111 | + { |
| 112 | + label: "ComputeNepal", |
| 113 | + href: "https://www.computenepal", |
| 114 | + }, |
| 115 | + { |
| 116 | + label: "GitHub", |
| 117 | + href: "https://github.com/computenepal/learn-html", |
| 118 | + }, |
| 119 | + ], |
| 120 | + }, |
| 121 | + ], |
| 122 | + copyright: `Copyright © ${new Date().getFullYear()} ComputeNepal. Built with Docusaurus.`, |
| 123 | + }, |
| 124 | + prism: { |
| 125 | + theme: prismThemes.github, |
| 126 | + darkTheme: prismThemes.dracula, |
| 127 | + }, |
| 128 | + } satisfies Preset.ThemeConfig, |
| 129 | +}; |
| 130 | + |
| 131 | +export default config; |
0 commit comments