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

90 lines
2.5 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',
url: 'https://your-docusaurus-test-site.com',
baseUrl: '/',
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',
},
links: [
{
activeBasePath: 'docs',
label: 'Docs',
position: 'left',
items: [
{
2020-05-19 16:33:29 +01:00
label: 'Latest/Next',
to: 'docs/next/introduction',
2020-05-13 17:25:42 +01:00
},
{
label: versions[0],
to: 'docs/home',
},
...versions.slice(1).map((version) => ({
label: version,
to: `docs/${version}/home`,
}))
]
},
{ to: 'news', label: 'News', position: 'left' },
{
href: 'https://www.nuget.org/packages/SpotifyAPI.Web/',
label: 'NuGET',
position: 'right',
},
{
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: {
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
editUrl:
'https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/',
showLastUpdateAuthor: true,
showLastUpdateTime: true,
},
blog: {
path: 'news',
routeBasePath: 'news',
showReadingTime: true,
feedOptions: {
type: 'all',
copyright: `Copyright © ${new Date().getFullYear()} Jonas Dellinger.`,
},
// Please change this to your repo.
editUrl:
'https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/blog/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
],
};