Skip to content

Commit

Permalink
update docusaurus
Browse files Browse the repository at this point in the history
  • Loading branch information
ceceppa committed Oct 18, 2023
1 parent cc65985 commit c8294ef
Showing 1 changed file with 49 additions and 50 deletions.
99 changes: 49 additions & 50 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,112 +1,111 @@
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion

const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
const lightCodeTheme = require("prism-react-renderer/themes/github");
const darkCodeTheme = require("prism-react-renderer/themes/dracula");

/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Anima',
tagline: 'Animations are your friend',
url: 'https://anima.ceceppa.me',
baseUrl: '/docs/',
onBrokenLinks: 'ignore',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
organizationName: 'ceceppa',
projectName: 'anima',

title: "Anima",
tagline: "Animations are your friend",
url: "https://anima.ceceppa.me/",
baseUrl: "/docs/",
onBrokenLinks: "ignore",
onBrokenMarkdownLinks: "warn",
favicon: "img/favicon.ico",
organizationName: "ceceppa",
projectName: "anima",
presets: [
[
'classic',
"classic",
/** @type {import('@docusaurus/preset-classic').Options} */
({
debug: true,
docs: {
sidebarPath: require.resolve('./sidebars.js'),
editUrl: 'https://github.com/ceceppa/anima/docs/',
sidebarPath: require.resolve("./sidebars.js"),
editUrl: "https://github.com/ceceppa/anima/docs/",
showLastUpdateTime: true,
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
customCss: require.resolve("./src/css/custom.css"),
},
sitemap: {
changefreq: 'weekly',
changefreq: "weekly",
priority: 0.5,
},
}),
],
],
plugins: [
[
'@docusaurus/plugin-content-docs',
"@docusaurus/plugin-content-docs",
{
id: 'tutorials',
path: 'tutorials',
routeBasePath: 'tutorials',
sidebarPath: require.resolve('./sidebars.js'),
id: "tutorials",
path: "tutorials",
routeBasePath: "tutorials",
sidebarPath: require.resolve("./sidebars.js"),
},
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
navbar: {
title: 'Anima',
title: "Anima",
logo: {
alt: 'Anima Logo',
src: 'img/logo.svg',
alt: "Anima Logo",
src: "img/logo.svg",
},
items: [
{
type: 'doc',
docId: 'intro',
position: 'left',
label: 'Docs',
type: "doc",
docId: "intro",
position: "left",
label: "Docs",
},
{
to: '/tutorials/intro',
position: 'left',
label: 'Tutorials',
to: "/tutorials/intro",
position: "left",
label: "Tutorials",
},
{
href: 'https://github.com/ceceppa/anima',
label: 'GitHub',
position: 'right',
href: "https://github.com/ceceppa/anima",
label: "GitHub",
position: "right",
},
{
href: 'https://anima.ceceppa.me/demo/',
label: 'Demo',
position: 'right',
href: "https://anima.ceceppa.me/demo/",
label: "Demo",
position: "right",
},
],
},
footer: {
style: 'dark',
style: "dark",
links: [
{
title: 'Docs',
title: "Docs",
items: [
{
label: 'Documentation',
to: '/docs/docs/intro',
label: "Documentation",
to: "/docs/docs/intro",
},
{
label: 'Tutorial',
to: '/docs/tutorial/fundamentals',
label: "Tutorial",
to: "/docs/tutorial/fundamentals",
},
],
},
{
title: 'Community',
title: "Community",
items: [
{
label: 'Discord',
href: 'https://discord.gg/zgtF3us5yN',
label: "Discord",
href: "https://discord.gg/zgtF3us5yN",
},
{
label: 'Twitter',
href: 'https://twitter.com/ceceppa',
label: "Twitter",
href: "https://twitter.com/ceceppa",
},
],
},
Expand All @@ -116,7 +115,7 @@ const config = {
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
additionalLanguages: ['gdscript'],
additionalLanguages: ["gdscript"],
},
}),
};
Expand Down

0 comments on commit c8294ef

Please sign in to comment.