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