mirror of
https://github.com/facebook/docusaurus.git
synced 2025-04-29 18:27:56 +02:00
Allow removal of "Edit this Doc" button
This commit is contained in:
parent
d5fb69d475
commit
f622bf17d2
2 changed files with 4 additions and 4 deletions
|
@ -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">
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Add table
Reference in a new issue