mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-26 22:47:49 +02:00
Add versioning functionality
This commit is contained in:
parent
58452ea963
commit
3598dffc58
12 changed files with 568 additions and 132 deletions
|
@ -13,7 +13,7 @@ const Marked = require("./Marked.js");
|
|||
class Doc extends React.Component {
|
||||
render() {
|
||||
let editLink =
|
||||
this.props.config.editUrl &&
|
||||
!this.props.version && this.props.config.editUrl &&
|
||||
<a
|
||||
className="edit-page-link button"
|
||||
href={
|
||||
|
@ -28,7 +28,7 @@ class Doc extends React.Component {
|
|||
</a>;
|
||||
if (this.props.language != "en") {
|
||||
editLink =
|
||||
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