Commit graph

1298 commits

Author SHA1 Message Date
Alexey Pyltsyn
094b51390e
fix(v2): remove PostCSS plugin for combine duplicated selectors (#4240) 2021-02-18 15:45:22 +01:00
Alexey Pyltsyn
1ec2f04108
feat(v2): introduce Seo component for internal usage (#4243) 2021-02-18 15:38:55 +01:00
Alexey Pyltsyn
f13448d5e1
chore(v2): upgrade dependencies + require Node 12 (#4223)
* chore(v2): upgrade dependencies

* Set minimum Node.js version to 12.13

* Fix test

* Upgrade copy-text-to-clipboard

* Bump Node versions

* Update .nvmrc

* mark cacheTime as forbidded field

* Downgrade jest to v25.2.7

* Increase Node version for Windows CI

* Test fix

* Attempt to fix Windows CI

* Downgrade execa

* fix async test errors

* Upgrade execa

Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-02-18 15:12:42 +01:00
Alexey Pyltsyn
02f7722f2e
fix(v2): make doc container full width when hidden sidebar (#4247) 2021-02-18 15:06:04 +01:00
Alexey Pyltsyn
9bd65ddea3
refactor(v2): add Russian translation for classic theme (#4246) 2021-02-18 15:03:02 +03:00
Alexey Pyltsyn
2df5a3bd5d
refactor(v2): use Link component for external links (#4242) 2021-02-18 12:35:29 +01:00
Alexey Pyltsyn
936d6620cf
fix(v2): avoid horizontal scrolling when long lines of code (#4241)
* fix: avoid horizontal scrolling when long lines of code

* Simplify solution
2021-02-18 11:56:11 +01:00
Alexey Pyltsyn
08fa318599
refactor(v2): add more translatable strings (#4219)
* refactor(v2): add more translatable strings

* Apply suggestions from code review

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

* Fixes

* Updates

* Localize direct link to heading

* typo + add french translations

Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-02-18 11:29:51 +01:00
Alexey Pyltsyn
75228c4b8d
refactor(v2): clean-ups and fixes (#4244) 2021-02-18 10:27:39 +01:00
Sébastien Lorber
ae988d0eb9
feat(v2): editUrl functions should receive md doc permalink (#4232) 2021-02-17 11:48:33 +01:00
Alexey Pyltsyn
175d9c3c8e
feat(v2): support/use React v17 by default (#4218)
* chore(v2): allow React v17 as peer dependency

* minor React 17 changes

* Revert examples

* Possible fix

* Use @docusaurus/react-loadable fork

* add back react-loadable to please eslint/ts/linters, even if it's unused in practice

* missing dependency bump

* move enzyme dependencies to docusaurus v1

Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-02-12 17:04:45 +01:00
Sébastien Lorber
6a94ad989c
feat(v2): Add i18n default code translation bundles (#4215)
* Add default code translation bundles

* fix tests
2021-02-12 11:35:09 +01:00
Sébastien Lorber
780afe5278
fix(v2): typo in resolve.roots (#4212) 2021-02-10 11:48:41 +01:00
Alexey Pyltsyn
0ac34b75c5
feat(v2): add support for RTL direction (#4140)
* feat(v2): add support for RTL

* Move to i18n config

* Move direction to localeConfigs

* Create RTL styles for Docusaurus styles (via new hook)

* update infima to alpha 19

* fix minor type error

* Fix build

* Cleanup

* polish RTL support

* polish RTL support

* revert english rtl dir

* minor RTL fix

* minor doc updates

Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-02-10 10:52:26 +01:00
Alexey Pyltsyn
2fb642d9ee
feat(v2): allow extend PostCSS config (#4185)
* feat(v2): allow extend PostCSS config

* polish the configurePostCss system

Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-02-09 20:02:54 +01:00
Alexey Pyltsyn
b3b658f687
feat(v2): allow to change location of search bar (#4199)
* feat(v2): allow to change location of search bar

* add SearchBar swizzle comment

* quickfix for NavbarItem theme config

* typing quickfix

* doc typo

Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-02-09 16:31:52 +01:00
Sébastien Lorber
2a12869fc0
feat(v2): add fonts loaders + webpack resolve.roots (#4198)
see https://github.com/webpack-contrib/css-loader/issues/1256
2021-02-09 15:33:13 +01:00
Alexey Pyltsyn
74a58efe16
fix(v2): various minor bugs with location hash (#4200)
* fix(v2): various minor bugs with location hash

* Fix for disabled hideScroll
2021-02-09 15:25:33 +01:00
Alexey Pyltsyn
00c1e8d852
refactor(v2): update tabs to follow WAI-ARIA (#4193) 2021-02-08 18:46:50 +01:00
Alexey Pyltsyn
fc071b0c2f
fix(v2): restore hamburger menu (#4195) 2021-02-08 17:19:44 +01:00
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