mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-12 16:47:26 +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 {
|
||||
render() {
|
||||
let editLink =
|
||||
!this.props.version && this.props.config.editUrl &&
|
||||
!this.props.version &&
|
||||
this.props.config.editUrl &&
|
||||
<a
|
||||
className="edit-page-link button"
|
||||
href={
|
||||
this.props.config.editUrl +
|
||||
this.props.language +
|
||||
"/" +
|
||||
this.props.source
|
||||
}
|
||||
href={this.props.config.editUrl + this.props.source}
|
||||
target="_blank"
|
||||
>
|
||||
Edit this Doc
|
||||
</a>;
|
||||
if (this.props.language != "en") {
|
||||
editLink =
|
||||
!this.props.version && this.props.config.recruitingLink &&
|
||||
!this.props.version &&
|
||||
this.props.config.recruitingLink &&
|
||||
<a
|
||||
className="edit-page-link button"
|
||||
href={this.props.config.recruitingLink + "/" + this.props.language}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue