RepliCAD

Форк
0
/
docusaurus.config.js 
120 строк · 3.0 Кб
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
/** @type {import('@docusaurus/types').Config} */
8
const config = {
9
  title: "replicad",
10
  tagline: "The library to build browser based 3D models with code.",
11
  url: "https://replicad.xyz",
12
  baseUrl: "/",
13
  onBrokenLinks: "throw",
14
  onBrokenMarkdownLinks: "warn",
15
  favicon: "img/favicon.ico",
16
  organizationName: "sgenoud", // Usually your GitHub org/user name.
17
  projectName: "replicad", // Usually your repo name.
18

19
  presets: [
20
    [
21
      "@docusaurus/preset-classic",
22
      /** @type {import('@docusaurus/preset-classic').Options} */
23
      ({
24
        docs: {
25
          sidebarPath: require.resolve("./sidebars.js"),
26
          // Please change this to your repo.
27
          editUrl:
28
            "https://github.com/sgenoud/replicad/tree/main/packages/replicad-docs",
29
        },
30
        theme: {
31
          customCss: require.resolve("./src/css/custom.css"),
32
        },
33
      }),
34
    ],
35
  ],
36

37
  themeConfig:
38
    /** @type {import('@docusaurus/preset-classic').ThemeConfig} */
39
    ({
40
      navbar: {
41
        title: "replicad",
42
        logo: {
43
          alt: "Replicad Logo",
44
          src: "img/replicad.png",
45
        },
46
        items: [
47
          {
48
            type: "doc",
49
            docId: "intro",
50
            position: "left",
51
            label: "Documentation",
52
          },
53
          { to: "/docs/api/", label: "API", position: "left" },
54
          {
55
            href: "https://studio.replicad.xyz/workbench",
56
            label: "Workbench",
57
          },
58
          {
59
            href: "https://github.com/sgenoud/replicad",
60
            label: "GitHub",
61
            position: "right",
62
          },
63
        ],
64
      },
65
      algolia: {
66
        appId: "O4BGYDV04E",
67
        apiKey: "24a6b1fd7a8eaec7b47cb861eddbd84f",
68
        indexName: "replicad",
69
        contextualSearch: true,
70
      },
71

72
      footer: {
73
        style: "dark",
74
        links: [
75
          {
76
            title: "Docs",
77
            items: [
78
              {
79
                label: "Documentation",
80
                to: "/docs/intro",
81
              },
82
              {
83
                label: "API",
84
                to: "/docs/api",
85
              },
86
            ],
87
          },
88
          {
89
            title: "More",
90
            items: [
91
              {
92
                label: "GitHub",
93
                href: "https://github.com/sgenoud/replicad",
94
              },
95
            ],
96
          },
97
        ],
98
        copyright: `Copyright © ${new Date().getFullYear()} QuaroTech.`,
99
      },
100
      prism: {
101
        theme: lightCodeTheme,
102
        darkTheme: darkCodeTheme,
103
      },
104
    }),
105
  plugins: [
106
    [
107
      "docusaurus-plugin-typedoc",
108

109
      // Plugin / TypeDoc options
110
      {
111
        entryPoints: ["../replicad/src/index.ts"],
112
        tsconfig: "../replicad/tsconfig.json",
113
        watch: process.env.TYPEDOC_WATCH,
114
        sidebar: { position: 100 },
115
      },
116
    ],
117
  ],
118
};
119

120
module.exports = config;
121

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.