Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(technical): make ontology generated documentation visible #397

Merged
merged 1 commit into from
Jan 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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'
}
ccamel marked this conversation as resolved.
Show resolved Hide resolved
]
}
],
Expand All @@ -98,7 +107,7 @@ const sidebars = {
id: 'faq/faq',
label: 'FAQ'
}
],
]
}

module.exports = sidebars
Loading