Commit graph

3486 commits

Author SHA1 Message Date
Armano
f12e8b596d
perf(v2): reduce amount of navbar renders while scrolling (#4473) 2021-03-22 19:32:11 +01:00
Arijit Kundu
af840b7f85
docs(v2, v1): fixed typos (#4479) 2021-03-22 18:00:32 +01:00
aehrea
3c165c3b89
docs(v2): fix grammar and improve wording (#4481)
- resolve grammar issue in Setup heading and rephrase to (subjectively) more clear wording
- more consistent wording in first line of Versioned paths heading
2021-03-22 17:57:11 +01:00
Guillaume Claret
bc7c06ee37
chore(v2): fix typo in classic init template (#4488) 2021-03-22 00:26:31 +03:00
Arijit Kundu
be6ef076f0
docs(v2): corrected the use of delimiters (#4478) 2021-03-21 12:23:08 +03:00
Arijit Kundu
9bdb9eb630
docs(v2): fixed broken link in sidebar documentation (#4472) 2021-03-19 22:29:03 +03:00
Sébastien Lorber
acc92461b0
chore: fix GH actions lint problem matchers issue in PR (#4471) 2021-03-19 18:53:46 +01:00
Sébastien Lorber
dd5e5098b8
docs(v2): Add missing i18n docs: API lifecycles + Crowdin migration guide (#4470)
* Add the missing i18n docs: Crowdin migration + i18n lifecycle APIs

* fix heading ids

* fix doc typo
2021-03-19 18:19:30 +01:00
Armano
80e40c36e5
fix(v2): select correct tab when items are incorrectly ordered (#4468) 2021-03-19 18:12:58 +01:00
Armano
61548d3995
refactor(v2): add missing types to theme-classic useTheme (#4467) 2021-03-19 14:31:38 +01:00
Sébastien Lorber
9e881b46c8
fix(v2): i18n fixes (#4466) 2021-03-19 14:23:31 +01:00
Armano
357ea7d836
chore(v2): migrate babel-eslint to @babel/eslint-parser (#4453)
* chore(v2): migrate babel-eslint to @babel/eslint-parser

* chore(v2): align facebook example packages

* chore(v2): lock babel-eslint for docusaurus-1x

* chore(v2): align pakcages in facebook init template

Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-03-19 11:59:36 +01:00
Armano
15107ee099
refactor(v2): correct client types and type aliases (#4451) 2021-03-19 11:32:38 +01:00
Alexey Pyltsyn
291a72fbae
docs(v2): use explicit heading IDs (#4460) 2021-03-19 11:00:41 +01:00
Sébastien Lorber
962c3748ea
chore(v2): Joi cyclic dep warning (#4464) 2021-03-18 20:19:09 +01:00
Sébastien Lorber
9117a5b7df
chore: fb json header commit typo (#4463) 2021-03-18 20:01:11 +01:00
Sébastien Lorber
5543f09ed1
chore: json files should be linted (#4462) 2021-03-18 19:39:50 +01:00
Sébastien Lorber
892d832a3e
fix(v2): Fix i18n staging deployment due to json typo (#4461) 2021-03-18 19:28:14 +01:00
Sébastien Lorber
60d189a91c
fix(v2): Export Joi from validation-utils package (#4459) 2021-03-18 19:27:51 +01:00
Sébastien Lorber
03f4a92035
chore(v2): enable more staging locales (#4458) 2021-03-18 18:05:42 +01:00
Sam Zhou
83d043ecb3
chore(v2): Fix more linter warnings (#4450) 2021-03-18 18:05:09 +01:00
Sébastien Lorber
3422f80a9a
chore: simplify CI setup (#4447)
* improve ci

* improve ci

* use actions/setup-node@v2 everywhere

* run pwd for test

* debug gh action

* debug glob CI issue?

* Separate v1/v2 tests due to shell conflict

* cleanup

* test v1 change

* circleci fix

* fix test docusaurus v1 paths

* Refactor CI script names and use paths to filter  actions from running unnecessary

* fix lighthouse url

* v1 tests runInBand

* try to fix v1 tests race conditions

* change rootDir for v1 tests

* minor CI improvements
2021-03-18 17:40:28 +01:00
Alexey Pyltsyn
1135d19333
chore(v2): remove docs for alpha v70 (#4457) 2021-03-18 18:36:58 +03:00
Armano
03c3e0def1
chore(v2): update typescript-eslint to v4.18.0 (#4452) 2021-03-18 16:10:16 +01:00
miku86
93dab24bec
polish(v2): Add german translations (#4448)
* Add german translations

Hey folks,

I updated some missing translations.

Greetings
Michael

* Update packages/docusaurus-theme-classic/codeTranslations/de.json

Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2021-03-18 11:46:23 +01:00
Sébastien Lorber
806fdbaf27
feat(v2): infer default i18n locale config from locale code (#4449)
* improve locale default config

* remove localeConfigs from i18n tutorial

* better i18n types, tests and Intl.DisplayNames integration
2021-03-18 11:43:07 +01:00
Sam Zhou
5e73c72f26
chore(v2): Fix linter warnings (#4442)
* chore(v2): Fix linter warnings

223 warnings to 145 warnings

* Remove explicit type annotations

* Do not prefetch when targetLink == null
2021-03-17 17:28:42 +01:00
John Reilly
f041a37622
docs(v2): add johnnyreilly blog to showcase (#4446) 2021-03-17 16:48:17 +01:00
Reece Dunham
76c0b11632
refactor(v2): TS config update: reduce the size of npm modules (#4375)
* feat(v2): Reduce the size of the npm modules

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

* Fix conflicts

* Update search.js

Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-03-17 16:25:42 +01:00
besemuna
b99a4031c6
feat(v2): Improve the initial templates #4302 (#4320)
* feat: add getting started doc at classic inital templates

* fix: improve the contents of getting started page

* fix: fix slug routing

* fix: rename gettingStarted to getting-started and re-adjust the content

* feat: add markdown-features docs

* feat: add a page on how to create a simple document

* feat: add a page on how to create pages

* feat: add create a post doc

* feat: add thank you page with whats next

* feat : update sidebar.js

* feat : add introduction content

* feat : add self hosting content

* feat : add GitHub pages content

* fix : remove automatically deploying with github actions content

* feat : add deploying to netlify

* feat : add Translate your site

* add : Manage versions

* fix : formatted docs with prettier

* Revert "fix : formatted docs with prettier"

This reverts commit af8c0b48

* run prettier to init templates with fixes

* complete new init template

* rename manage-docs-versions

* change wording

* refresh config file

* rework init template homepage

* minor changes

Co-authored-by: Lisa Chandra <52909743+lisa761@users.noreply.github.com>
Co-authored-by: Javid <singularity.javid@gmail.com>
Co-authored-by: ShinteiMai <stevenhanselgo@gmail.com>
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-03-17 15:59:01 +01:00
Sébastien Lorber
d5cad5bf1f
fix(v2): Fix writeHeadingIds on Windows due to non-posix paths (#4444) 2021-03-16 20:22:35 +01:00
Steve
66e621dca9
docs(v2): add Deploy with QuandCDN (#4430)
* Update deployment.mdx

- Adds QuantCDN deployment target.

* Update deployment.mdx

* Update website/docs/deployment.mdx

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

* Add QuantCDN docs to showcase.

Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2021-03-16 19:25:12 +01:00
Tom Raviv
07733e1b9c
docs(v2): add stylable site to users showcase list (#4441)
* added stylable site to users list

* Update website/src/data/users.js

Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2021-03-16 19:11:01 +01:00
Alexey Pyltsyn
f8fda885fc
chore(v2): prepare v2.0.0.alpha-72 release (#4440)
* chore(v2): prepare v2.0.0.alpha-72 release

* v2.0.0-alpha.72
2021-03-16 14:30:54 +03:00
Armano
abae86f283
refactor(v2): use correct plugin types (#4418) 2021-03-15 19:08:44 +01:00
Long Ho
1078341b22
refactor(v2): i18n cleanups / refactors (#4405)
* chore: fix various intl stuff
- remove intl-locales-supported & intl since they're deprecated and only
needed for IE11
- add new polyfills for node 12
- clean up babel intl extractor
- reset jest test timezone to UTC so it passes even for East Coast
contributor

* chore: change build to include Node 14

* docs: update i18n reqs
2021-03-15 18:02:53 +01:00
Alexey Pyltsyn
c3968e2d8f
chore(v2): upgrade Infima to v0.2.0-alpha.21 (#4429) 2021-03-15 17:50:46 +01:00
Simen Bekkhus
9a33802970
fix(v2): add missing peer dep (#4424) 2021-03-15 16:52:09 +01:00
Alexey Pyltsyn
ae1547c5c8
fix(v2): allow using pre tag in Markdown directly (#4428) 2021-03-15 16:42:24 +01:00
Quan
07ec381426
feat(v2): add Vietnamese translation for classic theme (#4422)
* add Vietnamese translation

* remove original word from translation string
2021-03-15 17:02:55 +03:00
Leandro Oriente
05e3515ad1
chore(v2): upgrade react-toggle to v4.1.2 (#4436) 2021-03-14 21:44:59 +03:00
Rhodanthe1116
b8b1e1ad85
refactor(v2): new theme label translations for Traditional Chinese (#4427) 2021-03-14 00:23:28 +03:00
Steven Hansel
88540207f8
feat(v2): Improve the initial templates (#4302)
* feat: add getting started doc at classic inital templates

* fix: improve the contents of getting started page

* fix: fix slug routing

* fix: rename gettingStarted to getting-started and re-adjust the content

* feat: add markdown-features docs

* feat: add a page on how to create a simple document

* feat: add a page on how to create pages

* feat: add create a post doc

* feat: add thank you page with whats next

* fix: reduce the content of the init templates

* update the init template

Co-authored-by: Lisa Chandra <52909743+lisa761@users.noreply.github.com>
Co-authored-by: Javid <singularity.javid@gmail.com>
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-03-12 21:33:04 +01:00
Lowen
dff53d3bd6
docs(v2): add Realtime Web Applications Workshop to showcase (#4416) 2021-03-12 18:58:42 +01:00
Armano
f51f21965c
refactor(v2): add ExecutionEnvironment, BrowserOnly, isInternalUrl to known type aliases (#4387) 2021-03-12 16:00:33 +01:00
Harvtronix
735b3b3cc0
fix(v2): broken link checker should not report false positives when using encoded chars (#4407)
In order to create markdown links to URIs containing spaces, an
encoded space (%20) must be used. These types of links were not
properly resolved to doc files. This fix allows them to be
resolved by calling `decodeURI` on the links found in markdown files to
unescape characters such as spaces.
2021-03-12 15:50:40 +01:00
Armano
2f53b1a895
refactor(v2): merge linkify function used in blog and docs and align properties (#4402)
* refactor(v2): merge linkify function used in blog and docs

* refactor(v2): rename docsDirPath and docsDirPathLocalized ad update types

* refactor(v2): rename blogPostsBySource and update types

* improve replaceMarkdownLinks api

Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-03-12 15:11:08 +01:00
Armano
bfe52cdae3
refactor(v2): correct some of type errors reported by eslint (#4382)
* fix: correct some of type errors reported by eslint

* fix: remove unnecessary import
2021-03-12 12:24:22 +01:00
Armano
a39c62f644
refactor(v2): add missing theme-classic types (#4385) 2021-03-12 12:19:19 +01:00
Sébastien Lorber
fa1d681abc
fix(v1): Fix v1 site deployment with Crowdin again... (#4410) 2021-03-12 11:41:53 +01:00