diff --git a/lib/core/Doc.js b/lib/core/Doc.js
index 4832a8a295..8a93329cb8 100644
--- a/lib/core/Doc.js
+++ b/lib/core/Doc.js
@@ -12,7 +12,8 @@ const Marked = require("./Marked.js");
class Doc extends React.Component {
render() {
- let editLink = (
+ let editLink =
+ this.props.config.editUrl &&
Edit this Doc
-
- );
+ ;
return (
diff --git a/package.json b/package.json
index 88868630f5..51b2af8767 100644
--- a/package.json
+++ b/package.json
@@ -21,7 +21,7 @@
"shelljs": "^0.7.8"
},
"name": "docusaurus",
- "version": "1.0.0-alpha.21",
+ "version": "1.0.0-alpha.22",
"bin": {
"docusaurus-start": "./lib/start-server.js",
"docusaurus-build": "./lib/build-files.js",