Commit graph

4109 commits

Author SHA1 Message Date
Felipe Santos
f47826297c
fix(v2): read last update from inner git repositories (#5048) 2021-06-24 15:05:22 +02:00
Alexey Pyltsyn
aa79387e12
fix(v2): add shadow to skip link on hover only (#5050) 2021-06-24 15:02:44 +02:00
Sébastien Lorber
99270dbab2
fix(v2): fix Webpack persistent caching (evict on swizzle/alias/config change) (#5047)
* webpack upgrade

* refactor docusaurus-utils hash fns

* Fix webpack cache eviction problems on config/aliases/swizzle changes

* Move/Rename InitPlugin type

* fix TS typos

* Add tests for webpack aliases

* fix windows tests
2021-06-24 12:56:56 +02:00
Sébastien Lorber
9916a0b4a4
fix(v2): Fix announcementBar layout shifts (#5040)
* Fix announcementBar layout shift

* useAnnouncementBar should return correct state after hydration

* refactor announcementBar => move utils to theme-common

* restore previous announcementBar

* typo
2021-06-24 11:35:35 +02:00
Rami Yushuvaev
814455f88e
docs(v2): Fix Gatsby theme name for docs site - Docz (#5049) 2021-06-24 11:03:04 +02:00
Sébastien Lorber
7e55aa10a6
fix(v2): fix some docs container/sidebar layout issues (#5035) 2021-06-23 12:32:36 +02:00
Sébastien Lorber
119c6d143e
feat(v2): plugins injectHtmlTags + configureWebpack should receive content loaded (#5037)
* more lifecycles should receive plugin loaded content

* refactor docs/blog plugins to use newly injected loaded plugin content instead of a mutable variable

* update lifecycle docs

* update lifecycle docs

* fix failing tests
2021-06-22 17:36:51 +02:00
Sébastien Lorber
4e88ea0a1a
fix(v2): dev css modules classnames should include filename (#5034) 2021-06-22 14:51:41 +02:00
Alexey Pyltsyn
8bda3b2dbf
fix(v2): ignore hash changes in useChangeRoute hook (#5023)
* fix(v2): ignore hash changes in useChangeRoute hook

* refactor and introduce useLocationChange hook

Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-06-22 12:41:58 +02:00
Sébastien Lorber
41eaa690ee
docs(v2): GH pages: recommend using trailingSlash (#5033) 2021-06-22 11:25:34 +02:00
Sébastien Lorber
f20599bb54
fix(v2): less strict blog/docs uri frontmatter validation (#5032) 2021-06-22 10:42:06 +02:00
Eshan Tripathi
425eccc5df
docs(v2): typo in deployment.mdx(#5030)
Corrected a minor grammatical error
2021-06-22 10:31:11 +02:00
ZhengYuan Loo
ac8b462729
chore: remove badge for v1 tests (#5017) 2021-06-21 18:42:41 +02:00
Jules Sam. Randolph
53f6ee543d
docs(v2): Add React Native Render HTML site to showcase page (#5022) 2021-06-21 18:27:45 +02:00
Tomasz Papiernik
a865eb50b9
docs(v2): Add Buddy to deployment doc (#5027) 2021-06-21 18:15:01 +02:00
Teik Jun
c96c3b5c39
docs(v2): fix incorrect anchor links in website (#5021)
* docs: fix anchor links for docusaurus write-translations

* docs: fix anchor links for docusaurus serve
2021-06-20 22:16:17 +03:00
Manuel Meurer
9fdbd48279
fix(v2): add missing quote in build command output (#5016) 2021-06-19 23:40:12 +03:00
Sébastien Lorber
c63295a253
docs(v2): wrap mdx usage in mdx-code-block (#5007) 2021-06-18 17:59:51 +02:00
Sébastien Lorber
871e090ed8
chore: add archived versions system + archive alpha.73-75 (#5005) 2021-06-18 17:27:13 +02:00
Sébastien Lorber
8d8e5b67e8
chore(v2): prepare v2.0.0-beta.1 release (#5004)
* beta.1

* v2.0.0-beta.1
2021-06-18 16:54:46 +02:00
Alexey Pyltsyn
7dc9fe839b
chore(v2): update infima to alpha 26 (#5001) 2021-06-18 15:03:51 +02:00
Alexey Pyltsyn
0e652730d4
refactor(v2): reduce top padding in doc content container (#4995) 2021-06-18 12:21:45 +02:00
Sébastien Lorber
ba65450571
fix(v2): fix theme array deduplication bug (#5000) 2021-06-18 11:53:11 +02:00
Sébastien Lorber
fb172dc4e6
misc: more issue template improvements (#4994) 2021-06-17 12:04:31 +02:00
Sébastien Lorber
1b0acc5547
refactor(v2): blog/docs: add more context in error messages (#4989)
* refactor(v2): blog/docs: add more context in error messages

* more error handling
2021-06-16 20:16:55 +02:00
Sébastien Lorber
b54ec72389
fix(v2): redirect plugin: use siteConfig.trailingSlash (#4988) 2021-06-16 19:04:28 +02:00
Joshua Chen
80b6d9728e
fix(v2): always use UTC when dealing with blog dates (#4983)
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
2021-06-16 18:59:44 +02:00
Sébastien Lorber
59f78f9084
docs(v2): document canary releases (#4987) 2021-06-16 16:11:41 +02:00
Alexey Pyltsyn
0bbbfb641b
refactor(v2): readjust footer of blog item (#4918) 2021-06-16 16:09:18 +02:00
Sébastien Lorber
4a6de5cf7a
fix(v2): better UX for docsVersionDropdown on mobile when there's a single version, fixes #4932 (#4986) 2021-06-16 14:57:01 +02:00
Sébastien Lorber
aa176274be
fix(v2): navbar doc item should allow older versions to not contain the target doc, as long as the lastVersion contains it (#4985) 2021-06-16 13:18:53 +02:00
Sébastien Lorber
32e76f1cc0
feat(v2): add docs pagination_label frontmatter (#4982)
* feat(v2): add docs pagination_label frontmatter

* feat(v2): add docs pagination_label frontmatter

* feat(v2): add docs pagination_label frontmatter
2021-06-16 12:03:46 +02:00
Alexey Pyltsyn
41d9288e3d
refactor(v2): cleanup console output (#4979)
* refactor(v2): cleanup console output

* fix jest issue

Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-06-16 11:37:28 +02:00
Alexey Pyltsyn
8501db78a1
fix(v2): make proper data type for prependBaseUrlToHref field (#4980) 2021-06-16 11:06:25 +02:00
Alexey Pyltsyn
d7e4e422a2
docs(v2): minor tweaks (#4981) 2021-06-16 11:04:40 +02:00
Alexey Pyltsyn
bfd33dc63a
refactor(v2): minor cleanups (#4959)
* refactor(v2): minor cleanups

* Fixes
2021-06-16 10:59:50 +02:00
Joshua Chen
af3640dca2
docs(v2): replace diff codeblocks with line highlight (#4973)
* Replace `diff` codeblocks with line highlight

Signed-off-by: Josh-Cena <sidachen2003@gmail.com>

* Add line highlight
2021-06-16 10:29:05 +02:00
Lucas Correia
34411e12e5
fix(v2): truncate docuhash return value in order to avoid ERRNAMETOOLONG error (#4899)
* fix: truncate docuhash return value in order to avoid ERRNAMETOOLONG error

* chore: add deep file path test page to website

* refactor: reorganize docuHash/pathUtils code and tests

* chore: git support longpaths on v2 windows tests workflow

Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-06-15 18:39:06 +02:00
Joshua Chen
3d95a3e6b1
docs(v2): add documentation about importing code files (#4974)
* Add documentation about importing code files

Signed-off-by: Josh-Cena <sidachen2003@gmail.com>

* Add warning about breaking API change

Signed-off-by: Josh-Cena <sidachen2003@gmail.com>

* Update website/docs/guides/markdown-features/markdown-features-react.mdx

Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2021-06-15 18:38:28 +02:00
Sébastien Lorber
9fe79caadc
polish(v2): url-subpath config validation warning (#4977) 2021-06-15 18:18:12 +02:00
Alexey Pyltsyn
dfe32dac9e
fix(v2): improve accessibility of code blocks (#4943) 2021-06-15 16:28:41 +02:00
Alexey Pyltsyn
52f19e15f0
refactor(v2): remove extra padding from doc item container (#4945) 2021-06-15 16:15:54 +02:00
Sébastien Lorber
9efa550cd5
docs(v2): mention to install the algolia package in search doc (#4976) 2021-06-15 16:14:03 +02:00
Alexey Pyltsyn
208c089835
fix(v2): respect base url in RSS feeds (#4962) 2021-06-15 15:33:41 +02:00
Alexey Pyltsyn
57cf20933e
feat(v2): add icon to external navbar links (#4949)
* feat(v2): add icon to external navbar links

* use isInternalUrl

* Remove demo link

Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-06-15 14:45:53 +02:00
Alexey Pyltsyn
ace285b3b5
fix(v2): avoid duplicated imports in npm2yarn plugin (#4964)
* fix(v2): avoid duplicated imports in npm2yarn plugin

* Better testing
2021-06-15 14:43:23 +02:00
Alexey Pyltsyn
c8b9061f6c
refactor(v2): improve semantic doc sidebar markup (#4940)
* refactor(v2): improve semantic doc sidebar markup

* Fixes
2021-06-15 12:45:29 +02:00
Joshua Chen
e2acda64f8
feat(v2): add code block theming in init template (#4968)
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
2021-06-15 12:23:55 +02:00
Joshua Chen
02b512c2cf
docs(v2): add documentation about importing markdown (#4958)
* Add documentation about importing markdown

Signed-off-by: Josh-Cena <sidachen2003@gmail.com>

* Update website/docs/guides/markdown-features/markdown-features-react.mdx

* Run prettier

Signed-off-by: Josh-Cena <sidachen2003@gmail.com>

Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2021-06-15 12:20:53 +02:00
Alexey Pyltsyn
e25c0e7d3f
refactor(v2): include path in error about non-existent ids (#4969) 2021-06-15 12:06:48 +02:00