Allow removal of "Edit this Doc" button

This commit is contained in:
Frank Li 2017-07-20 15:21:20 -07:00
parent d5fb69d475
commit f622bf17d2
2 changed files with 4 additions and 4 deletions

View file

@ -12,7 +12,8 @@ const Marked = require("./Marked.js");
class Doc extends React.Component {
render() {
let editLink = (
let editLink =
this.props.config.editUrl &&
<a
className="edit-page-link button"
href={
@ -24,8 +25,7 @@ class Doc extends React.Component {
target="_blank"
>
Edit this Doc
</a>
);
</a>;
return (
<div className="post">
<header className="postHeader">

View file

@ -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",