docusaurus/website/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
..
api feat(v2): site client modules (#3545) 2020-10-07 14:44:14 +03:00
assets refactor(v2): async md image transformer + pathname protocol as an escape hatch (#3087) 2020-07-21 17:45:06 +02:00
guides docs: various fixes and improvements (#3546) 2020-10-07 12:39:47 +02:00
blog.md feat(v2): add option for blog meta title #3571 2020-10-12 13:23:54 +02:00
cli.md docs: various fixes and improvements (#3546) 2020-10-07 12:39:47 +02:00
configuration.md feat(v2): allow to use array of files in customCss field (#3474) 2020-09-28 18:15:41 +02:00
contributing.md docs(v2): add trailing slash to external links (#2801) 2020-05-24 19:46:23 +08:00
deployment.md docs(v2): deployment, add required Github token scope infos (#3565) 2020-10-12 12:44:14 +02:00
design-principles.md chore(v2): v2.0.0 alpha.44 (#2379) 2020-03-08 23:43:40 +08:00
docs.md fix(v2): deprecate docs homePageId in favor of frontmatter "slug: /" (#3228) 2020-08-06 18:31:50 +02:00
docusaurus-core.md feat(v2): persist docs preferred version (#3543) 2020-10-12 18:56:24 +02:00
installation.md feat(v2): bootstrap theme, preset, template, CI previews (#2981) 2020-08-17 20:18:37 +02:00
introduction.md docs: various fixes and improvements (#3546) 2020-10-07 12:39:47 +02:00
lifecycle-apis.md feat(v2): site client modules (#3545) 2020-10-07 14:44:14 +03:00
markdown-features.mdx docs: various fixes and improvements (#3546) 2020-10-07 12:39:47 +02:00
presets.md feat(v2): allow to use array of files in customCss field (#3474) 2020-09-28 18:15:41 +02:00
search.md fix(v2): absolute Links should be automatically prefixed by baseurl (#3143) 2020-07-28 19:40:34 +02:00
static-assets.md docs(v2): make .nojekyll warning more obvious (#2887) 2020-06-05 10:22:06 +08:00
styling-layout.md feat(v2): allow to use array of files in customCss field (#3474) 2020-09-28 18:15:41 +02:00
theme-bootstrap.md feat(v2): bootstrap theme, preset, template, CI previews (#2981) 2020-08-17 20:18:37 +02:00
theme-classic.md feat(v2): version dropdown before/after items + move site "All Versions" link (#3548) 2020-10-07 19:58:00 +03:00
typescript-support.md chore(v2): tighten up the TypeScript onboarding (#3244) 2020-08-17 18:03:21 +02:00
using-plugins.md feat(v2): add option for blog meta title #3571 2020-10-12 13:23:54 +02:00
using-themes.md docs: various fixes and improvements (#3546) 2020-10-07 12:39:47 +02:00
versioning.md feat(v2): docs version configuration: lastVersion, version.{path,label} (#3357) 2020-08-28 18:37:49 +02:00