Alexey Pyltsyn
1cecd78f25
feat(v2): add icon to external footer links ( #5092 )
2021-06-30 10:54:26 +02:00
Sébastien Lorber
e5916dc596
fix(v2): redirect from should work with trailingSlash: true ( #5093 )
2021-06-30 10:44:03 +02:00
Sébastien Lorber
a78e4f19b2
fix(v2): redirect plugin should emit redirect files with lower precedence than redirect target ( #5085 )
...
* revert old behavior of the redirect plugin
* revert old behavior of the redirect plugin
2021-06-29 19:34:55 +02:00
Alexey Pyltsyn
7fe2a9891d
fix(v2): restore previous scroll position on back button click ( #5081 )
2021-06-29 15:31:25 +02:00
Sébastien Lorber
7592982960
fix(v2): never remove trailing slash from site root like '/baseUrl/' ( #5082 )
...
* never apply trailingSlash to site root ('/baseUrl/') => only subroutes
* add deprecation comment for loadContext.baseUrl in favor of loadContext.siteConfig.baseUrl
* commit typo
* useless code
2021-06-29 15:17:23 +02:00
Taylor Reece
41b78466da
fix(v2): sitemap should respect the global trailingSlash config option. ( #5068 )
...
* Sitemap should respect the global trailingSlash config option.
* improve tests for createSitemap / trailingSlash
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-06-29 11:15:00 +02:00
dependabot[bot]
8d7c26fd32
chore(deps): bump prismjs from 1.23.0 to 1.24.0 ( #5078 )
...
Bumps [prismjs](https://github.com/PrismJS/prism ) from 1.23.0 to 1.24.0.
- [Release notes](https://github.com/PrismJS/prism/releases )
- [Changelog](https://github.com/PrismJS/prism/blob/master/CHANGELOG.md )
- [Commits](https://github.com/PrismJS/prism/compare/v1.23.0...v1.24.0 )
---
updated-dependencies:
- dependency-name: prismjs
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-29 10:26:57 +02:00
Ayush das
632b21bcf6
docs(v2): update installation docs ( #5073 )
...
* docs: update installation docs to 2.0.0beta.2
* Update website/docs/installation.md
* Update website/docs/installation.md
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2021-06-29 10:20:41 +02:00
Danny Lin
79031af16f
fix(v2): allow negative sidebar positions ( #5074 )
...
In some cases, negative sidebar positions can be useful for reversing
the sorting order with minimal maintenance overhead. For example, a docs
folder with changelogs for historical versions should be sorted in
reverse chronological order. This is easy to do for semantic version
numbers by converting them into a negative numerical representation,
e.g. 11.5.1 -> -110501.
The alternative is to make the first version start with a large position
number (e.g. 9999) and decrement it for each version. However, this
requires referring to older versions to get the current sequence number,
thus increasing maintenance overhead. It also makes the number less
intuitive and more prone to error.
Negative sidebar positions work great for this purpose, so make the
front matter validator allow them again as #4796 broke this use case.
2021-06-28 19:59:05 +02:00
Rami Yushuvaev
3fe7389ee2
docs(v2:) Divide markdown-features/code-blocks
to smaller sections ( #5061 )
...
* Divide `markdown-features/code-blocks` to smaller sections
This PR adds few more heading to split the content to small topics.
This way users like me will be able to scroll directly to the specific section, instead of reading all the documentation.
I add to read the entire section because It was not divided into sections. Not a great user experience.
* Use `<h3>` heading
2021-06-25 19:25:15 +02:00
Sébastien Lorber
4d93c894f2
chore: unstable yarn.lock ( #5067 )
...
* fix unstable yarn.lock
* remove useless typescript dep
2021-06-25 16:19:12 +02:00
bperlmutter
1d041127b1
docs(v2): correct typo ( #5066 )
2021-06-25 16:18:40 +02:00
Alexey Pyltsyn
5883e2b245
fix(v2): restore responsive menu ( #5063 )
2021-06-25 15:19:23 +02:00
Jules Sam. Randolph
0ae8a09ba5
fix(v2): fix bad @docusaurus/types Plugin type generics ( #5058 )
...
* fix(types): type `LoadedPlugin` is not generic
`LoadedPlugin` referenced line 201 is not generic, causing typescript errors on
end-user builds.
* chore(types): add typescript dev dep, tsconfig and a test script
Contributors will no longer inadvertently dump type errors since any IDE should
check types now.
* add missing plugins generic types
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-06-25 15:18:13 +02:00
Sébastien Lorber
67d31f49e8
fix(v2): fix webpack SSG plugin error thrown due to new URL() / __filename ( #5059 )
2021-06-25 11:26:36 +02:00
Sébastien Lorber
8e386e0244
chore(v2): upgrade examples to beta.2 ( #5057 )
2021-06-24 20:02:57 +02:00
Sébastien Lorber
ec2486d2c9
chore(v2): prepare v2.0.0-beta.2 release ( #5056 )
...
* prepare beta.2
* v2.0.0-beta.2
2021-06-24 19:39:37 +02:00
Sébastien Lorber
138b4c9975
fix(v2): allow undefined favicon ( #5054 )
...
* fix(v2): allow undefined favicon
* fix snapshots
2021-06-24 18:50:28 +02:00
Sébastien Lorber
05c85c7be7
refactor(v2): remove deprecated docs option excludeNextVersionDocs ( #5053 )
2021-06-24 18:41:13 +02:00
Joshua Chen
462b1cf2bc
style(v2): reduce number of ESLint warnings ( #4993 )
...
* Initial work
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* More fixes
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* Update packages/docusaurus-theme-classic/src/theme/ThemedImage/index.tsx
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
* Update packages/docusaurus-theme-bootstrap/src/theme/ThemedImage/index.tsx
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
* Fix
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* Replace versionPathPart with function
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* Prefer non-null assertions
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* Substitute for-of with forEach
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* Fill `catch` block with placeholder comment
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* Ignore local require
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* Revert global require change
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* Tighten eslint disable range
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* Make eslint ignore examples and more tolerating to templates
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* Use reduce to handle doc items sequentially
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* Revert "Use reduce to handle doc items sequentially"
This reverts commit c7525d463b
.
* Address change requests
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2021-06-24 18:12:48 +02:00
Sébastien Lorber
364051f232
feat(v2): docs version banner configuration option ( #5052 )
...
* refactor DocVersionBanner => versionMetadata prop should be forwarded instead of using "useActiveVersion" + global data
* docs version banner configuration
* add doc for versions.banner
* fix tests
* improve docs plugin option api doc
2021-06-24 18:04:16 +02:00
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