From 763cea4f82b4ca053bd80111ecb7a439ff545a7d Mon Sep 17 00:00:00 2001 From: iAmMichaelConnor Date: Mon, 7 Aug 2023 21:40:51 +0000 Subject: [PATCH] rm example --- docs/src/preprocess/index.js | 2 +- .../Nargo.toml | 0 .../src/main.nr | 0 .../src/storage.nr | 0 4 files changed, 1 insertion(+), 1 deletion(-) rename yarn-project/noir-contracts/src/contracts/{example_public_state_increment_contract => example_public_state_increment_BROKE}/Nargo.toml (100%) rename yarn-project/noir-contracts/src/contracts/{example_public_state_increment_contract => example_public_state_increment_BROKE}/src/main.nr (100%) rename yarn-project/noir-contracts/src/contracts/{example_public_state_increment_contract => example_public_state_increment_BROKE}/src/storage.nr (100%) diff --git a/docs/src/preprocess/index.js b/docs/src/preprocess/index.js index cb8c36933af4..c7ce25e643de 100644 --- a/docs/src/preprocess/index.js +++ b/docs/src/preprocess/index.js @@ -287,7 +287,7 @@ async function writeProcessedFiles(docsDir, destDir, cachedDestDir, content) { const cachedFileContent = fs.readFileSync(cachedDestFilePath, "utf-8"); if (existingFileContent !== cachedFileContent) { throw new Error( - `It looks like you might have accidentally edited files in the 'processed-docs/' dir instead of the 'docs/' dir (because there's a discrepancy between 'preprocessed-docs' and 'preprocessed-docs-cache', but they should always be the same unless they're tampered-with).\n\nWe don't want you to accidentally overwrite your work.\n\nCopy your work to the 'docs/' dir, and revert your 'processed-docs/' changes.\n\nI.e. copy from here: ${destFilePath}\n\nto here: ${content.filepath}\n\nIf this error's safety assumption is wrong, and you'd like to proceed with building, please delete the cached file ${cachedDestFilePath} and rerun the build.\n\n` + `It looks like you might have accidentally edited files in the 'processed-docs/' dir instead of the 'docs/' dir (because there's a discrepancy between 'preprocessed-docs' and 'preprocessed-docs-cache', but they should always be the same unless they're tampered-with).\n\nWe don't want you to accidentally overwrite your work.\n\nCopy your work to the 'docs/' dir, and revert your 'processed-docs/' changes.\n\nI.e. copy from here: ${destFilePath}\n\nto here: ${content.filepath}\n\nIf this error's safety assumption is wrong, and you'd like to proceed with building, please delete the cached file ${cachedDestFilePath} and rerun the build.\n\nAnd if you've not made any changes at all to the docs and you've just pulled master and are wondering what is going on, you might want to run \`yarn clear\` from this docs dir.` ); } } diff --git a/yarn-project/noir-contracts/src/contracts/example_public_state_increment_contract/Nargo.toml b/yarn-project/noir-contracts/src/contracts/example_public_state_increment_BROKE/Nargo.toml similarity index 100% rename from yarn-project/noir-contracts/src/contracts/example_public_state_increment_contract/Nargo.toml rename to yarn-project/noir-contracts/src/contracts/example_public_state_increment_BROKE/Nargo.toml diff --git a/yarn-project/noir-contracts/src/contracts/example_public_state_increment_contract/src/main.nr b/yarn-project/noir-contracts/src/contracts/example_public_state_increment_BROKE/src/main.nr similarity index 100% rename from yarn-project/noir-contracts/src/contracts/example_public_state_increment_contract/src/main.nr rename to yarn-project/noir-contracts/src/contracts/example_public_state_increment_BROKE/src/main.nr diff --git a/yarn-project/noir-contracts/src/contracts/example_public_state_increment_contract/src/storage.nr b/yarn-project/noir-contracts/src/contracts/example_public_state_increment_BROKE/src/storage.nr similarity index 100% rename from yarn-project/noir-contracts/src/contracts/example_public_state_increment_contract/src/storage.nr rename to yarn-project/noir-contracts/src/contracts/example_public_state_increment_BROKE/src/storage.nr