mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-09 15:17:23 +02:00
feat(v2): new docs edit options: editCurrentVersion + editLocalizedDocs (#3949)
* editCurrentVersion initial poc * ensure edit url allows to edit localized docs * Add editLocalizedDocs option * keep editing current version in dev (more convenient)
This commit is contained in:
parent
2791ccc4cf
commit
b5c46bd1d9
13 changed files with 394 additions and 59 deletions
|
@ -35,6 +35,18 @@ module.exports = {
|
|||
* Example: 'https://github.com/facebook/docusaurus/edit/master/website/'
|
||||
*/
|
||||
editUrl: 'https://github.com/facebook/docusaurus/edit/master/website/',
|
||||
/**
|
||||
* When docs are versioned, the edit url will link to the doc
|
||||
* in current version, instead of the versioned doc.
|
||||
* Useful if you don't want users to submit doc pull-requests to older versions.
|
||||
*/
|
||||
editCurrentVersion: false,
|
||||
/**
|
||||
* When docs are localized, the edit url will target the localized doc,
|
||||
* instead of the original unlocalized doc.
|
||||
* Useful if you commit localized docs to git, instead of using a translation service.
|
||||
*/
|
||||
editLocalizedDocs: false,
|
||||
/**
|
||||
* URL route for the docs section of your site.
|
||||
* *DO NOT* include a trailing slash.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue