mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-08-18 18:07:49 +00:00
Respect preferred color scheme in docs (#1241)
This commit is contained in:
parent
5365d51b12
commit
34419ae521
@ -2,7 +2,7 @@ const lightCodeTheme = require('prism-react-renderer/themes/github');
|
|||||||
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
|
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
|
||||||
/** @type {import('@docusaurus/types').DocusaurusConfig} */
|
/** @type {import('@docusaurus/types').Config} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
title: 'Woodpecker CI',
|
title: 'Woodpecker CI',
|
||||||
tagline: 'Woodpecker is a simple CI engine with great extensibility.',
|
tagline: 'Woodpecker is a simple CI engine with great extensibility.',
|
||||||
@ -14,7 +14,9 @@ module.exports = {
|
|||||||
organizationName: 'woodpecker-ci',
|
organizationName: 'woodpecker-ci',
|
||||||
projectName: 'woodpecker-ci.github.io',
|
projectName: 'woodpecker-ci.github.io',
|
||||||
trailingSlash: false,
|
trailingSlash: false,
|
||||||
themeConfig: {
|
themeConfig:
|
||||||
|
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
||||||
|
({
|
||||||
navbar: {
|
navbar: {
|
||||||
title: 'Woodpecker',
|
title: 'Woodpecker',
|
||||||
logo: {
|
logo: {
|
||||||
@ -137,7 +139,10 @@ module.exports = {
|
|||||||
minHeadingLevel: 2,
|
minHeadingLevel: 2,
|
||||||
maxHeadingLevel: 4,
|
maxHeadingLevel: 4,
|
||||||
},
|
},
|
||||||
|
colorMode: {
|
||||||
|
respectPrefersColorScheme: true,
|
||||||
},
|
},
|
||||||
|
}),
|
||||||
plugins: [
|
plugins: [
|
||||||
() => ({
|
() => ({
|
||||||
name: 'docusaurus-plugin-favicon',
|
name: 'docusaurus-plugin-favicon',
|
||||||
@ -177,7 +182,8 @@ module.exports = {
|
|||||||
presets: [
|
presets: [
|
||||||
[
|
[
|
||||||
'@docusaurus/preset-classic',
|
'@docusaurus/preset-classic',
|
||||||
{
|
/** @type {import('@docusaurus/preset-classic').Options} */
|
||||||
|
({
|
||||||
docs: {
|
docs: {
|
||||||
sidebarPath: require.resolve('./sidebars.js'),
|
sidebarPath: require.resolve('./sidebars.js'),
|
||||||
editUrl: 'https://github.com/woodpecker-ci/woodpecker/edit/master/docs/',
|
editUrl: 'https://github.com/woodpecker-ci/woodpecker/edit/master/docs/',
|
||||||
@ -197,7 +203,7 @@ module.exports = {
|
|||||||
theme: {
|
theme: {
|
||||||
customCss: require.resolve('./src/css/custom.css'),
|
customCss: require.resolve('./src/css/custom.css'),
|
||||||
},
|
},
|
||||||
},
|
}),
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
webpack: {
|
webpack: {
|
||||||
|
Loading…
Reference in New Issue
Block a user