mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-02 03:37:48 +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 {
|
class Doc extends React.Component {
|
||||||
render() {
|
render() {
|
||||||
let editLink = (
|
let editLink =
|
||||||
|
this.props.config.editUrl &&
|
||||||
<a
|
<a
|
||||||
className="edit-page-link button"
|
className="edit-page-link button"
|
||||||
href={
|
href={
|
||||||
|
@ -24,8 +25,7 @@ class Doc extends React.Component {
|
||||||
target="_blank"
|
target="_blank"
|
||||||
>
|
>
|
||||||
Edit this Doc
|
Edit this Doc
|
||||||
</a>
|
</a>;
|
||||||
);
|
|
||||||
return (
|
return (
|
||||||
<div className="post">
|
<div className="post">
|
||||||
<header className="postHeader">
|
<header className="postHeader">
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
"shelljs": "^0.7.8"
|
"shelljs": "^0.7.8"
|
||||||
},
|
},
|
||||||
"name": "docusaurus",
|
"name": "docusaurus",
|
||||||
"version": "1.0.0-alpha.21",
|
"version": "1.0.0-alpha.22",
|
||||||
"bin": {
|
"bin": {
|
||||||
"docusaurus-start": "./lib/start-server.js",
|
"docusaurus-start": "./lib/start-server.js",
|
||||||
"docusaurus-build": "./lib/build-files.js",
|
"docusaurus-build": "./lib/build-files.js",
|
||||||
|
|
Loading…
Add table
Reference in a new issue