RepliCAD
120 строк · 3.0 Кб
1// @ts-check
2// Note: type annotations allow type checking and IDEs autocompletion
3
4const lightCodeTheme = require("prism-react-renderer/themes/github");5const darkCodeTheme = require("prism-react-renderer/themes/dracula");6
7/** @type {import('@docusaurus/types').Config} */
8const config = {9title: "replicad",10tagline: "The library to build browser based 3D models with code.",11url: "https://replicad.xyz",12baseUrl: "/",13onBrokenLinks: "throw",14onBrokenMarkdownLinks: "warn",15favicon: "img/favicon.ico",16organizationName: "sgenoud", // Usually your GitHub org/user name.17projectName: "replicad", // Usually your repo name.18
19presets: [20[21"@docusaurus/preset-classic",22/** @type {import('@docusaurus/preset-classic').Options} */23({24docs: {25sidebarPath: require.resolve("./sidebars.js"),26// Please change this to your repo.27editUrl:28"https://github.com/sgenoud/replicad/tree/main/packages/replicad-docs",29},30theme: {31customCss: require.resolve("./src/css/custom.css"),32},33}),34],35],36
37themeConfig:38/** @type {import('@docusaurus/preset-classic').ThemeConfig} */39({40navbar: {41title: "replicad",42logo: {43alt: "Replicad Logo",44src: "img/replicad.png",45},46items: [47{48type: "doc",49docId: "intro",50position: "left",51label: "Documentation",52},53{ to: "/docs/api/", label: "API", position: "left" },54{55href: "https://studio.replicad.xyz/workbench",56label: "Workbench",57},58{59href: "https://github.com/sgenoud/replicad",60label: "GitHub",61position: "right",62},63],64},65algolia: {66appId: "O4BGYDV04E",67apiKey: "24a6b1fd7a8eaec7b47cb861eddbd84f",68indexName: "replicad",69contextualSearch: true,70},71
72footer: {73style: "dark",74links: [75{76title: "Docs",77items: [78{79label: "Documentation",80to: "/docs/intro",81},82{83label: "API",84to: "/docs/api",85},86],87},88{89title: "More",90items: [91{92label: "GitHub",93href: "https://github.com/sgenoud/replicad",94},95],96},97],98copyright: `Copyright © ${new Date().getFullYear()} QuaroTech.`,99},100prism: {101theme: lightCodeTheme,102darkTheme: darkCodeTheme,103},104}),105plugins: [106[107"docusaurus-plugin-typedoc",108
109// Plugin / TypeDoc options110{111entryPoints: ["../replicad/src/index.ts"],112tsconfig: "../replicad/tsconfig.json",113watch: process.env.TYPEDOC_WATCH,114sidebar: { position: 100 },115},116],117],118};119
120module.exports = config;121