2024-02-04 21:36:30 +01:00
import { themes as prismThemes } from "prism-react-renderer" ;
import type { Config } from "@docusaurus/types" ;
import type * as Preset from "@docusaurus/preset-classic" ;
const config : Config = {
title : "CORE Framework" ,
2024-05-11 23:27:35 +02:00
url : "https://core.staropensource.de" ,
2024-02-04 21:36:30 +01:00
baseUrl : "/" ,
favicon : "dist/core.png" ,
trailingSlash : true ,
i18n : {
defaultLocale : "en" ,
2024-05-04 12:39:09 +02:00
locales : [ "en" ] ,
2024-02-04 21:36:30 +01:00
} ,
noIndex : false ,
onBrokenLinks : "throw" ,
onBrokenAnchors : "throw" ,
onBrokenMarkdownLinks : "throw" ,
onDuplicateRoutes : "warn" ,
/ *
onBrokenLinks : "ignore" ,
onBrokenAnchors : "ignore" ,
onBrokenMarkdownLinks : "ignore" ,
onDuplicateRoutes : "ignore" ,
* /
2024-05-04 12:39:09 +02:00
tagline : "Simplifying Godot development since 2023." ,
2024-02-04 21:36:30 +01:00
themeConfig : {
docs : {
sidebar : {
hideable : false ,
autoCollapseCategories : true ,
}
} ,
navbar : {
title : "CORE Framework" ,
logo : {
alt : "CORE Framework" ,
src : "dist/core.png" ,
2024-05-10 15:33:29 +02:00
href : '/about' ,
2024-02-04 21:36:30 +01:00
} ,
items : [
{
type : "docSidebar" ,
sidebarId : "sidebar" ,
position : "left" ,
label : "Documentation" ,
} ,
2024-04-08 22:40:10 +02:00
{
href : "https://develop.core.staropensource.de" ,
label : "Development documentation" ,
position : "right" ,
} ,
2024-02-04 21:36:30 +01:00
{
href : "https://git.staropensource.de/StarOpenSource/CORE" ,
label : "Source code" ,
position : "right" ,
2024-04-08 22:40:10 +02:00
}
2024-02-04 21:36:30 +01:00
] ,
} ,
footer : {
style : "dark" ,
2024-03-23 12:08:54 +01:00
copyright : ` Copyright (c) ${ new Date ( ) . getFullYear ( ) } The StarOpenSource Project & Contributors<br/>Licensed under the GNU Affero General Public License version 3 ` ,
2024-02-04 21:36:30 +01:00
} ,
prism : {
theme : prismThemes.github ,
darkTheme : prismThemes.dracula ,
} ,
} satisfies Preset . ThemeConfig ,
presets : [
[
"classic" ,
{
debug : false ,
docs : {
path :
"docs" ,
editUrl : "https://git.staropensource.de/StarOpenSource/CORE/_edit/develop/docs/" ,
editLocalizedFiles : false ,
editCurrentVersion : true ,
routeBasePath : "" ,
tagsBasePath : 'tags' ,
sidebarPath : "./sidebars.ts" ,
sidebarCollapsible : false ,
sidebarCollapsed : false ,
showLastUpdateAuthor : true ,
showLastUpdateTime : true ,
breadcrumbs : true ,
includeCurrentVersion : true ,
} ,
sitemap : {
changefreq : "monthly" ,
priority : 0.5 ,
filename : "sitemap.xml"
} ,
theme : {
customCss : "./src/css/custom.css" ,
} ,
} satisfies Preset . Options ,
] ,
] ,
plugins : [
[
"@docusaurus/plugin-client-redirects" ,
{
fromExtensions : [ "html" , "htm" , "php" ] ,
redirects : [
{
from : [ "/" , "/index" ] ,
to : "/about" ,
} ,
] ,
}
] ,
] ,
markdown : {
2024-02-10 21:21:38 +01:00
format : "detect" ,
2024-02-04 21:36:30 +01:00
mermaid : false ,
} ,
staticDirectories : [ "static" ] ,
titleDelimiter : "»" ,
baseUrlIssueBanner : true ,
} ;
export default config ;