From f622bf17d2f2d82f776ad0a75f24554f05b01f0b Mon Sep 17 00:00:00 2001 From: Frank Li Date: Thu, 20 Jul 2017 15:21:20 -0700 Subject: [PATCH] Allow removal of "Edit this Doc" button --- lib/core/Doc.js | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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",