Skip to content

Commit f3a4cd1

Browse files
committed
upgrade to docusaurus 3.1
1 parent d23cee2 commit f3a4cd1

File tree

10 files changed

+18634
-6379
lines changed

10 files changed

+18634
-6379
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ jobs:
1313
- uses: actions/checkout@v3
1414
- uses: actions/setup-node@v3
1515
with:
16-
node-version: 17.x
16+
node-version: 18
1717
cache: npm
18+
cache-dependency-path: ./package-lock.json
1819

1920
- name: Install dependencies
2021
run: npm ci
@@ -42,8 +43,9 @@ jobs:
4243
- uses: actions/checkout@v3
4344
- uses: actions/setup-node@v3
4445
with:
45-
node-version: 17.x
46+
node-version: 18
4647
cache: npm
48+
cache-dependency-path: ./package-lock.json
4749

4850
- name: Install dependencies
4951
run: npm ci

docusaurus.config.production.js

Lines changed: 0 additions & 110 deletions
This file was deleted.

docusaurus.config.production.ts

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
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: 'Plastic Scanner documentation',
7+
tagline: 'Making it simple to work on the plastic scanner',
8+
url: 'https://docs.plasticscanner.com',
9+
baseUrl: '/',
10+
onBrokenLinks: 'throw',
11+
onBrokenMarkdownLinks: 'warn',
12+
trailingSlash: false,
13+
favicon: '/img/favicon.ico',
14+
organizationName: 'Plastic-Scanner', // Usually your GitHub org/user name.
15+
projectName: 'documentation-production', // Usually your repo name.
16+
17+
// Even if you don't use internationalization, you can use this field to set
18+
// useful metadata like html lang. For example, if your site is Chinese, you
19+
// may want to replace "en" with "zh-Hans".
20+
i18n: {
21+
defaultLocale: 'en',
22+
locales: ['en'],
23+
},
24+
25+
presets: [
26+
[
27+
'classic',
28+
{
29+
docs: {
30+
routeBasePath: '/', // Set this value to '/'.
31+
sidebarPath: './sidebars.ts',
32+
// Please change this to your repo.
33+
// Remove this to remove the "edit this page" links.
34+
editUrl:
35+
'https://github.com/Plastic-Scanner/documentation/tree/main',
36+
},
37+
blog: false,
38+
theme: {
39+
customCss: './src/css/custom.css',
40+
},
41+
} satisfies Preset.Options,
42+
],
43+
],
44+
45+
themeConfig: {
46+
// Replace with your project's social card
47+
image: 'img/Schistoscope-social-card.jpg',
48+
navbar: {
49+
title: 'Plastic Scanner',
50+
logo: {
51+
alt: 'Plastic Scanner Logo',
52+
src: 'img/logo.svg',
53+
},
54+
items: [
55+
{
56+
href: 'https://github.com/Plastic-Scanner',
57+
label: 'GitHub',
58+
position: 'right',
59+
},
60+
// {
61+
// type: 'doc',
62+
// docId: 'introduction',
63+
// position: 'left',
64+
// label: 'For Developers',
65+
// },
66+
// {to: '/blog', label: 'For users', position: 'left'},
67+
// {to: '/ir', label: 'About IR', position: 'left'},
68+
],
69+
},
70+
footer: {
71+
style: 'dark',
72+
links: [
73+
{
74+
title: 'Docs',
75+
items: [
76+
{
77+
label: 'Documentation',
78+
to: '/',
79+
},
80+
],
81+
},
82+
{
83+
title: 'Community',
84+
items: [
85+
{
86+
label: 'Plastic Scanner Website',
87+
href: 'https://plasticscanner.com',
88+
},
89+
],
90+
},
91+
{
92+
title: 'More',
93+
items: [
94+
{
95+
label: 'GitHub',
96+
href: 'https://github.com/Plastic-Scanner',
97+
},
98+
],
99+
},
100+
],
101+
// copyright: `Copyright © ${new Date().getFullYear()} Plastic Scanner Project. Built with ♥ and with Docusaurus.`,
102+
},
103+
prism: {
104+
theme: prismThemes.github,
105+
darkTheme: prismThemes.dracula,
106+
},
107+
} satisfies Preset.ThemeConfig,
108+
};
109+
110+
export default config;

0 commit comments

Comments
 (0)