From ea17a6d5a289e8fdbf5ab0e5279e375f6a99e558 Mon Sep 17 00:00:00 2001 From: ccamel Date: Sat, 27 Jan 2024 18:30:54 +0100 Subject: [PATCH] feat(technical): make ontology generated documentation visible --- docusaurus.config.js | 15 +++++++++++++++ sidebars.js | 29 +++++++++++++++++++---------- 2 files changed, 34 insertions(+), 10 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 20848bf379..5f85ffca17 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -171,6 +171,13 @@ const config = { docsPluginId: 'contracts', dropdownActiveClassDisabled: true }, + { + type: 'docsVersionDropdown', + position: 'right', + dropdownItemsAfter: [{ to: '/ontology/schemas', label: 'Latest version' }], + docsPluginId: 'ontology', + dropdownActiveClassDisabled: true + }, { type: 'docsVersionDropdown', position: 'right', @@ -331,6 +338,14 @@ const config = { routeBasePath: 'contracts/' } ], + [ + '@docusaurus/plugin-content-docs', + { + id: 'ontology', + path: 'ontology', + routeBasePath: 'ontology/' + } + ], [ '@docusaurus/plugin-content-docs', { diff --git a/sidebars.js b/sidebars.js index 1aae2327bd..0867318cfd 100644 --- a/sidebars.js +++ b/sidebars.js @@ -35,7 +35,7 @@ const sidebars = { items: [ { type: 'doc', - id: 'technical-documentation/overview', + id: 'technical-documentation/overview' }, { type: 'category', @@ -59,24 +59,33 @@ const sidebars = { }, { type: 'link', - label: "Smart contracts", - href: '/contracts', + label: 'Smart contracts', + href: '/contracts' + }, + { + type: 'html', + value: '
' }, { type: 'link', - label: 'Governance Predicates', - href: '/predicates/predicates', + label: 'Ontology', + href: '/ontology/schemas' }, { type: 'link', - label: "Modules", - href: '/modules/logic', + label: 'Governance Predicates', + href: '/predicates/predicates' }, { type: 'link', - label: "Commands line interface", - href: '/commands/okp4d', + label: 'Modules', + href: '/modules/logic' }, + { + type: 'link', + label: 'Commands line interface', + href: '/commands/okp4d' + } ] } ], @@ -98,7 +107,7 @@ const sidebars = { id: 'faq/faq', label: 'FAQ' } - ], + ] } module.exports = sidebars