Skip to content

Commit

Permalink
passing category json down to preprocessed docs
Browse files Browse the repository at this point in the history
  • Loading branch information
signorecello committed May 8, 2024
1 parent 3d6fa5b commit df60d68
Show file tree
Hide file tree
Showing 14 changed files with 27 additions and 20 deletions.
3 changes: 2 additions & 1 deletion docs/docs/aztec/_category_.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"position": 0,
"collapsible": true,
"collapsed": true
"collapsed": true,
"label": "Aztec"
}
4 changes: 2 additions & 2 deletions docs/docs/aztec/aztec/concepts/nodes_clients/_category_.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"label": "Nodes and Clients",
"position": 8,
"collapsible": true,
"collapsed": true
"collapsed": true,
"label": "Nodes and Clients"
}
4 changes: 2 additions & 2 deletions docs/docs/aztec/aztec/what_is_aztec/_category_.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"label": "What is Aztec",
"position": 0,
"collapsible": true,
"collapsed": true
"collapsed": true,
"label": "What is Aztec"
}
3 changes: 2 additions & 1 deletion docs/docs/aztec/aztec/what_is_aztec/roadmap/_category_.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"position": 3,
"collapsible": true,
"collapsed": true
"collapsed": true,
"label": "Roadmap"
}
3 changes: 2 additions & 1 deletion docs/docs/getting_started/_category_.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"position": 1,
"collapsible": true,
"collapsed": true
"collapsed": true,
"label": "Getting Started"
}
3 changes: 2 additions & 1 deletion docs/docs/guides/_category_.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"position": 2,
"collapsible": true,
"collapsed": true
"collapsed": true,
"label": "Guides"
}
4 changes: 2 additions & 2 deletions docs/docs/guides/guides/_category_.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"label": "Guides",
"position": 0,
"collapsible": true,
"collapsed": true
"collapsed": true,
"label": "Guides"
}
4 changes: 2 additions & 2 deletions docs/docs/guides/guides/js_apps/_category_.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"label": "Aztec.js",
"position": 2,
"collapsible": true,
"collapsed": true
"collapsed": true,
"label": "Aztec.js"
}
4 changes: 2 additions & 2 deletions docs/docs/guides/guides/local_env/_category_.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"label": "Development Environment",
"position": 0,
"collapsible": true,
"collapsed": true
"collapsed": true,
"label": "Development Environment"
}
4 changes: 2 additions & 2 deletions docs/docs/guides/guides/smart_contracts/_category_.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"label": "Aztec.nr",
"position": 1,
"collapsible": true,
"collapsed": true
"collapsed": true,
"label": "Aztec.nr"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"position": 0,
"collapsible": true,
"collapsed": true
"collapsed": true,
"label": "Sandbox Reference"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"position": 0,
"collapsible": true,
"collapsed": true
"collapsed": true,
"label": "Smart Contract Reference"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"position": 2,
"collapsible": true,
"collapsed": true
"collapsed": true,
"label": "Token Bridge"
}
2 changes: 1 addition & 1 deletion docs/src/preprocess/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down

0 comments on commit df60d68

Please sign in to comment.