Skip to content

Commit

Permalink
feat: add docusaurus versioning configs
Browse files Browse the repository at this point in the history
  • Loading branch information
banasa44 committed Apr 25, 2024
1 parent 3ea9d21 commit 61ad562
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 13 deletions.
20 changes: 18 additions & 2 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ const config = {
sidebarPath: require.resolve('./sidebars.js'),
remarkPlugins: [math],
rehypePlugins: [katex],
includeCurrentVersion: false,
// lastVersion: 'current',
// onlyIncludeVersions: ['1.3.0'],
versions: {
current: {
label: '1.4.0',
path: '1.4.0',
},
},
},
theme: {
customCss: [
Expand Down Expand Up @@ -61,6 +70,13 @@ const config = {
alt: 'Aragon',
src: 'img/logo-light.png',
},
items: [
// {
// type: 'docsVersionDropdown',
// position: 'right',
// dropdownActiveClassDisabled: true,
// },
],
},
metadata: [
{name: 'og:title', content: 'Aragon Developer Portal'},
Expand Down Expand Up @@ -148,11 +164,11 @@ const config = {
[
'@graphql-markdown/docusaurus',
{
schema: `./static/subgraph/schema-introspection.json`,
schema: `./static/subgraph/schema-introspection-partial.json`,
rootPath: './docs',
baseURL: 'subgraph/reference-guide',
homepage: './static/subgraph/index.md',
linkRoot: '/docs',
linkRoot: '/docs/1.4.0',
loaders: {
JsonFileLoader: {
module: '@graphql-tools/json-file-loader',
Expand Down
1 change: 0 additions & 1 deletion sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const sidebars = {
osxSidebar: [{type: 'autogenerated', dirName: 'osx'}],
sdkSidebar: [{type: 'autogenerated', dirName: 'sdk'}],
subgraphSidebar: [{type: 'autogenerated', dirName: 'subgraph'}],
...require('./static/subgraph/sidebar-schema.js'),
};

module.exports = sidebars;
File renamed without changes.
10 changes: 0 additions & 10 deletions static/subgraph/sidebar-schema.js

This file was deleted.

0 comments on commit 61ad562

Please sign in to comment.