Skip to content

Commit

Permalink
updated docusaurus
Browse files Browse the repository at this point in the history
  • Loading branch information
DasCodes committed Oct 12, 2023
1 parent c689f07 commit 30465d6
Show file tree
Hide file tree
Showing 3 changed files with 496 additions and 472 deletions.
122 changes: 64 additions & 58 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,14 @@ const config = {
organizationName: 'EarthMC', // Usually your GitHub org/user name.
projectName: 'earthmc-docs', // Usually your repo name.

scripts: [{src: 'https://plausible.io/js/plausible.js', async: false, defer: true, 'data-domain': 'earthmc.net'}],
scripts: [
{
src: 'https://plausible.io/js/plausible.js',
async: false,
defer: true,
'data-domain': 'earthmc.net',
},
],

// Even if you don't use internalization, you can use this field to set useful
// metadata like html lang. For example, if your site is Chinese, you may want
Expand All @@ -34,88 +41,87 @@ const config = {
'@docusaurus/theme-classic',
/** @type {import('@docusaurus/theme-classic').Options} */
{
customCss: require.resolve('./src/css/custom.css')
customCss: require.resolve('./src/css/custom.css'),
},
]
],
],

plugins: [
[
'@docusaurus/plugin-content-docs',
{
path: 'src/docs',
routeBasePath: '/'
}
routeBasePath: '/',
},
],
[
'@docusaurus/plugin-content-pages',
{
path: 'src/pages',
routeBasePath: '/pages'
}
routeBasePath: '/pages',
},
],
[
[
'@docusaurus/plugin-content-blog',
{
path: 'src/posts',
routeBasePath: '/posts'
}
routeBasePath: '/posts',
},
],
[
'@docusaurus/plugin-sitemap',
{
changefreq: 'weekly',
priority: 0.5,
}
]
},
],
],

themeConfig:
({
navbar: {
title: 'EarthMC docs',
// logo: {
// alt: 'EarthMC Logo',
// src: 'img/logo.svg',
// },
items: [],
},
footer: {
style: 'dark',
links: [
{
title: 'IP: play.earthmc.net',
},
{
title: 'Links',
items: [
{
label: 'Discord',
href: 'https://discord.gg/TFVYpWQ',
},
{
label: 'Wiki',
href: 'https://earthmc.fandom.com/',
},
],
},
{
title: 'More',
items: [
{
label: 'GitHub',
href: 'https://github.com/EarthMC/',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} EarthMC.net.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
}),
themeConfig: {
navbar: {
title: 'EarthMC docs',
// logo: {
// alt: 'EarthMC Logo',
// src: 'img/logo.svg',
// },
items: [],
},
footer: {
style: 'dark',
links: [
{
title: 'IP: play.earthmc.net',
},
{
title: 'Links',
items: [
{
label: 'Discord',
href: 'https://discord.gg/TFVYpWQ',
},
{
label: 'Wiki',
href: 'https://wiki.earthmc.net/',
},
],
},
{
title: 'More',
items: [
{
label: 'GitHub',
href: 'https://github.com/EarthMC/',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} EarthMC.net.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
},
};

module.exports = config;
Loading

0 comments on commit 30465d6

Please sign in to comment.