Skip to content

Commit

Permalink
include redocusaurus for OpenAPI yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
lumpi2k committed May 8, 2022
1 parent c80c39a commit 73a87d4
Show file tree
Hide file tree
Showing 4 changed files with 4,807 additions and 24 deletions.
31 changes: 25 additions & 6 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,24 @@ const config = {
},
}),
],
[
'redocusaurus',
/** @type {import('@redocusaurus').Options} */
{
// Plugin Options for loading OpenAPI files
specs: [
{
spec: 'static/PAYONE-Link.yaml',
route: '/api/',
},
],
// Theme Options for modifying how redoc renders them
theme: {
// Change with your site colors
primaryColor: '#3d94d1',
},
},
],
],

themeConfig:
Expand All @@ -59,21 +77,22 @@ const config = {
navbar: {
title: 'Hannes seine Docs',
logo: {
alt: 'My Site Logo',
alt: 'PAYONE Logo',
src: 'img/payone.svg',
},
items: [
{
type: 'doc',
docId: 'intro',
docId: 'checkout-demo/checkout demo intro',
position: 'left',
label: 'Tutorial',
label: 'PAYONE Checkout Demo',
},
{to: '/api', label: 'PAYONE Link API', position: 'left'},
{
type: 'doc',
docId: 'checkout-demo/checkout demo intro',
docId: 'intro',
position: 'left',
label: 'PAYONE Checkout Demo',
label: 'Tutorial',
},
{to: '/blog', label: 'Blog', position: 'left'},
{
Expand Down Expand Up @@ -135,4 +154,4 @@ const config = {
}),
};

module.exports = config;
module.exports = config;
Loading

0 comments on commit 73a87d4

Please sign in to comment.