4
4
// There are various equivalent ways to declare your Docusaurus config.
5
5
// See: https://docusaurus.io/docs/api/docusaurus-config
6
6
7
- import { themes as prismThemes } from 'prism-react-renderer' ;
7
+ import { themes as prismThemes } from 'prism-react-renderer' ;
8
8
9
- const linkHtml = ' <span> <svg width="13" height="12" viewBox="0 0 13 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 6H12M12 6L7.2 1M12 6L7.2 11" stroke="#E96847"></path></svg> </span> ' ;
9
+ // This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
10
10
11
11
/** @type {import('@docusaurus/types').Config } */
12
12
const config = {
@@ -20,6 +20,7 @@ const config = {
20
20
// For GitHub pages deployment, it is often '/<projectName>/'
21
21
baseUrl : '/' ,
22
22
23
+
23
24
// GitHub pages deployment config.
24
25
// If you aren't using GitHub pages, you don't need these.
25
26
organizationName : 'digiquip' , // Usually your GitHub org/user name.
@@ -46,8 +47,8 @@ const config = {
46
47
}
47
48
} ,
48
49
49
- presets : [
50
50
51
+ presets : [
51
52
[
52
53
'classic' ,
53
54
/** @type {import('@docusaurus/preset-classic').Options } */
@@ -57,55 +58,53 @@ const config = {
57
58
} ,
58
59
blog : {
59
60
showReadingTime : true ,
60
- postsPerPage : 6 ,
61
+ // Useful options to enforce blogging best practices
62
+ onInlineTags : 'warn' ,
63
+ onInlineAuthors : 'warn' ,
64
+ onUntruncatedBlogPosts : 'warn' ,
61
65
} ,
62
66
theme : {
63
67
customCss : './src/css/custom.css' ,
64
68
} ,
65
69
} ) ,
66
70
] ,
67
71
] ,
68
- scripts : [ { src : 'https://plausible.io/js/script.js' , defer : true , 'data-domain' : 'digiquip.no' } ] ,
72
+ scripts : [ { src : 'https://plausible.io/js/script.js' , defer : true , 'data-domain' : 'digiquip.no' } ] ,
73
+
69
74
themeConfig :
70
75
/** @type {import('@docusaurus/preset-classic').ThemeConfig } */
71
76
( {
77
+ // Replace with your project's social card
72
78
image : 'img/digiquip-social-card.jpg' ,
73
79
colorMode : {
74
80
defaultMode : 'light' ,
75
- disableSwitch : true ,
76
- respectPrefersColorScheme : true ,
81
+ disableSwitch : false ,
82
+ respectPrefersColorScheme : false ,
77
83
} ,
78
84
navbar : {
79
85
title : '' ,
80
-
81
86
logo : {
82
87
alt : 'DigiQuip Logo' ,
83
88
src : 'img/logo.svg' ,
84
89
} ,
85
- items : [
90
+ items : [
86
91
{
87
92
type : "dropdown" ,
88
93
label : 'Products' ,
89
94
position : 'left' ,
90
95
items : [
91
96
{
92
- // html: 'Kvipp' + linkHtml,
93
97
label : 'Kvipp' ,
94
- // type: 'docSidebar',
95
98
sidebarid : 'tutorialSidebar' ,
96
- to :'/kvipp' ,
97
- } ,
99
+ to : '/kvipp' ,
100
+ } ,
98
101
{
99
- // html: 'bedrift' + linkHtml,
100
102
label : 'Kvipp Bedrift' ,
101
- // type: 'docSidebar',
102
103
sidebarid : 'tutorialSidebar' ,
103
- to :'/bedrift' ,
104
- } ,
104
+ to : '/bedrift' ,
105
+ } ,
105
106
{
106
- // html: 'trygg-maskin' + linkHtml,
107
107
label : 'Trygg Maskin' ,
108
- // type: 'docSidebar',
109
108
sidebarid : 'tutorialSidebar' ,
110
109
to : '/trygg-maskin' ,
111
110
} ,
@@ -124,11 +123,12 @@ const config = {
124
123
sidebarid : 'tutorialSidebar' ,
125
124
} ,
126
125
{
127
- to : '/docs/intro ' ,
128
- label : 'Dokumentasjon ' ,
126
+ type : 'docSidebar ' ,
127
+ sidebarId : 'tutorialSidebar ' ,
129
128
position : 'left' ,
130
- sidebarid : 'tutorialSidebar ' ,
129
+ label : 'Dokumentasjon ' ,
131
130
} ,
131
+
132
132
{
133
133
to : 'https://pim.digiquip.com/authenticate/idp/init?destination=none&interactionMode=signIn&existingSessionId=' ,
134
134
label : 'Sign in' ,
@@ -146,13 +146,6 @@ const config = {
146
146
position : 'right' ,
147
147
sidebarid : 'tutorialSidebar' ,
148
148
} ,
149
- //{
150
- // to: '/blog',
151
- // html: '<span class=btn_wrapper><span class=btn_text>Contact us</span> <span class=btn_text>Contact us</span> </span> ',
152
- // position: 'right',
153
- // className:'white-btn btn',
154
- // sidebarid: 'tutorialSidebar',
155
- //},
156
149
] ,
157
150
} ,
158
151
footer : {
0 commit comments