|
| 1 | +// @ts-check |
| 2 | +// `@type` JSDoc annotations allow editor autocompletion and type checking |
| 3 | +// (when paired with `@ts-check`). |
| 4 | +// There are various equivalent ways to declare your Docusaurus config. |
| 5 | +// See: https://docusaurus.io/docs/api/docusaurus-config |
| 6 | + |
| 7 | +import { themes as prismThemes } from "prism-react-renderer"; |
| 8 | + |
| 9 | +/** @type {import('@docusaurus/types').Config} */ |
| 10 | +const config = { |
| 11 | + title: "GitHub Copilot Labs", |
| 12 | + tagline: "GitHub Copilot Labs", |
| 13 | + url: "https://GitHub-Insight-ANZ-Lab.io/", |
| 14 | + baseUrl: "/copilot/", |
| 15 | + |
| 16 | + onBrokenLinks: "ignore", |
| 17 | + onBrokenMarkdownLinks: "ignore", |
| 18 | + trailingSlash: true, |
| 19 | + |
| 20 | + organizationName: "GitHub-Insight-ANZ-Lab", |
| 21 | + projectName: "github-copilot-labs-list", |
| 22 | + deploymentBranch: "main", |
| 23 | + favicon: "img/favicon.ico", |
| 24 | + |
| 25 | + i18n: { |
| 26 | + defaultLocale: "en", |
| 27 | + locales: ["en"], |
| 28 | + }, |
| 29 | + |
| 30 | + presets: [ |
| 31 | + [ |
| 32 | + "classic", |
| 33 | + /** @type {import('@docusaurus/preset-classic').Options} */ |
| 34 | + ({ |
| 35 | + docs: { |
| 36 | + routeBasePath: "/", |
| 37 | + sidebarPath: require.resolve("./sidebars.js"), |
| 38 | + }, |
| 39 | + blog: false, |
| 40 | + theme: { |
| 41 | + customCss: require.resolve("./src/css/custom.css"), |
| 42 | + }, |
| 43 | + }), |
| 44 | + ], |
| 45 | + ], |
| 46 | + |
| 47 | + themeConfig: |
| 48 | + /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ |
| 49 | + ({ |
| 50 | + docs: { |
| 51 | + sidebar: { |
| 52 | + hideable: false, |
| 53 | + autoCollapseCategories: false, |
| 54 | + }, |
| 55 | + }, |
| 56 | + |
| 57 | + navbar: { |
| 58 | + title: "GitHub Copilot Labs", |
| 59 | + logo: { |
| 60 | + alt: "Workshop: GitHub Copilot Labs", |
| 61 | + src: "img/logo-ws3.png", |
| 62 | + }, |
| 63 | + items: [ |
| 64 | + { |
| 65 | + type: "localeDropdown", |
| 66 | + position: "right", |
| 67 | + }, |
| 68 | + ], |
| 69 | + }, |
| 70 | + |
| 71 | + footer: { |
| 72 | + style: "dark", |
| 73 | + links: [], |
| 74 | + copyright: `Copyright © ${new Date().getFullYear()} Copilot Labs.`, |
| 75 | + }, |
| 76 | + |
| 77 | + prism: { |
| 78 | + theme: prismThemes.github, |
| 79 | + darkTheme: prismThemes.dracula, |
| 80 | + }, |
| 81 | + }), |
| 82 | + |
| 83 | + plugins: [ |
| 84 | + [ |
| 85 | + "@docusaurus/plugin-ideal-image", |
| 86 | + { |
| 87 | + quality: 96, |
| 88 | + max: 1000, // max resized image's size. |
| 89 | + min: 420, // min resized image's size. |
| 90 | + steps: 4, // #images b/w min and max (inclusive) |
| 91 | + disableInDev: false, |
| 92 | + }, |
| 93 | + ], |
| 94 | + ], |
| 95 | +}; |
| 96 | + |
| 97 | +module.exports = config; |
0 commit comments