2021-09-11 15:10:32 +00:00
const lightCodeTheme = require ( 'prism-react-renderer/themes/github' ) ;
const darkCodeTheme = require ( 'prism-react-renderer/themes/dracula' ) ;
2021-10-16 19:27:51 +00:00
const path = require ( 'path' ) ;
2021-09-11 15:10:32 +00:00
/** @type {import('@docusaurus/types').DocusaurusConfig} */
module . exports = {
title : 'Woodpecker CI' ,
tagline : 'Woodpecker is a simple CI engine with great extensibility.' ,
2021-10-14 16:13:57 +00:00
url : 'https://woodpecker-ci.org' ,
2021-09-11 15:10:32 +00:00
baseUrl : '/' ,
onBrokenLinks : 'throw' ,
2021-10-16 19:27:51 +00:00
onBrokenMarkdownLinks : 'throw' ,
onDuplicateRoutes : 'throw' ,
2021-09-11 15:10:32 +00:00
favicon : 'img/favicon.ico' ,
organizationName : 'woodpecker-ci' ,
projectName : 'woodpecker-ci.github.io' ,
trailingSlash : false ,
themeConfig : {
navbar : {
title : 'Woodpecker' ,
logo : {
alt : 'Woodpecker Logo' ,
src : 'img/logo.svg' ,
srcDark : 'img/logo-darkmode.svg' ,
} ,
items : [
{
type : 'doc' ,
docId : 'intro' ,
position : 'left' ,
label : 'Docs' ,
} ,
2021-10-19 16:54:01 +00:00
{
to : '/plugins' ,
position : 'left' ,
label : 'Plugins' ,
} ,
2021-09-11 15:10:32 +00:00
{
type : 'doc' ,
2021-10-16 19:27:51 +00:00
docId : 'migrations' ,
2021-09-11 15:10:32 +00:00
position : 'left' ,
2021-10-16 19:27:51 +00:00
label : 'Migrations' ,
2021-09-11 15:10:32 +00:00
} ,
2021-09-30 13:39:20 +00:00
{
2021-10-16 19:27:51 +00:00
to : '/faq' ,
2021-09-30 13:39:20 +00:00
position : 'left' ,
2021-10-16 19:27:51 +00:00
label : 'FAQ' ,
2021-09-30 13:39:20 +00:00
} ,
2021-09-11 15:10:32 +00:00
{
href : 'https://github.com/woodpecker-ci/woodpecker' ,
position : 'right' ,
2021-10-16 19:27:51 +00:00
className : 'header-github-link' ,
'aria-label' : 'GitHub repository' ,
} ,
{
label : '🧡 Sponsor Us' ,
position : 'right' ,
href : 'https://opencollective.com/woodpecker-ci' ,
2021-09-11 15:10:32 +00:00
} ,
] ,
} ,
footer : {
style : 'dark' ,
links : [
{
title : 'Docs' ,
items : [
{
label : 'Usage' ,
to : '/docs/usage/intro' ,
} ,
{
label : 'Server setup' ,
2021-09-16 16:50:53 +00:00
to : '/docs/administration/setup' ,
2021-09-11 15:10:32 +00:00
} ,
{
label : 'FAQ' ,
2021-10-16 19:27:51 +00:00
to : '/faq' ,
2021-09-11 15:10:32 +00:00
} ,
] ,
} ,
{
title : 'Community' ,
items : [
{
label : 'Discord' ,
href : 'https://discord.gg/fcMQqSMXJy' ,
} ,
2021-10-16 19:27:51 +00:00
{
label : 'Mastodon' ,
href : 'https://mastodon.technology/@WoodpeckerCI' ,
} ,
2021-09-11 15:10:32 +00:00
] ,
} ,
{
title : 'More' ,
items : [
{
label : 'GitHub' ,
href : 'https://github.com/woodpecker-ci/woodpecker' ,
} ,
{
2021-12-03 14:36:22 +00:00
href : 'https://ci.woodpecker-ci.org/woodpecker-ci/woodpecker' ,
2021-09-11 15:10:32 +00:00
label : 'CI' ,
} ,
] ,
} ,
] ,
copyright : ` Copyright © ${ new Date ( ) . getFullYear ( ) } Woodpecker CI. Built with Docusaurus. ` ,
} ,
prism : {
theme : lightCodeTheme ,
darkTheme : darkCodeTheme ,
} ,
2021-10-16 19:27:51 +00:00
announcementBar : {
id : 'github-star' ,
content : ` If you like Woodpecker-CI, <a href=https://github.com/woodpecker-ci/woodpecker rel="noopener noreferrer" target="_blank">give us a star on GitHub</a> ! ⭐️ ` ,
backgroundColor : 'var(--ifm-color-primary)' ,
textColor : 'var(--ifm-color-gray-900)' ,
} ,
2021-10-16 19:05:13 +00:00
algolia : {
2021-10-16 19:27:51 +00:00
appId : 'BH4D9OD16A' ,
apiKey : '148f85e216b68d20ffa49d46a2b89d0e' ,
indexName : 'woodpecker-ci' ,
2021-10-16 19:05:13 +00:00
debug : false , // Set debug to true if you want to inspect the modal
} ,
2021-09-11 15:10:32 +00:00
} ,
2021-10-19 16:54:01 +00:00
themes : [ path . resolve ( _ _dirname , 'plugins' , 'woodpecker-plugins' , 'dist' ) ] ,
2021-09-11 15:10:32 +00:00
presets : [
[
'@docusaurus/preset-classic' ,
{
docs : {
sidebarPath : require . resolve ( './sidebars.js' ) ,
editUrl : 'https://github.com/woodpecker-ci/woodpecker/edit/master/docs/' ,
} ,
theme : {
customCss : require . resolve ( './src/css/custom.css' ) ,
} ,
} ,
] ,
] ,
} ;