Skip to content

Commit

Permalink
Merge pull request #397 from okp4/feat/ontology-section
Browse files Browse the repository at this point in the history
feat(technical): make ontology generated documentation visible
  • Loading branch information
ccamel authored Jan 31, 2024
2 parents 7530867 + ea17a6d commit e6fbc7f
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 10 deletions.
15 changes: 15 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -331,6 +338,14 @@ const config = {
routeBasePath: 'contracts/'
}
],
[
'@docusaurus/plugin-content-docs',
{
id: 'ontology',
path: 'ontology',
routeBasePath: 'ontology/'
}
],
[
'@docusaurus/plugin-content-docs',
{
Expand Down
29 changes: 19 additions & 10 deletions sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const sidebars = {
items: [
{
type: 'doc',
id: 'technical-documentation/overview',
id: 'technical-documentation/overview'
},
{
type: 'category',
Expand All @@ -59,24 +59,33 @@ const sidebars = {
},
{
type: 'link',
label: "Smart contracts",
href: '/contracts',
label: 'Smart contracts',
href: '/contracts'
},
{
type: 'html',
value: '<hr/>'
},
{
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'
}
]
}
],
Expand All @@ -98,7 +107,7 @@ const sidebars = {
id: 'faq/faq',
label: 'FAQ'
}
],
]
}

module.exports = sidebars

0 comments on commit e6fbc7f

Please sign in to comment.