Skip to content

Commit

Permalink
Merge pull request #340 from okp4/build/predicates-doc
Browse files Browse the repository at this point in the history
Build/predicates doc
  • Loading branch information
ccamel authored Oct 29, 2023
2 parents 526205e + c401e8a commit 5b19b6f
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,13 @@ async function createconfig() {
docsPluginId: 'contracts',
dropdownActiveClassDisabled: true
},
{
type: 'docsVersionDropdown',
position: 'right',
dropdownItemsAfter: [{ to: '/predicates/predicates', label: 'Latest version' }],
docsPluginId: 'predicates',
dropdownActiveClassDisabled: true
},
{
type: 'docsVersionDropdown',
position: 'right',
Expand Down Expand Up @@ -217,6 +224,14 @@ async function createconfig() {
routeBasePath: 'contracts/'
}
],
[
'@docusaurus/plugin-content-docs',
{
id: 'predicates',
path: 'predicates',
routeBasePath: 'predicates/'
}
],
[
'@docusaurus/plugin-content-docs',
{
Expand Down
Empty file removed predicates/.keepme
Empty file.
2 changes: 2 additions & 0 deletions predicates_versions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[
]
5 changes: 5 additions & 0 deletions sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ const sidebars = {
label: "Smart contracts",
href: '/contracts',
},
{
type: 'link',
label: 'Governance Predicates',
href: '/predicates/predicates',
},
{
type: 'link',
label: "Modules",
Expand Down

0 comments on commit 5b19b6f

Please sign in to comment.