Skip to content

Commit d1f2b76

Browse files
authored
Merge pull request #134 from kareem-g/main
fix mobile navigation issues, Table of Content Feature.
2 parents b8d06c9 + e347de5 commit d1f2b76

File tree

2 files changed

+1514
-1442
lines changed

2 files changed

+1514
-1442
lines changed

docusaurus.config.js

Lines changed: 22 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
// There are various equivalent ways to declare your Docusaurus config.
55
// See: https://docusaurus.io/docs/api/docusaurus-config
66

7-
import {themes as prismThemes} from 'prism-react-renderer';
7+
import { themes as prismThemes } from 'prism-react-renderer';
88

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...)
1010

1111
/** @type {import('@docusaurus/types').Config} */
1212
const config = {
@@ -20,6 +20,7 @@ const config = {
2020
// For GitHub pages deployment, it is often '/<projectName>/'
2121
baseUrl: '/',
2222

23+
2324
// GitHub pages deployment config.
2425
// If you aren't using GitHub pages, you don't need these.
2526
organizationName: 'digiquip', // Usually your GitHub org/user name.
@@ -46,8 +47,8 @@ const config = {
4647
}
4748
},
4849

49-
presets: [
5050

51+
presets: [
5152
[
5253
'classic',
5354
/** @type {import('@docusaurus/preset-classic').Options} */
@@ -57,55 +58,53 @@ const config = {
5758
},
5859
blog: {
5960
showReadingTime: true,
60-
postsPerPage: 6,
61+
// Useful options to enforce blogging best practices
62+
onInlineTags: 'warn',
63+
onInlineAuthors: 'warn',
64+
onUntruncatedBlogPosts: 'warn',
6165
},
6266
theme: {
6367
customCss: './src/css/custom.css',
6468
},
6569
}),
6670
],
6771
],
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+
6974
themeConfig:
7075
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
7176
({
77+
// Replace with your project's social card
7278
image: 'img/digiquip-social-card.jpg',
7379
colorMode: {
7480
defaultMode: 'light',
75-
disableSwitch: true,
76-
respectPrefersColorScheme: true,
81+
disableSwitch: false,
82+
respectPrefersColorScheme: false,
7783
},
7884
navbar: {
7985
title: '',
80-
8186
logo: {
8287
alt: 'DigiQuip Logo',
8388
src: 'img/logo.svg',
8489
},
85-
items: [
90+
items: [
8691
{
8792
type: "dropdown",
8893
label: 'Products',
8994
position: 'left',
9095
items: [
9196
{
92-
// html: 'Kvipp' + linkHtml,
9397
label: 'Kvipp',
94-
// type: 'docSidebar',
9598
sidebarid: 'tutorialSidebar',
96-
to:'/kvipp',
97-
},
99+
to: '/kvipp',
100+
},
98101
{
99-
// html: 'bedrift' + linkHtml,
100102
label: 'Kvipp Bedrift',
101-
// type: 'docSidebar',
102103
sidebarid: 'tutorialSidebar',
103-
to:'/bedrift',
104-
},
104+
to: '/bedrift',
105+
},
105106
{
106-
// html: 'trygg-maskin' + linkHtml,
107107
label: 'Trygg Maskin',
108-
// type: 'docSidebar',
109108
sidebarid: 'tutorialSidebar',
110109
to: '/trygg-maskin',
111110
},
@@ -124,11 +123,12 @@ const config = {
124123
sidebarid: 'tutorialSidebar',
125124
},
126125
{
127-
to: '/docs/intro',
128-
label: 'Dokumentasjon',
126+
type: 'docSidebar',
127+
sidebarId: 'tutorialSidebar',
129128
position: 'left',
130-
sidebarid: 'tutorialSidebar',
129+
label: 'Dokumentasjon',
131130
},
131+
132132
{
133133
to: 'https://pim.digiquip.com/authenticate/idp/init?destination=none&interactionMode=signIn&existingSessionId=',
134134
label: 'Sign in',
@@ -146,13 +146,6 @@ const config = {
146146
position: 'right',
147147
sidebarid: 'tutorialSidebar',
148148
},
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-
//},
156149
],
157150
},
158151
footer: {

0 commit comments

Comments
 (0)