I recently used Docusaurus V2.0 to write product documentation and noticed that every generated page included an “Edit this page” link in the lower-left corner. Since the final docs were meant for customers, that edit link was not really necessary.
Disable globally
If you want to disable the link everywhere, edit docusaurus.config.js and set editUrl to undefined inside the docs preset configuration:
1 | presets: [ |
Disable for selected pages
If you only want to disable the link for certain pages, set custom_edit_url to null in the page front matter:
1 | --- |