Spotify.NET/SpotifyAPI.Docs/docusaurus.config.js

83 lines
2.2 KiB
JavaScript
Raw Normal View History

2020-05-13 17:25:42 +01:00
const versions = require('./versions.json');
module.exports = {
title: 'SpotifyAPI-NET',
tagline: '🔊 A Client for the Spotify Web API, written in C#/.NET',
2020-06-04 15:21:23 +01:00
url: 'https://johnnycrazy.github.io',
baseUrl: '/SpotifyAPI-NET/',
2020-05-13 17:25:42 +01:00
favicon: 'img/favicon.ico',
organizationName: 'JohnnyCrazy', // Usually your GitHub org/user name.
projectName: 'SpotifyAPI-NET', // Usually your repo name.
themeConfig: {
prism: {
additionalLanguages: ['csharp'],
},
navbar: {
title: 'SpotifyAPI-NET',
logo: {
alt: 'SpotifyAPI-NET',
src: 'img/logo.svg',
},
items: [
2020-05-13 17:25:42 +01:00
{
activeBasePath: 'docs',
label: 'Docs',
position: 'left',
items: [
{
2022-11-27 13:31:18 +00:00
label: '7.X (current)',
to: 'docs/introduction',
2020-05-13 17:25:42 +01:00
},
...versions.map((version) => ({
2020-05-13 17:25:42 +01:00
label: version,
to: `docs/${version}/home`,
})),
],
2020-05-13 17:25:42 +01:00
},
{
href: 'https://github.com/JohnnyCrazy/SpotifyAPI-NET',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
copyright: `Copyright © ${new Date().getFullYear()} Jonas Dellinger. Built with Docusaurus.`,
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
2021-08-10 21:23:31 +01:00
sidebarCollapsible: true,
2020-05-13 17:25:42 +01:00
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
editUrl: 'https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/',
2020-05-13 17:25:42 +01:00
showLastUpdateAuthor: true,
showLastUpdateTime: true,
lastVersion: 'current',
versions: {
current: {
2022-11-27 13:31:18 +00:00
label: '7.X',
path: '',
},
},
2020-05-13 17:25:42 +01:00
},
blog: {
path: 'news',
routeBasePath: 'news',
showReadingTime: true,
2020-06-04 15:12:23 +01:00
feedOptions: undefined,
2020-05-13 17:25:42 +01:00
// Please change this to your repo.
editUrl: 'https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/blog/',
2020-05-13 17:25:42 +01:00
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
],
};