mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-30 16:37:56 +02:00
Fix document edit link
This commit is contained in:
parent
485b472b5c
commit
6c2b29fd87
1 changed files with 5 additions and 8 deletions
|
@ -13,22 +13,19 @@ const Marked = require("./Marked.js");
|
||||||
class Doc extends React.Component {
|
class Doc extends React.Component {
|
||||||
render() {
|
render() {
|
||||||
let editLink =
|
let editLink =
|
||||||
!this.props.version && this.props.config.editUrl &&
|
!this.props.version &&
|
||||||
|
this.props.config.editUrl &&
|
||||||
<a
|
<a
|
||||||
className="edit-page-link button"
|
className="edit-page-link button"
|
||||||
href={
|
href={this.props.config.editUrl + this.props.source}
|
||||||
this.props.config.editUrl +
|
|
||||||
this.props.language +
|
|
||||||
"/" +
|
|
||||||
this.props.source
|
|
||||||
}
|
|
||||||
target="_blank"
|
target="_blank"
|
||||||
>
|
>
|
||||||
Edit this Doc
|
Edit this Doc
|
||||||
</a>;
|
</a>;
|
||||||
if (this.props.language != "en") {
|
if (this.props.language != "en") {
|
||||||
editLink =
|
editLink =
|
||||||
!this.props.version && this.props.config.recruitingLink &&
|
!this.props.version &&
|
||||||
|
this.props.config.recruitingLink &&
|
||||||
<a
|
<a
|
||||||
className="edit-page-link button"
|
className="edit-page-link button"
|
||||||
href={this.props.config.recruitingLink + "/" + this.props.language}
|
href={this.props.config.recruitingLink + "/" + this.props.language}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue