Skip to content

Commit

Permalink
rm example
Browse files Browse the repository at this point in the history
  • Loading branch information
iAmMichaelConnor committed Aug 7, 2023
1 parent 63a4ef2 commit 763cea4
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/preprocess/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.`
);
}
}
Expand Down

0 comments on commit 763cea4

Please sign in to comment.