Skip to content

Commit

Permalink
scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
catmcgee committed Dec 31, 2024
1 parent 9c6c3e1 commit eb30ea7
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions docs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*

/docs/reference/developer_references/aztecjs
/docs/reference/developer_references/smart_contract_reference/aztec-nr
/docs/build/reference/aztecjs
/docs/build/reference/smart_contract_reference/aztec-nr
test-results
6 changes: 3 additions & 3 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const config = {
entryPoints: ["../yarn-project/circuit-types/src/interfaces/pxe.ts"],
tsconfig: "../yarn-project/circuit-types/tsconfig.json",
entryPointStrategy: "expand",
out: "reference/developer_references/aztecjs/pxe",
out: "build/reference/aztecjs/pxe",
readme: "none",
sidebar: {
categoryLabel: "Private Execution Environment (PXE)",
Expand All @@ -149,7 +149,7 @@ const config = {
],
tsconfig: "../yarn-project/aztec.js/tsconfig.json",
entryPointStrategy: "resolve",
out: "reference/developer_references/aztecjs/aztec-js",
out: "build/reference/aztecjs/aztec-js",
readme: "none",
sidebar: {
categoryLabel: "Aztec.js",
Expand All @@ -170,7 +170,7 @@ const config = {
],
tsconfig: "../yarn-project/accounts/tsconfig.json",
entryPointStrategy: "resolve",
out: "reference/developer_references/aztecjs/accounts",
out: "build/reference/aztecjs/accounts",
readme: "none",
sidebar: {
categoryLabel: "Accounts",
Expand Down
2 changes: 1 addition & 1 deletion docs/netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

[[redirects]]
from = "/reference/aztecjs/accounts"
to = "/reference/developer_references/aztecjs/accounts"
to = "/build/reference/aztecjs/accounts"

[[redirects]]
from = "/getting_started"
Expand Down
2 changes: 1 addition & 1 deletion docs/scripts/clean.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
rm -rf 'processed-docs' 'processed-docs-cache'
rm -rf 'docs/reference/developer_references/aztecjs' 'docs/reference/developer_references/smart_contract_reference/aztec-nr'
rm -rf 'docs/build/reference/aztecjs' 'docs/reference/developer_references/smart_contract_reference/aztec-nr'

docusaurus clear
6 changes: 3 additions & 3 deletions docs/scripts/move_processed.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
echo "label: \"AztecJS\"" > ./docs/reference/developer_references/aztecjs/_category_.yml
mv ./docs/reference/developer_references/aztecjs ./processed-docs/reference/developer_references/aztecjs
mv ./docs/reference/developer_references/smart_contract_reference/aztec-nr ./processed-docs/reference/developer_references/smart_contract_reference/aztec-nr
echo "label: \"AztecJS\"" > ./docs/build/reference/aztecjs/_category_.yml
mv ./docs/build/reference/aztecjs ./processed-docs/build/reference/aztecjs
mv ./docs/build/reference/smart_contract_reference/aztec-nr ./processed-docs/build/reference/smart_contract_reference/aztec-nr
2 changes: 1 addition & 1 deletion docs/src/preprocess/generate_aztecnr_reference.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ function processFiles(baseDir, outputBaseDir) {
let baseDir = path.resolve(__dirname, "../../../noir-projects/aztec-nr");
let outputBaseDir = path.resolve(
__dirname,
"../../docs/reference/developer_references/smart_contract_reference/aztec-nr"
"../../docs/build/reference/smart_contract_reference/aztec-nr"
);
console.log(outputBaseDir);
processFiles(baseDir, outputBaseDir);

0 comments on commit eb30ea7

Please sign in to comment.