docusaurus/packages/docusaurus-plugin-content-docs
Sébastien Lorber 4130f1a195
feat(v2): persist docs preferred version (#3543)
* persist docs preferred version

* add proper implementation for useDocsPreferredVersion

* add proper implementation for useDocsPreferredVersion

* useDocsPreferredVersion => make localstorage read only after mount

* why @docusaurus/constants can't work?

* fix weird TS issue when not duplicating constants

* add basic @docusaurus/constants doc

* attempt to fix docs-only mode where we should not call useDocs hooks

* attempt to fix docs-only mode where we should not call useDocs hooks

* fix children

* encapsulate hacky isDocsPluginEnabled in docsUtils

* use same priority order for all navbar items: activeVersion ?? preferredVersion ?? latestVersion
2020-10-12 18:56:24 +02:00
..
src feat(v2): persist docs preferred version (#3543) 2020-10-12 18:56:24 +02:00
package.json chore(v2): prepare v2.0.0.alpha-65 release (#3525) 2020-10-02 17:09:16 +03:00
tsconfig.json misc(v2): remove legacy from docs 2019-10-10 19:45:50 -07:00
types.d.ts fix(v2): use remark-admonitions separately in each plugin instead of in preset only (#2642) 2020-04-24 12:18:54 +08:00