Commit graph

1278 commits

Author SHA1 Message Date
Alexey Pyltsyn
cfeadbf824
fix(v2): prevent click on item menu with children on mobiles (#4189) 2021-02-08 16:46:40 +01:00
Alexey Pyltsyn
174b4200ee
refactor(v2): use transform instead of top position for hideable navbar (#4194)
* refactor(v2): use translateY instead of top to hide navbar

* Use translate3d instead of translateY
2021-02-08 16:13:56 +01:00
Alexey Pyltsyn
d6510b63ae
fix(v2): prepend docsearch modal to body element (#4188) 2021-02-08 15:57:03 +01:00
Vamsi Krishna Reddy Satti
5871d1b41f
fix(v2): fix broken link in warning about useThemeContext (#4183)
* Fix typo from 'dissapear' to 'disappear'

* Fix broken link
2021-02-06 23:28:16 +03:00
Alexey Pyltsyn
a6f771571b
fix(v2): make locale dropdown accessible from keyboard (#4176) 2021-02-05 16:21:05 +01:00
Alexey Pyltsyn
dbfa256a7b
refactor(v2): minor styling improvements (#4167)
* refactor(v2): minor styling improvements

* Fixes
2021-02-04 11:53:20 +01:00
Alexey Pyltsyn
d63a77d239
refactor(v2): remove delay after skip link pressed (#4169) 2021-02-04 11:32:49 +01:00
Sébastien Lorber
ab7951571e
feat(v2): Extract/translate hardcoded labels from classic theme (#4168)
* Translate theme hardcoded strings

* improve test
2021-02-03 20:06:26 +01:00
Sébastien Lorber
823d0fe3c2
fix(v2): ideal image assets should be served under ./assets (#4166) 2021-02-03 15:41:55 +01:00
Alexey Pyltsyn
d25e0f4d0f
fix(v2): fix warning and improve styling inline TOC (#4163) 2021-02-03 12:11:42 +01:00
Alexey Pyltsyn
3f6e04380f
fix(v2): make more accessible skip link (#4162) 2021-02-03 12:06:21 +01:00
Sébastien Lorber
98453ebda0
fix(v2): fix hreflang i18n SEO meta (#4160) 2021-02-03 10:07:03 +01:00
Alexey Pyltsyn
f5494af21c
fix(v2): add base url to opensearch.xml (#4154)
* fix(v2): add base url to opensearch.xml

* Apply suggestions from code review

Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>

Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2021-02-02 18:09:46 +01:00
Sébastien Lorber
3b64aa6107
fix(v2): BaseUrl issue banner insertion should be prevented if JS can load (#4155)
* restore useBannerRemover

* fix BaseUrlIssueBanner issues
2021-02-02 16:43:25 +01:00
Alexey Pyltsyn
d22039c200
chore(v2): upgrade dependencies (#4148)
* chore(v2): upgrade dependencies

* Update docs

* Revert `execa`

* Revert sitemap
2021-02-02 14:37:45 +01:00
Alexey Pyltsyn
fd17476c3d
fix(v2): avoid misuse section tag in blog posts (#4147) 2021-02-01 18:15:41 +01:00
Alexey Pyltsyn
09284187f1
fix(v2): use current color for language icon (#4146) 2021-02-01 16:24:11 +01:00
Alexey Pyltsyn
d801ce50f2
fix(v2): escape apostrophe in route paths (#4137) 2021-02-01 11:30:43 +01:00
Alexey Pyltsyn
39edfe35aa
fix(v2): fix navigation from homepage (#4136) 2021-02-01 00:29:49 +03:00
Sébastien Lorber
140bfbfd90
docs(v2): do not recommend using useBaseUrl() hook in most cases (#4126)
* doc: suggest not using useBaseUrl most of the time

* doc: suggest not using useBaseUrl most of the time
2021-01-29 19:10:38 +01:00
Sébastien Lorber
9c4bf4e138
fix(v2): baseUrl help banner should not be indexed by Google / SEO (#4125) 2021-01-29 18:00:13 +01:00
Sébastien Lorber
be7b5dca78
feat(v2): editUrl function for advanced use-cases (#4121)
* EditUrl function

* normalize blog/docs regarding the editUrl feature + editUrl function

* editUrl fn => always inject posix style relative paths, make tests more reliable
(see also https://github.com/facebook/docusaurus/issues/4124)

* fix editUrl on windows
2021-01-29 15:35:25 +01:00
Reece Dunham
15c50e2ecb
chore(v2): Update workbox to v6 (#4120) 2021-01-29 15:34:31 +01:00
Sébastien Lorber
3031c47c3b
fix(v2): navbar dropdown subitems should be translated properly(#4118) 2021-01-28 18:22:36 +01:00
Sébastien Lorber
beddecb27b
feat(v2): default canonical urls (#4109) 2021-01-28 10:16:42 +01:00
Welly
6917eb950c
feat(v2): supports string type for the Layout's keywords props (#4090)
* feat(v2): support string type for the keywords props

* Update the type definition of Layout
2021-01-27 17:42:22 +01:00
Reece Dunham
95f81d2a44
refactor(v2): Switch from inquirer to prompts (#4091)
Signed-off-by: Reece Dunham <me@rdil.rocks>
2021-01-27 16:53:43 +01:00
Arthur
b49ff32417
style(v2): add className to tab container (#4086)
* Add: className to tab container

* Update: single dash
2021-01-27 16:18:58 +01:00
LittleboyHarry
22e231904d
feat(v2): improve templates, use JSDoc type annotation, improve docusaurus.config.js autocompletion (#4098)
Co-authored-by: LittleboyHarry <LittleboyHarry@users.noreply.github.com>
2021-01-27 15:34:12 +01:00
Sébastien Lorber
869ebe7b53
fix(v2): fix/enhance minor i18n issues reported (#4092)
* fix comment

* allow to pass custom classname in navbar items

* Add IconLanguage comp to dropdown

* do not trim htmlLang

* Add initial hreflang SEO support

* doc hreflang
2021-01-22 21:26:42 +01:00
Reece Dunham
a36abd8a84
chore(v2): Update webpack-related dependencies, pre-work to migrate to Webpack 5 (#4081)
* Rebase

* (Post)CSS-Loader fixes

Signed-off-by: Reece Dunham <me@rdil.rocks>

* HMM, mini-css-extract-plugin is being naughty

* Restore HMR
2021-01-21 17:23:12 +01:00
Sergio Moreno
d6d30a39fc
fix(v2): chokidar reloading debounced (#4080) 2021-01-21 11:58:44 +01:00
Reece Dunham
ca6b5c944f
chore(v2): Update a few dependencies (#4066)
* fix(v2): Update a few dependencies

* fix
2021-01-20 13:42:07 +01:00
Sébastien Lorber
a8ee7fd3e8
docs(v2): i18n doc + polish (#4014)
* add some initial i18n doc

* i18n doc progress

* i18n tutorial progress

* i18n tutorial progress

* polish Crowdin docs

* i18n sidebar in guides

* polish crowdin doc

* update Crowdin doc a bit

* fix annoying relative link to global site resource in template (breaks i18n tutorial)

* template: use simpler export for homepage

* add markdown page example

* rename mdx.md to interactiveDoc.mdx

* update bootstrap/facebook templates too

* sync init template package scripts

* add slug frontmatter doc

* improve i18n doc

* complete i18n doc

* temporarily enable the localeDropdown

* doc typo

* improve the i18n doc

* Add Git i18n doc

* add missing "--" for npm run options (unfortunately they don't get stripped by npm2yarn, and are required foor npm)

* improve a bit the Crowdin doc
2021-01-19 17:26:31 +01:00
Sébastien Lorber
0a75ed5d49
docs(v1): version page should recommend v2 (bis) (#4049)
* Update siteConfig.js

* Update siteConfig.js

* update the versions page

* update the versions page

* Update website-1.x/pages/en/versions.js

Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>

* update the versions page

* update versions page

* update versions page

Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2021-01-14 17:58:42 +01:00
Reece Dunham
0252d01ebb
docs(v2): Add READMEs to v2 packages (#4034)
* docs(v2): Add READMEs to v2 packages

Signed-off-by: Reece Dunham <me@rdil.rocks>

* Update packages/docusaurus-remark-plugin-npm2yarn/package.json

* Update packages/docusaurus/README.md

* Update packages/docusaurus-plugin-sitemap/README.md

Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2021-01-14 17:16:26 +01:00
Reece Dunham
66cc7364cd
feat(v2): Allow plugins to consume webpack stats (#4021)
* refactor(v2): Allow plugins to consume webpack stats

Signed-off-by: Reece Dunham <me@rdil.rocks>

* Warn level only

* Fix issue

* Revert start.ts change
2021-01-11 15:34:42 +01:00
Reece Dunham
a406a3c9aa
chore(v2): docusaurus-init: switch from inquirer to prompts (#4012)
Signed-off-by: Reece Dunham <me@rdil.rocks>
2021-01-11 15:33:40 +01:00
Sean Campbell
2ba55b0f19
fix(v2): fix accessibility issue with IconArrow (#4011) 2021-01-10 14:09:54 +08:00
Joel Marcey
827de9a840
feat: add new policy links to Docusaurus site and FB template (#4019) 2021-01-10 14:07:59 +08:00
Sébastien Lorber
c4cbe8ec72
chore(v2): prettier fixes (#4005) 2021-01-06 17:07:34 +01:00
Sean Campbell
5dfa665281
feat(v2): themed logo in footer (#3993)
* feat: attempt 1 at themedlogo in footer

* Add srcDark to website for temp debug

* typo fix

* Got it now! except for centering

* style: centered new themed image logo

* style: change ThemedImage styleing to center footer logo

* style: Change ThemeImage Style to initial

This was my mistake.

Removed temp `srcDark` footer logo
2021-01-06 16:10:44 +01:00
Nathan Bosscher
8a9dfcf96c
fix(v2): Fix double trailingSlash in sitemap.xml (#4004)
When `trailingSlash` option is enabled, routes that already end in a `/` are shown with double slash at the end.
2021-01-06 15:44:22 +01:00
Kumar Aditya
f48d435ce4
feat(v2): Cache hashed assets to dedicated folders (#3998) 2021-01-05 16:31:27 +01:00
Sébastien Lorber
d2d2872646
chore(v2): fix date-sensitive test fixture (#3988)
Co-authored-by: 9oelM <hj923@hotmail.com>
2021-01-04 16:50:56 +01:00
Kumar Aditya
0bb5e547b1
feat(v2): skip dependency install on docusaurus init (#3986)
* fix: #3450

Signed-off-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>

* test: fix failing test

Signed-off-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2021-01-04 16:17:06 +01:00
Joel M
869e118e4f
feat(v2): better error message for invalid plugin config (#3979)
* test(v2): improve tests on validating plugins

* fix(v2): make schema for plugins stricter

* fix(v2): emit error if valid type of plugin is not found (#3934)
2020-12-31 15:33:24 +01:00
Sébastien Lorber
1e1860681b
fix(v2): fix multi-instance mdx loaders not sandboxed correctly (#3970)
* another attempt to fix the multi-instance conflicts

* try to fix windows build

* cleanup + improve comment
2020-12-30 11:18:51 +01:00
Sébastien Lorber
9fdac1a0dc
fix(v2): fix blog only contextual search (#3968) 2020-12-29 15:59:56 +01:00
Apurva Ojas
5944226eb4
fix(v2): fix svg loader for CSS files (#3965)
* bug(v2): fix svg loader for styles re #3964

* ensure we only use SVGR loader in source code that can use React (ie not in CSS files)

* fix test

Co-authored-by: slorber <lorber.sebastien@gmail.com>
2020-12-29 14:47:57 +01:00