1
- import { themes as prismThemes } from 'prism-react-renderer' ;
2
- import type { Config } from '@docusaurus/types' ;
1
+ import { themes as prismThemes } from 'prism-react-renderer' ;
2
+ import type { Config } from '@docusaurus/types' ;
3
3
import type * as Preset from '@docusaurus/preset-classic' ;
4
4
5
5
const config : Config = {
6
- title : 'My Site ' ,
7
- tagline : 'Dinosaurs are cool ' ,
6
+ title : 'SDKMAN! ' ,
7
+ tagline : '' ,
8
8
favicon : 'img/favicon.ico' ,
9
9
10
10
// Set the production url of your site here
11
- url : 'https://your-docusaurus-site.example.com ' ,
11
+ url : 'https://sdkman.io ' ,
12
12
// Set the /<baseUrl>/ pathname under which your site is served
13
13
// For GitHub pages deployment, it is often '/<projectName>/'
14
14
baseUrl : '/' ,
15
15
16
16
// GitHub pages deployment config.
17
17
// If you aren't using GitHub pages, you don't need these.
18
- organizationName : 'facebook ' , // Usually your GitHub org/user name.
19
- projectName : 'docusaurus ' , // Usually your repo name.
18
+ organizationName : 'sdkman ' , // Usually your GitHub org/user name.
19
+ projectName : 'sdkman.github.io ' , // Usually your repo name.
20
20
21
21
onBrokenLinks : 'throw' ,
22
22
onBrokenMarkdownLinks : 'warn' ,
@@ -34,98 +34,66 @@ const config: Config = {
34
34
'classic' ,
35
35
{
36
36
docs : {
37
+ routeBasePath : '/' ,
37
38
sidebarPath : './sidebars.ts' ,
38
39
// Please change this to your repo.
39
40
// Remove this to remove the "edit this page" links.
40
- editUrl :
41
- 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/' ,
42
- } ,
43
- blog : {
44
- showReadingTime : true ,
45
- // Please change this to your repo.
46
- // Remove this to remove the "edit this page" links.
47
- editUrl :
48
- 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/' ,
41
+ // editUrl:
42
+ // 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
49
43
} ,
44
+ blog : false ,
50
45
theme : {
51
- customCss : './src/css /custom.css ' ,
46
+ customCss : './src/scss /custom.scss ' ,
52
47
} ,
53
48
} satisfies Preset . Options ,
54
49
] ,
55
50
] ,
56
51
52
+ plugins : [
53
+ 'docusaurus-plugin-sass' ,
54
+ './src/plugins/google-fonts.ts' ,
55
+ './src/plugins/jdks.ts' ,
56
+ ] ,
57
+
57
58
themeConfig : {
58
59
// Replace with your project's social card
59
60
image : 'img/docusaurus-social-card.jpg' ,
60
61
navbar : {
61
- title : 'My Site' ,
62
62
logo : {
63
- alt : 'My Site Logo ' ,
64
- src : 'img/logo.svg ' ,
63
+ alt : 'SDKMAN! ' ,
64
+ src : 'img/logo.png ' ,
65
65
} ,
66
66
items : [
67
67
{
68
68
type : 'docSidebar' ,
69
- sidebarId : 'tutorialSidebar' ,
70
- position : 'left' ,
71
- label : 'Tutorial' ,
72
- } ,
73
- { to : '/blog' , label : 'Blog' , position : 'left' } ,
74
- {
75
- href : 'https://github.com/facebook/docusaurus' ,
76
- label : 'GitHub' ,
69
+ sidebarId : 'docSidebar' ,
70
+ label : 'Docs' ,
77
71
position : 'right' ,
78
72
} ,
79
- ] ,
80
- } ,
81
- footer : {
82
- style : 'dark' ,
83
- links : [
84
73
{
85
- title : 'Docs' ,
86
- items : [
87
- {
88
- label : 'Tutorial' ,
89
- to : '/docs/intro' ,
90
- } ,
91
- ] ,
74
+ label : 'JDKs' ,
75
+ to : '/jdks' ,
76
+ position : 'right' ,
92
77
} ,
93
78
{
94
- title : 'Community' ,
95
- items : [
96
- {
97
- label : 'Stack Overflow' ,
98
- href : 'https://stackoverflow.com/questions/tagged/docusaurus' ,
99
- } ,
100
- {
101
- label : 'Discord' ,
102
- href : 'https://discordapp.com/invite/docusaurus' ,
103
- } ,
104
- {
105
- label : 'Twitter' ,
106
- href : 'https://twitter.com/docusaurus' ,
107
- } ,
108
- ] ,
79
+ label : 'SDKs' ,
80
+ to : '/sdks' ,
81
+ position : 'right' ,
109
82
} ,
110
83
{
111
- title : 'More' ,
112
- items : [
113
- {
114
- label : 'Blog' ,
115
- to : '/blog' ,
116
- } ,
117
- {
118
- label : 'GitHub' ,
119
- href : 'https://github.com/facebook/docusaurus' ,
120
- } ,
121
- ] ,
84
+ label : 'Contributors' ,
85
+ to : '/contributors' ,
86
+ position : 'right' ,
122
87
} ,
123
88
] ,
124
- copyright : `Copyright © ${ new Date ( ) . getFullYear ( ) } My Project, Inc. Built with Docusaurus.` ,
89
+ } ,
90
+ footer : {
91
+ copyright : `Copyright © ${ new Date ( ) . getFullYear ( ) } SDKMAN!.` ,
125
92
} ,
126
93
prism : {
127
94
theme : prismThemes . github ,
128
95
darkTheme : prismThemes . dracula ,
96
+ additionalLanguages : [ 'bash' , 'json' ] ,
129
97
} ,
130
98
} satisfies Preset . ThemeConfig ,
131
99
} ;
0 commit comments