|
1 | 1 | module.exports = {
|
2 |
| - title: 'Ionic Documentation', |
3 |
| - tagline: 'Continuous Mobile DevOps', |
4 |
| - url: 'https://ionic.io', |
5 |
| - baseUrl: '/docs/', |
| 2 | + title: 'My Site', |
| 3 | + tagline: 'The tagline of my site', |
| 4 | + url: 'https://your-docusaurus-test-site.com', |
| 5 | + baseUrl: '/', |
6 | 6 | onBrokenLinks: 'throw',
|
7 | 7 | onBrokenMarkdownLinks: 'warn',
|
8 |
| - favicon: 'img/favicon.png', |
9 |
| - organizationName: 'ionic-team', |
10 |
| - projectName: 'commercial-docs', |
| 8 | + favicon: 'img/favicon.ico', |
| 9 | + organizationName: 'facebook', // Usually your GitHub org/user name. |
| 10 | + projectName: 'docusaurus', // Usually your repo name. |
11 | 11 | themeConfig: {
|
12 | 12 | navbar: {
|
| 13 | + title: 'My Site', |
13 | 14 | logo: {
|
14 |
| - alt: 'Ionic Logo', |
15 |
| - src: 'img/framework-icon.svg', |
| 15 | + alt: 'My Site Logo', |
| 16 | + src: 'img/logo.svg', |
16 | 17 | },
|
17 | 18 | items: [
|
18 |
| - { |
19 |
| - to: '/', |
20 |
| - activeBaseRegex: '^/docs/(?!api|components)', |
21 |
| - label: 'Guide', |
22 |
| - position: 'left', |
23 |
| - }, |
24 | 19 | {
|
25 |
| - to: '/components', |
26 |
| - activeBaseRegex: '^/docs/(api|components)', |
27 |
| - label: 'Components', |
| 20 | + to: 'docs/', |
| 21 | + activeBasePath: 'docs', |
| 22 | + label: 'Docs', |
28 | 23 | position: 'left',
|
29 | 24 | },
|
| 25 | + {to: 'blog', label: 'Blog', position: 'left'}, |
30 | 26 | {
|
31 |
| - label: 'Platform', |
| 27 | + href: 'https://github.com/facebook/docusaurus', |
| 28 | + label: 'GitHub', |
32 | 29 | position: 'right',
|
| 30 | + }, |
| 31 | + ], |
| 32 | + }, |
| 33 | + footer: { |
| 34 | + style: 'dark', |
| 35 | + links: [ |
| 36 | + { |
| 37 | + title: 'Docs', |
33 | 38 | items: [
|
34 | 39 | {
|
35 |
| - href: 'https://capacitorjs.com/docs', |
36 |
| - label: 'Capacitor', |
37 |
| - className: 'link--outbound', |
| 40 | + label: 'Style Guide', |
| 41 | + to: 'docs/', |
38 | 42 | },
|
39 | 43 | {
|
40 |
| - href: 'https://ionicframework.com/docs', |
41 |
| - label: 'Framework', |
42 |
| - className: 'link--outbound', |
| 44 | + label: 'Second Doc', |
| 45 | + to: 'docs/doc2/', |
43 | 46 | },
|
| 47 | + ], |
| 48 | + }, |
| 49 | + { |
| 50 | + title: 'Community', |
| 51 | + items: [ |
44 | 52 | {
|
45 |
| - to: '/appflow', |
46 |
| - label: 'Appflow', |
| 53 | + label: 'Stack Overflow', |
| 54 | + href: 'https://stackoverflow.com/questions/tagged/docusaurus', |
47 | 55 | },
|
48 | 56 | {
|
49 |
| - to: '/identity-vault', |
50 |
| - label: 'Identity Vault', |
| 57 | + label: 'Discord', |
| 58 | + href: 'https://discordapp.com/invite/docusaurus', |
51 | 59 | },
|
52 | 60 | {
|
53 |
| - to: '/auth-connect', |
54 |
| - label: 'Auth Connect', |
| 61 | + label: 'Twitter', |
| 62 | + href: 'https://twitter.com/docusaurus', |
55 | 63 | },
|
| 64 | + ], |
| 65 | + }, |
| 66 | + { |
| 67 | + title: 'More', |
| 68 | + items: [ |
56 | 69 | {
|
57 |
| - to: '/offline-storage', |
58 |
| - label: 'Offline Storage', |
| 70 | + label: 'Blog', |
| 71 | + to: 'blog', |
59 | 72 | },
|
60 | 73 | {
|
61 |
| - to: '/premier-plugins', |
62 |
| - label: 'Premier Plugins', |
| 74 | + label: 'GitHub', |
| 75 | + href: 'https://github.com/facebook/docusaurus', |
63 | 76 | },
|
64 | 77 | ],
|
65 | 78 | },
|
66 |
| - // { |
67 |
| - // href: 'https://ionicframework.com/docs/cli', |
68 |
| - // label: 'CLI', |
69 |
| - // className: 'navbar-cli', |
70 |
| - // position: 'right', |
71 |
| - // }, |
72 | 79 | ],
|
73 |
| - }, |
74 |
| - gtag: { |
75 |
| - trackingID: 'UA-44023830-8', |
| 80 | + copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`, |
76 | 81 | },
|
77 | 82 | },
|
78 |
| - plugins: [ |
79 |
| - [ |
80 |
| - '@docusaurus/plugin-client-redirects', |
81 |
| - { |
82 |
| - redirects: [ |
83 |
| - { from: '/enterprise/auth-connect', to: '/auth-connect' }, |
84 |
| - { |
85 |
| - from: '/enterprise/auth-connect/2.2.X/auth-connect', |
86 |
| - to: '/auth-connect/2.2.X/auth-connect', |
87 |
| - }, |
88 |
| - { |
89 |
| - from: '/enterprise/auth-connect/3.0.X/auth-connect', |
90 |
| - to: '/auth-connect/3.0.X/auth-connect', |
91 |
| - }, |
92 |
| - { from: '/enterprise/auth-connect/auth0', to: '/auth-connect/auth0' }, |
93 |
| - { |
94 |
| - from: '/enterprise/auth-connect/aws-cognito', |
95 |
| - to: '/auth-connect/aws-cognito', |
96 |
| - }, |
97 |
| - { |
98 |
| - from: '/enterprise/auth-connect/azure-ad-b2c', |
99 |
| - to: '/auth-connect/azure-ad-b2c', |
100 |
| - }, |
101 |
| - { |
102 |
| - from: '/enterprise/auth-connect/identityserver4', |
103 |
| - to: '/auth-connect/identityserver4', |
104 |
| - }, |
105 |
| - { from: '/enterprise/auth-connect/okta', to: '/auth-connect/okta' }, |
106 |
| - { from: '/enterprise/identity-vault', to: '/identity-vault' }, |
107 |
| - { |
108 |
| - from: '/enterprise/identity-vault/2.0.X/identity-vault', |
109 |
| - to: '/identity-vault/2.0.X/identity-vault', |
110 |
| - }, |
111 |
| - { |
112 |
| - from: '/enterprise/identity-vault/3.0.X/identity-vault', |
113 |
| - to: '/identity-vault/3.0.X/identity-vault', |
114 |
| - }, |
115 |
| - { |
116 |
| - from: '/enterprise/identity-vault/3.1.X/identity-vault', |
117 |
| - to: '/identity-vault/3.1.X/identity-vault', |
118 |
| - }, |
119 |
| - { |
120 |
| - from: '/enterprise/identity-vault/3.2.X/identity-vault', |
121 |
| - to: '/identity-vault/3.2.X/identity-vault', |
122 |
| - }, |
123 |
| - { |
124 |
| - from: '/enterprise/identity-vault/3.3.X/identity-vault', |
125 |
| - to: '/identity-vault/3.3.X/identity-vault', |
126 |
| - }, |
127 |
| - { |
128 |
| - from: '/enterprise/identity-vault/3.4.X/identity-vault', |
129 |
| - to: '/identity-vault/3.4.X/identity-vault', |
130 |
| - }, |
131 |
| - { |
132 |
| - from: '/enterprise/identity-vault/3.5.X/identity-vault', |
133 |
| - to: '/identity-vault/3.5.X/identity-vault', |
134 |
| - }, |
135 |
| - { |
136 |
| - from: '/enterprise/identity-vault/3.6.X/identity-vault', |
137 |
| - to: '/identity-vault/3.6.X/identity-vault', |
138 |
| - }, |
139 |
| - { |
140 |
| - from: '/enterprise/identity-vault/4.0.X/identity-vault', |
141 |
| - to: '/identity-vault/4.0.X/identity-vault', |
142 |
| - }, |
143 |
| - { |
144 |
| - from: '/enterprise/identity-vault/4.1.X/identity-vault', |
145 |
| - to: '/identity-vault/4.1.X/identity-vault', |
146 |
| - }, |
147 |
| - { from: '/enterprise/offline-storage', to: '/offline-storage' }, |
148 |
| - { |
149 |
| - from: '/enterprise/offline-storage/1.0.X/offline-storage', |
150 |
| - to: '/offline-storage/1.0.X/offline-storage', |
151 |
| - }, |
152 |
| - ], |
153 |
| - }, |
154 |
| - ], |
155 |
| - ], |
156 | 83 | presets: [
|
157 | 84 | [
|
158 | 85 | '@docusaurus/preset-classic',
|
159 | 86 | {
|
160 | 87 | docs: {
|
161 |
| - routeBasePath: '/', |
162 | 88 | sidebarPath: require.resolve('./sidebars.js'),
|
| 89 | + // Please change this to your repo. |
| 90 | + editUrl: |
| 91 | + 'https://github.com/facebook/docusaurus/edit/master/website/', |
| 92 | + }, |
| 93 | + blog: { |
| 94 | + showReadingTime: true, |
| 95 | + // Please change this to your repo. |
| 96 | + editUrl: |
| 97 | + 'https://github.com/facebook/docusaurus/edit/master/website/blog/', |
163 | 98 | },
|
164 | 99 | theme: {
|
165 | 100 | customCss: require.resolve('./src/css/custom.css'),
|
|
0 commit comments