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