Armano
e6261af642
refactor(v2): remove duplicated lodash dependencies and import only what needed ( #4361 )
...
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-03-09 12:15:52 +01:00
Aarón García Hervás
1fafdb0d33
fix(v2): Allow footer logo at attribute to be empty ( #3817 )
2020-11-25 13:12:45 +01:00
Alexey Pyltsyn
8f5c632cdf
refactor(v2): various dropdown improvements ( #3585 )
...
* refactor(v2): various dropdown improvements
* Remove invalid attr from markup
* Better naming
* Update types
* Fix
* Remove attr position correctly
* Test
* Add test
2020-10-16 16:41:30 +02:00
Sébastien Lorber
649882d867
feat(v2): version dropdown before/after items + move site "All Versions" link ( #3548 )
...
* add dropdownItemsAfter option + reorg a bit docusaurus site navbar
* fix isActive react warning
* Update theme-classic.md
Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
2020-10-07 19:58:00 +03:00
Shubham Kumar
0951eef2d7
refactor(v2): add useThemeConfig hook + cleanup useless theme default values ( #3394 )
...
* refactor(theme-classic): clean default or fallback values
* refactor(theme-classic): fix announcementbar undefined error
* refactor(theme-classic): fixed react hook warning error
* refactor(theme-classic): revert prism destruct
* create useThemeConfig and use it whenever possible
* validateThemeConfig => add [] as default value for almost all arrays
* fix tests
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2020-10-02 19:23:34 +02:00
Bartosz Kaszubowski
ae2c063929
feat(v2): allow to use array of files in customCss field ( #3474 )
...
* feat(v2): allow to use array of files in customCss field
* customCss array:
- fix bug (push instead of concat)
- update docs
- add theme config validation + tests
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2020-09-28 18:15:41 +02:00
Bartosz Kaszubowski
086bee287d
feat(v2): add style property to theme-classic navbar ( #3432 )
...
* feat(v2): add style property to theme-classic navbar
* revert config test change
* review changes
2020-09-11 18:03:06 +02:00
Sébastien Lorber
21852948ce
feat(v2): ability to add/override theme html metadatas ( #3406 )
...
* ability to add/override theme html metadatas
see https://github.com/facebook/docusaurus/issues/3024
* refactor/fix validateThemeConfig tests
2020-09-04 16:36:56 +02:00
Bartosz Kaszubowski
e8e16a45d3
feat(v2): add isCloseable property for theme-classic announcement bar ( #3388 )
...
* feat(v2): add `isCloseable` property for announcement bar
* correct styling for non-closeable announcement
* fix tests
2020-09-02 11:41:38 +02:00
Sébastien Lorber
a4769e3f30
fix(v2): alpha 62 doc fixes ( #3381 )
...
* deprecated nextVersionLabel option
* useActivePlugin failfast option
* remove deprecated option nextVersionLabel
* routeBasePath: '' should be forbidden
* routeBasePath: '' should be forbidden
* Docs: do not show version badge if there is only 1 version: https://github.com/facebook/docusaurus/issues/3362
* allow sidebars file to not exist: fallback to empty sidebars
https://githu.com/facebook/docusaurus/issues/3366
2020-09-01 16:31:33 +02:00
Vincent
56c04c7834
fix(v2): Allow the alt for the logo to be empty ( #3352 )
...
See
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Img#Attributes
> Setting this attribute to an empty string (alt="") indicates that
> this image is not a key part of the content (it’s decoration or a
> tracking pixel), and that non-visual browsers may omit it from
> rendering.
Since the logo is indeed decorative and redundant with the actual
project name, an empty alt is fine.
2020-08-28 12:50:42 +02:00
Teik Jun
8f0c00f3d4
fix(v2): fix theme validation for prism field and add tests ( #3210 )
...
* fix(v2): fix theme validation for prism field
* chore(v2): minor changes
* chore(v2): remove unused dependencies
2020-08-05 15:27:32 +02:00
Drew Alexander
53b28d2bb2
feat(v2): dark mode toggle customization ( #3127 )
...
* Add dark/light style fields to config
* Update yarn.lock
* Remove css content
* Add documentation
* Add icon fields to toggle component
* Add config validation fields
* Remove changes from docusaurus.config
* Add unicode documentation example
* Fix default values
* Add color mode config default
* Add lodash to theme-classic
* Change themeConfigSchema name to match other packages
* Add themeConfig color-mode tests
* Add default config merge function
* Remove unneeded object merging
* Add more documentation
2020-07-31 15:39:12 +02:00