Skip to content

Commit bc5478d

Browse files
committed
update: global config
1 parent 360fd48 commit bc5478d

File tree

2 files changed

+37
-68
lines changed

2 files changed

+37
-68
lines changed

docusaurus.config.ts

+35-67
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
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';
33
import type * as Preset from '@docusaurus/preset-classic';
44

55
const config: Config = {
6-
title: 'My Site',
7-
tagline: 'Dinosaurs are cool',
6+
title: 'SDKMAN!',
7+
tagline: '',
88
favicon: 'img/favicon.ico',
99

1010
// Set the production url of your site here
11-
url: 'https://your-docusaurus-site.example.com',
11+
url: 'https://sdkman.io',
1212
// Set the /<baseUrl>/ pathname under which your site is served
1313
// For GitHub pages deployment, it is often '/<projectName>/'
1414
baseUrl: '/',
1515

1616
// GitHub pages deployment config.
1717
// 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.
2020

2121
onBrokenLinks: 'throw',
2222
onBrokenMarkdownLinks: 'warn',
@@ -34,98 +34,66 @@ const config: Config = {
3434
'classic',
3535
{
3636
docs: {
37+
routeBasePath: '/',
3738
sidebarPath: './sidebars.ts',
3839
// Please change this to your repo.
3940
// 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/',
4943
},
44+
blog: false,
5045
theme: {
51-
customCss: './src/css/custom.css',
46+
customCss: './src/scss/custom.scss',
5247
},
5348
} satisfies Preset.Options,
5449
],
5550
],
5651

52+
plugins: [
53+
'docusaurus-plugin-sass',
54+
'./src/plugins/google-fonts.ts',
55+
'./src/plugins/jdks.ts',
56+
],
57+
5758
themeConfig: {
5859
// Replace with your project's social card
5960
image: 'img/docusaurus-social-card.jpg',
6061
navbar: {
61-
title: 'My Site',
6262
logo: {
63-
alt: 'My Site Logo',
64-
src: 'img/logo.svg',
63+
alt: 'SDKMAN!',
64+
src: 'img/logo.png',
6565
},
6666
items: [
6767
{
6868
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',
7771
position: 'right',
7872
},
79-
],
80-
},
81-
footer: {
82-
style: 'dark',
83-
links: [
8473
{
85-
title: 'Docs',
86-
items: [
87-
{
88-
label: 'Tutorial',
89-
to: '/docs/intro',
90-
},
91-
],
74+
label: 'JDKs',
75+
to: '/jdks',
76+
position: 'right',
9277
},
9378
{
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',
10982
},
11083
{
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',
12287
},
12388
],
124-
copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`,
89+
},
90+
footer: {
91+
copyright: `Copyright © ${new Date().getFullYear()} SDKMAN!.`,
12592
},
12693
prism: {
12794
theme: prismThemes.github,
12895
darkTheme: prismThemes.dracula,
96+
additionalLanguages: ['bash', 'json'],
12997
},
13098
} satisfies Preset.ThemeConfig,
13199
};

tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// This file is not used in compilation. It is here just for a nice editor experience.
33
"extends": "@docusaurus/tsconfig",
44
"compilerOptions": {
5-
"baseUrl": "."
5+
"baseUrl": ".",
6+
"types": ["docusaurus-plugin-sass"]
67
}
78
}

0 commit comments

Comments
 (0)