From 7770c15bbc3f7702d5b31cd6e23638a6dd5acaa7 Mon Sep 17 00:00:00 2001 From: ccamel Date: Sat, 28 Oct 2023 11:07:41 +0200 Subject: [PATCH 1/2] build(project): declare predicates content --- docusaurus.config.js | 15 +++++++++++++++ predicates_versions.json | 2 ++ sidebars.js | 5 +++++ 3 files changed, 22 insertions(+) create mode 100644 predicates_versions.json diff --git a/docusaurus.config.js b/docusaurus.config.js index 77bf2514902..5741d5b5949 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -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', @@ -217,6 +224,14 @@ async function createconfig() { routeBasePath: 'contracts/' } ], + [ + '@docusaurus/plugin-content-docs', + { + id: 'predicates', + path: 'predicates', + routeBasePath: 'predicates/' + } + ], [ '@docusaurus/plugin-content-docs', { diff --git a/predicates_versions.json b/predicates_versions.json new file mode 100644 index 00000000000..0d4f101c7a3 --- /dev/null +++ b/predicates_versions.json @@ -0,0 +1,2 @@ +[ +] diff --git a/sidebars.js b/sidebars.js index d099b24f947..1369f5d9fe4 100644 --- a/sidebars.js +++ b/sidebars.js @@ -62,6 +62,11 @@ const sidebars = { label: "Smart contracts", href: '/contracts', }, + { + type: 'link', + label: 'Governance Predicates', + href: '/predicates/predicates', + }, { type: 'link', label: "Modules", From c401e8af1834baf918aced916dbe55b3c30c0cff Mon Sep 17 00:00:00 2001 From: ccamel Date: Sat, 28 Oct 2023 11:08:18 +0200 Subject: [PATCH 2/2] chore: remove useless file --- predicates/.keepme | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 predicates/.keepme diff --git a/predicates/.keepme b/predicates/.keepme deleted file mode 100644 index e69de29bb2d..00000000000