mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-11 08:07:26 +02:00
Link to master version of doc when editing (#262)
* Ensure Edit this Doc links always point to the master source of truth, and not a particular version * Only show Edit this Doc link if editUrl has been set
This commit is contained in:
parent
80fc8169b7
commit
97612cf20b
2 changed files with 29 additions and 18 deletions
|
@ -52,6 +52,7 @@ class DocsLayout extends React.Component {
|
|||
this.props.metadata.title
|
||||
: this.props.metadata.title
|
||||
}
|
||||
version={metadata.version}
|
||||
language={metadata.language}
|
||||
/>
|
||||
<div className="docs-prevnext">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue