Commit graph

29 commits

Author SHA1 Message Date
Sébastien Lorber
c2bb03ab00
fix(v2): refactor color mode system (#3012)
* refactor color mode system to enable all possibilities

* fix destructuring bug

* colorMode validation + deprecation + minor name changes + doc

* rename method noFlashColorMode

* fix doc wording

* docs wording

* docs wording

* re-enable theme config merging/normalization + colorMode fixes

* document theme normalization

* code review changes
2020-06-30 12:21:20 +02:00
Drew Alexander
d365b7424b
docs(v2): add useThemeContext note (#2934)
* docs: add note to useThemeContext api docs

* Update example usage
2020-06-15 12:39:17 +02:00
Alexey Pyltsyn
fc161b8455
docs(v2): various improvements (#2768) 2020-05-18 11:37:53 +08:00
Ben Gubler
daafd2f0cc
feat(v2): allow activeBaseTest in NavLink (#2690)
* Update documentation, add support for activeBaseTest

* Implicit else

* Fix Regular Expression capitalization

Co-Authored-By: Alexey Pyltsyn <lex61rus@gmail.com>

* Refactor isActive to ternary function, rename activeBaseTest to activeBaseRegex

* Update website/docs/theme-classic.md

Co-Authored-By: Alexey Pyltsyn <lex61rus@gmail.com>

* Fix typo

* Update website/docs/theme-classic.md

Co-Authored-By: Alexey Pyltsyn <lex61rus@gmail.com>

* Update theme-classic.md

Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
2020-05-17 19:23:32 +08:00
Yangshun Tay
be7367b2f8
feat(v2): allow prepending of baseUrl to href in navbar and footer (#2746) 2020-05-14 11:47:28 +08:00
Alexey Pyltsyn
c0e531e5d9
feat(v2): add ability to specify CSS class for navbar item (#2660)
* feat(v2): add ability to specify CSS class for navbar item

* Fix linting issues
2020-04-27 02:21:36 +08:00
Alexey Pyltsyn
14f4ef875a
feat(v2): add ability set dark mode by default (#2597)
* feat(v2): add ability set dark mode by default

* s/forceDarkMode/defaultDarkMode

Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-04-17 19:19:55 +08:00
Yangshun Tay
3dd83be988
docs(v2): proofread docs (#2527) 2020-04-04 14:05:59 +08:00
Alexey Pyltsyn
3052e4070b
docs(v2): useThemeContext hook (#2521) 2020-04-04 01:26:14 +08:00
Yangshun Tay
f96c2b61d7
feat(v2): nav dropdown (#2487)
* feat(v2): allow nav dropdown

* docs(v2): document navbar links

* fix bug
2020-04-01 03:10:04 +08:00
Alexey Pyltsyn
0f73a1fad8
feat(v2): add announcement bar (#2330)
* feat(v2): add announcement bar

* Refactor: move to Layout

* Fixes

* Refactor to simplify

* Changes: id, styles, docs
2020-04-01 00:08:55 +08:00
Yangshun Tay
36ea74504e
docs(v2): use codeblock title syntax instead of comments (#2473) 2020-03-29 01:08:50 +08:00
Yangshun Tay
2b6e440970
chore(v2): v2.0.0 alpha.44 (#2379)
* chore: v2.0.0-alpha.44

* chore: v2.0.0-alpha.44

* update CHANGELOG
2020-03-08 23:43:40 +08:00
Alexey Pyltsyn
c1716096de
feat(v2): allow specifying custom target for logo link (#2344)
* feat(v2): allow specify custom target for logo link

* refactor: use isInternalUrl
2020-02-29 19:27:56 +08:00
Zhenchao Cai
b25eb5dd36
docs(v2): move the quotes to remark admonitions (#2313)
* docs(v2): move the quotes to remark admonitions

* Delete package-lock.json

Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-02-23 18:11:37 +08:00
Yangshun Tay
787b073bb7
docs(v2): nav links activeBasePath (#2303)
* docs(v2): Nav links activeBasePath

* rename activeBaseRoute to activeBasePath

* fixes
2020-02-21 09:44:14 +08:00
Alexey Pyltsyn
980755214b
feat(v2): allow to specify different logo for dark mode (#2261)
* feat(v2): allow to specify different logo for dark mode

* Rename darkSrc with srcDark
2020-02-01 21:02:03 +03:00
Alexey Pyltsyn
daa9a6a044
feat(v2): allow specify custom link for logo (#2253)
* feat(v2): allow specify custom link for logo

* Improve naming

* Improve naming: link -> href
2020-02-01 00:18:03 +03:00
JavaScript Joe
68035cc7e3 docs(v2): update link to available prism themes (#2218)
* fix: update link to available prism themes

* fix: update link to point to prism themes
2020-01-16 01:00:08 +08:00
Yangshun Tay
08ca95af01
docs(v2): dark mode syntax highlighting (#2153) 2019-12-29 16:40:17 +08:00
Alexey Pyltsyn
5bfa5d6579 feat(v2): hide navbar on scroll (#2055)
* feat(v2): hide navbar on scroll

* Turn on hide option

* Refactor after review
2019-12-12 04:19:37 -08:00
Yangshun Tay
4927f764e5 misc(v2): nitpicky formatting 2019-12-04 00:55:52 -08:00
endiliey
2f9a368da8 chore: fix typo 2019-11-29 10:41:19 +07:00
endiliey
2856b328a5 chore(v2): fix typo in docs, remove dead/redundant stuff 2019-11-26 16:49:58 +07:00
Endi
91b261af7a docs(v2): more examples on lifecycle apis, cleanup (#2051)
* docs(v2): more examples on lifecycle apis, cleanup

* typo
2019-11-25 10:31:57 -08:00
yangshun
29ce98c63a docs(v2): misc updates 2019-11-17 05:44:21 -08:00
Alexey Pyltsyn
9e290c9b43 feat(v2): add ability disable dark mode toggle (#1956) 2019-11-11 04:41:54 -08:00
Alexey Pyltsyn
c507028cb0
feat(v2): add ability default lang for code blocks (#1910)
* feat(v2): add ability default lang for code blocks

* Add support for CodeBlock

* changelog

* more changelog

* Add checks

* docs

* docs

* Fix changelog

* revert config

* Update theme-classic.md

* Update packages/docusaurus-theme-classic/src/theme/CodeBlock/index.js

Co-Authored-By: Endi <endiliey@gmail.com>
2019-11-05 10:36:22 +03:00
Endi
64871b76e4 fix(v2): custom searchbar should appear even if themeconfig.algolia is undefined (#1909)
* fix(v2): custom searchbar should appear even if themeconfig.algolia is undefined

* nits

* Docs docs

* inaccuracy

* changelog

* nits
2019-10-30 08:51:53 +08:00