|
1 | 1 | /** @type {import('@docusaurus/types').DocusaurusConfig} */
|
2 | 2 |
|
3 |
| -const lernaConfig = require("../lerna.json"); |
| 3 | +const lernaConfig = require('../lerna.json'); |
4 | 4 |
|
5 | 5 | module.exports = {
|
6 |
| - title: "Ionic Portals", |
7 |
| - tagline: "Portals tagline", |
8 |
| - url: "https://ionic.io", |
| 6 | + title: 'Ionic Portals', |
| 7 | + tagline: 'Portals tagline', |
| 8 | + url: 'https://ionic.io', |
9 | 9 | trailingSlash: false,
|
10 |
| - baseUrl: "/docs/portals/", |
| 10 | + baseUrl: '/docs/portals/', |
11 | 11 | baseUrlIssueBanner: false,
|
12 |
| - onBrokenLinks: "throw", |
13 |
| - onBrokenMarkdownLinks: "warn", |
14 |
| - favicon: "img/logo.svg", |
15 |
| - organizationName: "ionic-team", |
16 |
| - projectName: "portals-docs", |
17 |
| - titleDelimiter: "-", |
| 12 | + onBrokenLinks: 'throw', |
| 13 | + onBrokenMarkdownLinks: 'warn', |
| 14 | + favicon: 'img/logo.svg', |
| 15 | + organizationName: 'ionic-team', |
| 16 | + projectName: 'portals-docs', |
| 17 | + titleDelimiter: '-', |
18 | 18 | themeConfig: {
|
| 19 | + logo: { |
| 20 | + alt: 'Portals Logo', |
| 21 | + src: 'img/logo-light.png', |
| 22 | + srcDark: 'img/logo-dark.png', |
| 23 | + href: '/docs/portals', |
| 24 | + height: 24, |
| 25 | + width: 84, |
| 26 | + }, |
19 | 27 | navbar: {
|
20 |
| - title: "Portals", |
21 |
| - logo: { |
22 |
| - alt: "Portals Logo", |
23 |
| - src: "img/logo.svg", |
| 28 | + items: [ |
| 29 | + { |
| 30 | + type: 'search', |
| 31 | + position: 'left', |
| 32 | + }, |
| 33 | + ], |
| 34 | + }, |
| 35 | + sidebar: { |
| 36 | + productDropdown: { |
| 37 | + title: 'Portals Docs', |
| 38 | + logo: { |
| 39 | + width: 20, |
| 40 | + height: 20, |
| 41 | + alt: 'Portals Logo', |
| 42 | + src: 'img/components/product-dropdown/logo.png', |
| 43 | + }, |
| 44 | + textLinks: [ |
| 45 | + { |
| 46 | + url: { |
| 47 | + href: 'https://forum.ionicframework.com/c/portals/31', |
| 48 | + target: '_blank', |
| 49 | + rel: 'noopener nofollow', |
| 50 | + }, |
| 51 | + label: 'Forum', |
| 52 | + }, |
| 53 | + ], |
| 54 | + iconLinks: [ |
| 55 | + { |
| 56 | + key: 'github', |
| 57 | + url: { |
| 58 | + href: 'https://github.com/ionic-team/ionic-portals', |
| 59 | + target: '_blank', |
| 60 | + rel: 'noopener nofollow', |
| 61 | + }, |
| 62 | + }, |
| 63 | + ], |
| 64 | + }, |
| 65 | + backButton: { |
| 66 | + url: { |
| 67 | + href: '/docs', |
| 68 | + }, |
24 | 69 | },
|
25 | 70 | },
|
26 | 71 | colorMode: {
|
27 | 72 | respectPrefersColorScheme: true,
|
28 | 73 | },
|
29 |
| - tagManager: { |
30 |
| - trackingID: "GTM-TKMGCBC", |
31 |
| - }, |
32 | 74 | prism: {
|
33 |
| - theme: { plain: {}, styles: [] }, |
34 |
| - additionalLanguages: [ |
35 |
| - "shell-session", |
36 |
| - "kotlin", |
37 |
| - "groovy", |
38 |
| - "java", |
39 |
| - "swift", |
40 |
| - "ruby", |
41 |
| - ], |
| 75 | + theme: require('prism-react-renderer/themes/github'), |
| 76 | + darkTheme: require('prism-react-renderer/themes/dracula'), |
| 77 | + additionalLanguages: ['shell-session', 'kotlin', 'groovy', 'java', 'swift', 'ruby'], |
42 | 78 | },
|
43 | 79 | zoom: {
|
44 |
| - selector: ".markdown em > img", |
| 80 | + selector: '.markdown em > img', |
45 | 81 | background: {
|
46 |
| - light: "var(--token-background-color)", |
47 |
| - dark: "var(--token-background-color)" |
| 82 | + light: 'var(--token-background-color)', |
| 83 | + dark: 'var(--token-background-color)', |
48 | 84 | },
|
49 | 85 | config: {
|
50 | 86 | margin: 75,
|
51 |
| - scrollOffset: 20 |
| 87 | + scrollOffset: 20, |
52 | 88 | },
|
53 | 89 | },
|
54 | 90 | },
|
55 |
| - plugins: [ |
56 |
| - "@ionic-internal/docusaurus-plugin-tag-manager", |
57 |
| - "docusaurus-plugin-sass", |
58 |
| - "docusaurus-plugin-image-zoom", |
59 |
| - ], |
60 |
| - themes: ["@ionic-internal/docusaurus-theme"], |
| 91 | + plugins: ['docusaurus-plugin-image-zoom'], |
61 | 92 | presets: [
|
62 | 93 | [
|
63 |
| - "@docusaurus/preset-classic", |
| 94 | + '@ionic-docs/preset-classic', |
64 | 95 | {
|
65 | 96 | docs: {
|
66 |
| - routeBasePath: "/", |
67 |
| - sidebarPath: require.resolve("./sidebars.js"), |
| 97 | + routeBasePath: '/', |
| 98 | + sidebarPath: require.resolve('./sidebars.js'), |
| 99 | + breadcrumbs: false, |
68 | 100 | },
|
69 |
| - blog: false, |
70 | 101 | pages: false,
|
71 | 102 | theme: {
|
72 |
| - customCss: [ |
73 |
| - "prismjs/themes/prism-tomorrow.css", |
74 |
| - require.resolve("./src/styles/custom.css"), |
75 |
| - ], |
| 103 | + customCss: [require.resolve('./src/styles/custom.css')], |
| 104 | + }, |
| 105 | + googleTagManager: { |
| 106 | + containerId: 'GTM-TKMGCBC', |
76 | 107 | },
|
77 | 108 | },
|
78 | 109 | ],
|
|
0 commit comments