2021-09-11 17:10:32 +02:00
const lightCodeTheme = require ( 'prism-react-renderer/themes/github' ) ;
const darkCodeTheme = require ( 'prism-react-renderer/themes/dracula' ) ;
2021-10-16 21:27:51 +02:00
const path = require ( 'path' ) ;
2021-09-11 17:10:32 +02:00
/** @type {import('@docusaurus/types').DocusaurusConfig} */
module . exports = {
title : 'Woodpecker CI' ,
tagline : 'Woodpecker is a simple CI engine with great extensibility.' ,
2021-10-14 18:13:57 +02:00
url : 'https://woodpecker-ci.org' ,
2021-09-11 17:10:32 +02:00
baseUrl : '/' ,
onBrokenLinks : 'throw' ,
2021-10-16 21:27:51 +02:00
onBrokenMarkdownLinks : 'throw' ,
onDuplicateRoutes : 'throw' ,
2021-09-11 17:10:32 +02:00
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 : [
{
2021-12-18 02:05:23 +02:00
to : 'docs/intro' ,
2022-02-04 11:53:03 +02:00
activeBaseRegex : 'docs/(?!migrations|awesome)' ,
2021-09-11 17:10:32 +02:00
position : 'left' ,
label : 'Docs' ,
} ,
2021-10-19 18:54:01 +02:00
{
to : '/plugins' ,
position : 'left' ,
label : 'Plugins' ,
} ,
2021-09-11 17:10:32 +02:00
{
2022-04-06 17:15:28 +02:00
to : '/docs/migrations' ,
2021-12-18 02:05:23 +02:00
activeBaseRegex : 'docs/migrations' ,
2021-09-11 17:10:32 +02:00
position : 'left' ,
2021-10-16 21:27:51 +02:00
label : 'Migrations' ,
2021-09-11 17:10:32 +02:00
} ,
2021-09-30 15:39:20 +02:00
{
2021-10-16 21:27:51 +02:00
to : '/faq' ,
2021-09-30 15:39:20 +02:00
position : 'left' ,
2021-10-16 21:27:51 +02:00
label : 'FAQ' ,
2021-09-30 15:39:20 +02:00
} ,
2022-02-04 11:53:03 +02:00
{
2022-04-06 17:15:28 +02:00
to : '/docs/awesome' ,
2022-02-04 11:53:03 +02:00
position : 'left' ,
label : 'Awesome' ,
} ,
2021-09-11 17:10:32 +02:00
{
href : 'https://github.com/woodpecker-ci/woodpecker' ,
position : 'right' ,
2021-10-16 21:27:51 +02:00
className : 'header-github-link' ,
'aria-label' : 'GitHub repository' ,
} ,
{
label : '🧡 Sponsor Us' ,
position : 'right' ,
href : 'https://opencollective.com/woodpecker-ci' ,
2021-09-11 17:10:32 +02:00
} ,
] ,
} ,
footer : {
style : 'dark' ,
links : [
{
title : 'Docs' ,
items : [
{
label : 'Usage' ,
to : '/docs/usage/intro' ,
} ,
{
label : 'Server setup' ,
2021-09-16 18:50:53 +02:00
to : '/docs/administration/setup' ,
2021-09-11 17:10:32 +02:00
} ,
{
label : 'FAQ' ,
2021-10-16 21:27:51 +02:00
to : '/faq' ,
2021-09-11 17:10:32 +02:00
} ,
] ,
} ,
{
title : 'Community' ,
items : [
{
label : 'Discord' ,
href : 'https://discord.gg/fcMQqSMXJy' ,
} ,
2021-12-30 19:53:52 +02:00
{
label : 'Matrix' ,
href : 'https://matrix.to/#/#woodpecker:matrix.org' ,
} ,
2021-10-16 21:27:51 +02:00
{
label : 'Mastodon' ,
href : 'https://mastodon.technology/@WoodpeckerCI' ,
} ,
2021-09-11 17:10:32 +02:00
] ,
} ,
{
title : 'More' ,
items : [
{
label : 'GitHub' ,
href : 'https://github.com/woodpecker-ci/woodpecker' ,
} ,
{
2021-12-03 16:36:22 +02:00
href : 'https://ci.woodpecker-ci.org/woodpecker-ci/woodpecker' ,
2021-09-11 17:10:32 +02:00
label : 'CI' ,
} ,
] ,
} ,
] ,
copyright : ` Copyright © ${ new Date ( ) . getFullYear ( ) } Woodpecker CI. Built with Docusaurus. ` ,
} ,
prism : {
theme : lightCodeTheme ,
darkTheme : darkCodeTheme ,
} ,
2021-10-16 21:27:51 +02: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 21:05:13 +02:00
algolia : {
2021-10-16 21:27:51 +02:00
appId : 'BH4D9OD16A' ,
apiKey : '148f85e216b68d20ffa49d46a2b89d0e' ,
indexName : 'woodpecker-ci' ,
2021-10-16 21:05:13 +02:00
debug : false , // Set debug to true if you want to inspect the modal
} ,
2022-04-06 17:15:28 +02:00
tableOfContents : {
minHeadingLevel : 2 ,
maxHeadingLevel : 4 ,
} ,
2021-09-11 17:10:32 +02:00
} ,
2022-04-06 17:15:28 +02:00
plugins : [
( ) => ( {
name : 'docusaurus-plugin-favicon' ,
injectHtmlTags ( ) {
return {
headTags : [
{
tagName : 'link' ,
attributes : {
rel : 'icon' ,
href : '/img/favicon.ico' ,
sizes : 'any' ,
} ,
} ,
{
tagName : 'link' ,
attributes : {
rel : 'icon' ,
href : '/img/favicon.svg' ,
type : 'image/svg+xml' ,
} ,
} ,
] ,
} ;
} ,
} ) ,
] ,
2021-10-19 18:54:01 +02:00
themes : [ path . resolve ( _ _dirname , 'plugins' , 'woodpecker-plugins' , 'dist' ) ] ,
2021-09-11 17:10:32 +02: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' ) ,
} ,
} ,
] ,
] ,
} ;