From df60d685c85f653d27af5ee85dfaafbddc69ede4 Mon Sep 17 00:00:00 2001 From: signorecello Date: Tue, 7 May 2024 17:44:42 +0000 Subject: [PATCH] passing category json down to preprocessed docs --- docs/docs/aztec/_category_.json | 3 ++- docs/docs/aztec/aztec/concepts/nodes_clients/_category_.json | 4 ++-- docs/docs/aztec/aztec/what_is_aztec/_category_.json | 4 ++-- docs/docs/aztec/aztec/what_is_aztec/roadmap/_category_.json | 3 ++- docs/docs/getting_started/_category_.json | 3 ++- docs/docs/guides/_category_.json | 3 ++- docs/docs/guides/guides/_category_.json | 4 ++-- docs/docs/guides/guides/js_apps/_category_.json | 4 ++-- docs/docs/guides/guides/local_env/_category_.json | 4 ++-- docs/docs/guides/guides/smart_contracts/_category_.json | 4 ++-- .../reference/reference/sandbox_reference/_category_.json | 3 ++- .../smart_contract_reference/storage/_category_.json | 3 ++- .../contract_tutorials/advanced/token_bridge/_category_.json | 3 ++- docs/src/preprocess/index.js | 2 +- 14 files changed, 27 insertions(+), 20 deletions(-) diff --git a/docs/docs/aztec/_category_.json b/docs/docs/aztec/_category_.json index 5d694210bbf..5313372a176 100644 --- a/docs/docs/aztec/_category_.json +++ b/docs/docs/aztec/_category_.json @@ -1,5 +1,6 @@ { "position": 0, "collapsible": true, - "collapsed": true + "collapsed": true, + "label": "Aztec" } diff --git a/docs/docs/aztec/aztec/concepts/nodes_clients/_category_.json b/docs/docs/aztec/aztec/concepts/nodes_clients/_category_.json index 3cf0093a9e8..ea3bb9ef661 100644 --- a/docs/docs/aztec/aztec/concepts/nodes_clients/_category_.json +++ b/docs/docs/aztec/aztec/concepts/nodes_clients/_category_.json @@ -1,6 +1,6 @@ { - "label": "Nodes and Clients", "position": 8, "collapsible": true, - "collapsed": true + "collapsed": true, + "label": "Nodes and Clients" } diff --git a/docs/docs/aztec/aztec/what_is_aztec/_category_.json b/docs/docs/aztec/aztec/what_is_aztec/_category_.json index e7870eb3ba0..b16bc4e0ce9 100644 --- a/docs/docs/aztec/aztec/what_is_aztec/_category_.json +++ b/docs/docs/aztec/aztec/what_is_aztec/_category_.json @@ -1,6 +1,6 @@ { - "label": "What is Aztec", "position": 0, "collapsible": true, - "collapsed": true + "collapsed": true, + "label": "What is Aztec" } diff --git a/docs/docs/aztec/aztec/what_is_aztec/roadmap/_category_.json b/docs/docs/aztec/aztec/what_is_aztec/roadmap/_category_.json index 151ee204894..8228f17954f 100644 --- a/docs/docs/aztec/aztec/what_is_aztec/roadmap/_category_.json +++ b/docs/docs/aztec/aztec/what_is_aztec/roadmap/_category_.json @@ -1,5 +1,6 @@ { "position": 3, "collapsible": true, - "collapsed": true + "collapsed": true, + "label": "Roadmap" } diff --git a/docs/docs/getting_started/_category_.json b/docs/docs/getting_started/_category_.json index 23b560f610b..52193ac82d5 100644 --- a/docs/docs/getting_started/_category_.json +++ b/docs/docs/getting_started/_category_.json @@ -1,5 +1,6 @@ { "position": 1, "collapsible": true, - "collapsed": true + "collapsed": true, + "label": "Getting Started" } diff --git a/docs/docs/guides/_category_.json b/docs/docs/guides/_category_.json index 976a2325de0..5dc68949682 100644 --- a/docs/docs/guides/_category_.json +++ b/docs/docs/guides/_category_.json @@ -1,5 +1,6 @@ { "position": 2, "collapsible": true, - "collapsed": true + "collapsed": true, + "label": "Guides" } diff --git a/docs/docs/guides/guides/_category_.json b/docs/docs/guides/guides/_category_.json index 40bfc9652c3..a8fa84718fc 100644 --- a/docs/docs/guides/guides/_category_.json +++ b/docs/docs/guides/guides/_category_.json @@ -1,6 +1,6 @@ { - "label": "Guides", "position": 0, "collapsible": true, - "collapsed": true + "collapsed": true, + "label": "Guides" } diff --git a/docs/docs/guides/guides/js_apps/_category_.json b/docs/docs/guides/guides/js_apps/_category_.json index b9d78e9d632..f5afa68de01 100644 --- a/docs/docs/guides/guides/js_apps/_category_.json +++ b/docs/docs/guides/guides/js_apps/_category_.json @@ -1,6 +1,6 @@ { - "label": "Aztec.js", "position": 2, "collapsible": true, - "collapsed": true + "collapsed": true, + "label": "Aztec.js" } diff --git a/docs/docs/guides/guides/local_env/_category_.json b/docs/docs/guides/guides/local_env/_category_.json index 57568ef5af2..808175f5ff1 100644 --- a/docs/docs/guides/guides/local_env/_category_.json +++ b/docs/docs/guides/guides/local_env/_category_.json @@ -1,6 +1,6 @@ { - "label": "Development Environment", "position": 0, "collapsible": true, - "collapsed": true + "collapsed": true, + "label": "Development Environment" } diff --git a/docs/docs/guides/guides/smart_contracts/_category_.json b/docs/docs/guides/guides/smart_contracts/_category_.json index 29fe5285e8f..e323c74a391 100644 --- a/docs/docs/guides/guides/smart_contracts/_category_.json +++ b/docs/docs/guides/guides/smart_contracts/_category_.json @@ -1,6 +1,6 @@ { - "label": "Aztec.nr", "position": 1, "collapsible": true, - "collapsed": true + "collapsed": true, + "label": "Aztec.nr" } diff --git a/docs/docs/reference/reference/sandbox_reference/_category_.json b/docs/docs/reference/reference/sandbox_reference/_category_.json index 5d694210bbf..b8ef20a14c8 100644 --- a/docs/docs/reference/reference/sandbox_reference/_category_.json +++ b/docs/docs/reference/reference/sandbox_reference/_category_.json @@ -1,5 +1,6 @@ { "position": 0, "collapsible": true, - "collapsed": true + "collapsed": true, + "label": "Sandbox Reference" } diff --git a/docs/docs/reference/reference/smart_contract_reference/storage/_category_.json b/docs/docs/reference/reference/smart_contract_reference/storage/_category_.json index 5d694210bbf..9abbe38441b 100644 --- a/docs/docs/reference/reference/smart_contract_reference/storage/_category_.json +++ b/docs/docs/reference/reference/smart_contract_reference/storage/_category_.json @@ -1,5 +1,6 @@ { "position": 0, "collapsible": true, - "collapsed": true + "collapsed": true, + "label": "Smart Contract Reference" } diff --git a/docs/docs/tutorials/tutorials/contract_tutorials/advanced/token_bridge/_category_.json b/docs/docs/tutorials/tutorials/contract_tutorials/advanced/token_bridge/_category_.json index 976a2325de0..c706a4f27b3 100644 --- a/docs/docs/tutorials/tutorials/contract_tutorials/advanced/token_bridge/_category_.json +++ b/docs/docs/tutorials/tutorials/contract_tutorials/advanced/token_bridge/_category_.json @@ -1,5 +1,6 @@ { "position": 2, "collapsible": true, - "collapsed": true + "collapsed": true, + "label": "Token Bridge" } diff --git a/docs/src/preprocess/index.js b/docs/src/preprocess/index.js index 13b90499ca7..219a83552b5 100644 --- a/docs/src/preprocess/index.js +++ b/docs/src/preprocess/index.js @@ -19,7 +19,7 @@ async function processMarkdownFilesInDir(rootDir, docsDir, regex) { contentUpdates.push(processMarkdownFilesInDir(rootDir, filepath, regex)); } else if ( stat.isFile() && - (file.endsWith(".md") || file.endsWith(".mdx")) + (file.endsWith(".md") || file.endsWith(".mdx") || file.endsWith(".json")) ) { const markdownContent = fs.readFileSync(filepath, "utf-8");