|
| 1 | +// @ts-check |
| 2 | +// Note: type annotations allow type checking and IDEs autocompletion |
| 3 | + |
| 4 | +const lightCodeTheme = require("prism-react-renderer/themes/github"); |
| 5 | +const darkCodeTheme = require("prism-react-renderer/themes/dracula"); |
| 6 | + |
| 7 | +const editUrl = { |
| 8 | + editUrl: "https://github.com/quansight-labs/cf-infra-docs/tree/main/", |
| 9 | +}; |
| 10 | + |
| 11 | +/** @type {import('@docusaurus/types').Config} */ |
| 12 | +const config = { |
| 13 | + title: "🚧 cf-infra-docs 🚧", |
| 14 | + tagline: "Draft documentation for conda-forge infrastructure", |
| 15 | + url: "https://cf-infra-docs.netlify.app/", |
| 16 | + baseUrl: "/", |
| 17 | + onBrokenLinks: "throw", |
| 18 | + onBrokenMarkdownLinks: "throw", |
| 19 | + favicon: "img/favicon.ico", |
| 20 | + trailingSlash: true, |
| 21 | + |
| 22 | + // GitHub pages deployment config. |
| 23 | + // If you aren't using GitHub pages, you don't need these. |
| 24 | + organizationName: "Quansight-Labs", // Usually your GitHub org/user name. |
| 25 | + projectName: "cf-infra-docs", // Usually your repo name. |
| 26 | + |
| 27 | + // Even if you don't use internalization, you can use this field to set useful |
| 28 | + // metadata like html lang. For example, if your site is Chinese, you may want |
| 29 | + // to replace "en" with "zh-Hans". |
| 30 | + i18n: { |
| 31 | + defaultLocale: "en", |
| 32 | + locales: ["en"], |
| 33 | + }, |
| 34 | + |
| 35 | + stylesheets: [ |
| 36 | + //Add Font Awesome stylesheets |
| 37 | + "/fonts/font-awesome/fontawesome.css", |
| 38 | + "/fonts/font-awesome/solid.css", |
| 39 | + "/fonts/font-awesome/regular.css", |
| 40 | + "/fonts/font-awesome/brands.css", |
| 41 | + ], |
| 42 | + |
| 43 | + // Mermaid configuration |
| 44 | + markdown: { |
| 45 | + mermaid: true, |
| 46 | + }, |
| 47 | + themes: ["@docusaurus/theme-mermaid"], |
| 48 | + |
| 49 | + presets: [ |
| 50 | + [ |
| 51 | + "classic", |
| 52 | + /** @type {import('@docusaurus/preset-classic').Options} */ |
| 53 | + ({ |
| 54 | + docs: { |
| 55 | + breadcrumbs: true, |
| 56 | + ...editUrl, |
| 57 | + }, |
| 58 | + blog: { |
| 59 | + showReadingTime: true, |
| 60 | + }, |
| 61 | + theme: { |
| 62 | + customCss: require.resolve("./src/css/custom.css"), |
| 63 | + }, |
| 64 | + }), |
| 65 | + ], |
| 66 | + ], |
| 67 | + plugins: [ |
| 68 | + [ |
| 69 | + "content-docs", |
| 70 | + /** @type {import('@docusaurus/plugin-content-docs').Options} */ |
| 71 | + ({ |
| 72 | + id: "community", |
| 73 | + path: "community", |
| 74 | + routeBasePath: "/community", |
| 75 | + breadcrumbs: false, |
| 76 | + }), |
| 77 | + ], |
| 78 | + [ |
| 79 | + "content-blog", |
| 80 | + /** @type {import('@docusaurus/plugin-content-blog').Options} */ |
| 81 | + ({ |
| 82 | + id: "news", |
| 83 | + path: "news", |
| 84 | + routeBasePath: "/news", |
| 85 | + showReadingTime: false, |
| 86 | + blogSidebarTitle: "Latest news", |
| 87 | + blogSidebarCount: 20, |
| 88 | + }), |
| 89 | + ], |
| 90 | + [ |
| 91 | + "@docusaurus/plugin-client-redirects", |
| 92 | + { |
| 93 | + redirects: [ |
| 94 | + { |
| 95 | + from: "/blog/posts/2019-12-06-cfep09/", |
| 96 | + to: "/blog/2019/12/06/cfep09/", |
| 97 | + }, |
| 98 | + { |
| 99 | + from: "/blog/posts/2020-02-04-GSoC/", |
| 100 | + to: "/blog/2020/02/04/gsoc/", |
| 101 | + }, |
| 102 | + { |
| 103 | + from: "/blog/posts/2020-03-05-grayskull/", |
| 104 | + to: "/blog/2020/03/05/grayskull/", |
| 105 | + }, |
| 106 | + { |
| 107 | + from: "/blog/posts/2020-03-10-pypy/", |
| 108 | + to: "/blog/2020/03/10/pypy/", |
| 109 | + }, |
| 110 | + { |
| 111 | + from: "/blog/posts/2020-07-02-op-risk/", |
| 112 | + to: "/blog/2020/07/02/op-risk/", |
| 113 | + }, |
| 114 | + { |
| 115 | + from: "/blog/posts/2020-07-06-scipy-bof/", |
| 116 | + to: "/blog/2020/07/06/scipy-bof/", |
| 117 | + }, |
| 118 | + { |
| 119 | + from: "/blog/posts/2020-07-11-R-4/", |
| 120 | + to: "/blog/2020/07/11/r-4/", |
| 121 | + }, |
| 122 | + { |
| 123 | + from: "/blog/posts/2020-10-02-versions/", |
| 124 | + to: "/blog/2020/10/02/versions/", |
| 125 | + }, |
| 126 | + { |
| 127 | + from: "/blog/posts/2020-10-29-macos-arm64/", |
| 128 | + to: "/blog/2020/10/29/macos-arm64/", |
| 129 | + }, |
| 130 | + { |
| 131 | + from: "/blog/posts/2020-11-20-anaconda-tos/", |
| 132 | + to: "/blog/2020/11/20/anaconda-tos/", |
| 133 | + }, |
| 134 | + { |
| 135 | + from: "/blog/posts/2020-12-26-year-in-review/", |
| 136 | + to: "/blog/2020/12/26/year-in-review/", |
| 137 | + }, |
| 138 | + { |
| 139 | + from: "/blog/posts/2021-02-02-outreachy/", |
| 140 | + to: "/blog/2021/02/02/outreachy/", |
| 141 | + }, |
| 142 | + { |
| 143 | + from: "/blog/posts/2021-06-16-graykull-step-by-step/", |
| 144 | + to: "/blog/2021/06/16/graykull-step-by-step/", |
| 145 | + }, |
| 146 | + { |
| 147 | + from: "/blog/posts/2021-09-24-travis-security/", |
| 148 | + to: "/blog/2021/09/24/travis-security/", |
| 149 | + }, |
| 150 | + { |
| 151 | + from: "/blog/posts/2021-11-03-tensorflow-gpu/", |
| 152 | + to: "/blog/2021/11/03/tensorflow-gpu/", |
| 153 | + }, |
| 154 | + { |
| 155 | + from: [ |
| 156 | + "/blog/posts/2022-08-19-outreachy-wrap-up-blog-2022/", |
| 157 | + "/blog/2022/08/19/outreachy-wrap-up-blog-2022/", |
| 158 | + ], |
| 159 | + to: "/blog/2022/08/26/outreachy-wrap-up-blog-2022/", |
| 160 | + }, |
| 161 | + { |
| 162 | + from: "/blog/posts/2023-03-12-circle-ci-security-breach/", |
| 163 | + to: "/blog/2023/03/12/circle-ci-security-breach/", |
| 164 | + }, |
| 165 | + { |
| 166 | + from: "/blog/posts/2023-07-13-installer-security-fixes/", |
| 167 | + to: "/blog/2023/07/13/installer-security-fixes/", |
| 168 | + }, |
| 169 | + ], |
| 170 | + }, |
| 171 | + ], |
| 172 | + ], |
| 173 | + |
| 174 | + themeConfig: |
| 175 | + /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ |
| 176 | + ({ |
| 177 | + navbar: { |
| 178 | + logo: { |
| 179 | + alt: "conda-forge anvil logo without text", |
| 180 | + src: "img/logo.png", |
| 181 | + }, |
| 182 | + items: [ |
| 183 | + { |
| 184 | + href: "https://conda-forge.org/status", |
| 185 | + label: "Status", |
| 186 | + position: "left", |
| 187 | + }, |
| 188 | + { |
| 189 | + href: "https://conda-forge.org/feedstock-outputs", |
| 190 | + label: "Packages", |
| 191 | + position: "left", |
| 192 | + }, |
| 193 | + { |
| 194 | + to: "/news", |
| 195 | + label: "News", |
| 196 | + position: "left", |
| 197 | + }, |
| 198 | + { |
| 199 | + type: "doc", |
| 200 | + docId: "index", |
| 201 | + position: "left", |
| 202 | + label: "Docs", |
| 203 | + }, |
| 204 | + { |
| 205 | + to: "/blog", |
| 206 | + label: "Blog", |
| 207 | + position: "left", |
| 208 | + }, |
| 209 | + { |
| 210 | + type: "doc", |
| 211 | + docsPluginId: "community", |
| 212 | + docId: "index", |
| 213 | + position: "left", |
| 214 | + label: "Community", |
| 215 | + }, |
| 216 | + { |
| 217 | + href: "https://opencollective.com/conda-forge", |
| 218 | + label: "Donate", |
| 219 | + position: "right", |
| 220 | + }, |
| 221 | + { |
| 222 | + to: "https://github.com/conda-forge", |
| 223 | + title: "GitHub", |
| 224 | + position: "right", |
| 225 | + target: "_blank", |
| 226 | + className: "fab fa-lg fa-github", |
| 227 | + }, |
| 228 | + { |
| 229 | + to: "https://twitter.com/condaforge", |
| 230 | + title: "Twitter", |
| 231 | + position: "right", |
| 232 | + target: "_blank", |
| 233 | + className: "fab fa-lg fa-twitter", |
| 234 | + }, |
| 235 | + ], |
| 236 | + }, |
| 237 | + footer: { |
| 238 | + style: "dark", |
| 239 | + links: [ |
| 240 | + { |
| 241 | + title: "Docs", |
| 242 | + items: [ |
| 243 | + { |
| 244 | + label: "Getting started", |
| 245 | + to: "/docs/getting-started", |
| 246 | + }, |
| 247 | + { |
| 248 | + label: "How-to guides", |
| 249 | + to: "/docs/howto", |
| 250 | + }, |
| 251 | + { |
| 252 | + label: "Reference", |
| 253 | + to: "/docs/reference", |
| 254 | + }, |
| 255 | + ], |
| 256 | + }, |
| 257 | + { |
| 258 | + title: "Community", |
| 259 | + items: [ |
| 260 | + { |
| 261 | + label: "About conda-forge", |
| 262 | + to: "/community", |
| 263 | + }, |
| 264 | + { |
| 265 | + label: "Code of conduct", |
| 266 | + to: "/community/code-of-conduct", |
| 267 | + }, |
| 268 | + { |
| 269 | + label: "Meeting minutes", |
| 270 | + to: "/community/meeting-minutes", |
| 271 | + }, |
| 272 | + { |
| 273 | + label: "Get in touch", |
| 274 | + to: "/community/get-in-touch", |
| 275 | + }, |
| 276 | + ], |
| 277 | + }, |
| 278 | + { |
| 279 | + title: "Stay up-to-date", |
| 280 | + items: [ |
| 281 | + { |
| 282 | + label: "News", |
| 283 | + to: "/news", |
| 284 | + }, |
| 285 | + { |
| 286 | + label: "Blog", |
| 287 | + to: "/blog", |
| 288 | + }, |
| 289 | + { |
| 290 | + label: "Status", |
| 291 | + href: "https://conda-forge.org/status", |
| 292 | + }, |
| 293 | + { |
| 294 | + label: "Twitter", |
| 295 | + href: "https://twitter.com/condaforge", |
| 296 | + }, |
| 297 | + ], |
| 298 | + }, |
| 299 | + { |
| 300 | + title: "Resources", |
| 301 | + items: [ |
| 302 | + { |
| 303 | + label: "Dashboard", |
| 304 | + to: "/dashboard", |
| 305 | + }, |
| 306 | + { |
| 307 | + label: "Style guide", |
| 308 | + to: "/style-guide", |
| 309 | + }, |
| 310 | + { |
| 311 | + label: "GitHub", |
| 312 | + href: "https://github.com/conda-forge", |
| 313 | + }, |
| 314 | + { |
| 315 | + label: "Element", |
| 316 | + href: "https://app.element.io/#/room/#conda-forge:matrix.org", |
| 317 | + }, |
| 318 | + { |
| 319 | + label: "Discourse", |
| 320 | + href: "https://conda.discourse.group/c/pkg-building/conda-forge/25", |
| 321 | + }, |
| 322 | + { |
| 323 | + label: "Stack Overflow", |
| 324 | + href: "https://stackoverflow.com/questions/tagged/conda-forge", |
| 325 | + }, |
| 326 | + ], |
| 327 | + }, |
| 328 | + ], |
| 329 | + copyright: `Copyright © ${new Date().getFullYear()} conda-forge · Built with Docusaurus · Powered by <a href='https://www.netlify.com/' target='_blank' class='footer__link-item'>Netlify</a>`, |
| 330 | + }, |
| 331 | + prism: { |
| 332 | + theme: lightCodeTheme, |
| 333 | + darkTheme: darkCodeTheme, |
| 334 | + }, |
| 335 | + docs: { |
| 336 | + sidebar: { |
| 337 | + autoCollapseCategories: true, |
| 338 | + hideable: true, |
| 339 | + }, |
| 340 | + }, |
| 341 | + }), |
| 342 | +}; |
| 343 | + |
| 344 | +module.exports = config; |
0 commit comments