Commit graph

3524 commits

Author SHA1 Message Date
Alexey Pyltsyn
efbd8fa351
chore(v2): avoid bad publish of intl-locales-supported (#4384) 2021-03-10 20:00:02 +01:00
Sébastien Lorber
b7a6665d31
docs(v2): releasing i18n blog post (#4367)
* add social card

* Complete the i18n blog post

* update blog post

* add missing v1 images

* improve the blog post

* update blog post

* update blog post

* fix bad file-system wording

* add mention of dogfooding

* translate the blog post into french + mention it!
2021-03-09 19:44:36 +01:00
Sébastien Lorber
986de6b214
chore(v2): prepare v2.0.0.alpha-71 release (#4376)
* prepare release

* v2.0.0-alpha.71
2021-03-09 18:45:05 +01:00
Sébastien Lorber
3a242e62ad
chore(v1): release docusaurus v1.14.7 (#4372)
* upgrade v1 versions

* revert version + update changelog

* Add 1.14.7 docs

* 1.14.7

* v1.14.7

* v1.14.7

* revert private: true after v1 publish

* update the v1 publish instructions  a bit

* revert v1 versions

* mention reverting v1 versions to v2 versions...
2021-03-09 16:05:58 +01:00
Alexey Pyltsyn
1c7d423e0c
docs(v2): various improvements (#4369)
* docs(v2): various improvements

* Update blog.md
2021-03-09 14:59:32 +01:00
Sébastien Lorber
f8884044fb
chore(v2): update infima (#4370)
* update infima

* update yarn lock

* Updates

Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
2021-03-09 14:58:05 +01:00
Alexey Pyltsyn
a369527910
refactor(v2): update Russian translation in classic theme (#4371) 2021-03-09 14:41:15 +01:00
dependabot[bot]
301b68b88d
chore(deps): bump elliptic from 6.5.3 to 6.5.4 (#4368)
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.3 to 6.5.4.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.3...v6.5.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-09 12:33:00 +01:00
Armano
e6261af642
refactor(v2): remove duplicated lodash dependencies and import only what needed (#4361)
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-03-09 12:15:52 +01:00
Sébastien Lorber
bac512bc63
chore: unstable yarnlock (#4365) 2021-03-09 11:55:13 +01:00
Armano
25489b438f
fix(v2): align installed core-js version with babel config (#4366) 2021-03-09 11:38:01 +01:00
MisterFISHUP
9a6d6a9adc
polish(v2): [theme-classic] slightly improve Japanese translation (#4359)
* Update ja.json

* Update ja.json
2021-03-08 19:22:42 +01:00
Alexey Pyltsyn
36dc206888
perf(v2): improve blog mdx-loader and postcss loader (#4355)
* perf(v2): improve blog mdx-loader and postcss loader

* Adjust advanced preset settings

* Update css-loader
2021-03-08 15:54:36 +01:00
MisterFISHUP
620b8f8fd7
polish(v2): [theme-classic] add Chinese translations (zh-Hant & zh-Hans) (#4356) 2021-03-08 15:46:39 +01:00
MisterFISHUP
33968b199b
polish(v2): [theme-classic] update French translation and base.json (#4358)
* Update fr.json

* Update base.json
2021-03-08 15:41:17 +01:00
Nico Jansen
54b77eac1e
docs(v2): Add stryker-mutator.io to showcase (#4362) 2021-03-08 15:21:28 +01:00
Kevin Viglucci
2a25124e36
docs(v2): add rsocket.io to showcase (#4360) 2021-03-07 10:15:29 +03:00
moonrailgun
d032acdc93
docs(v2): add trpgengine showcase (#4354) 2021-03-05 19:43:53 +01:00
Alexey Pyltsyn
96e7fcef25
feat(v2): add ability to set custom heading id (#4222)
* feat(v2): add ability to set custom heading id

* Add cli command

* Fix slugger

* write-heading-ids doc + add in commands/templates

* refactor + add tests for writeHeadingIds

* polish writeHeadingIds

* polish writeHeadingIds

* remove i18n goals todo section as the  remaining items are quite abstract/useless

* fix edge case with 2 md links in heading

* extract parseMarkdownHeadingId helper function

* refactor using the shared parseMarkdownHeadingId utility fn

* change logic of edge case

* Handle edge case

* Document explicit ids feature

Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-03-05 19:36:14 +01:00
Alexey Pyltsyn
6be0bd41b0
refactor(v2): format last updated date using Intl (#4352) 2021-03-05 15:30:09 +01:00
Sébastien Lorber
4f419801da
fix(v2): update code translations script + update some translations (#4349) 2021-03-05 14:52:59 +01:00
Çağlar Turalı
8bc23197a9
polish(v2): Updated theme label translations for Turkish (#4350) 2021-03-05 14:52:05 +01:00
tokarchyn
98a4b3a65c
feat(v2): Add playgroundPosition config for live codeblock (#4328)
* docs(v2): Add configuration parameter to allow putting Result before Editor in @docusaurus/theme-live-codeblock

* update doc

* refactor as playgroundPosition

Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-03-05 14:49:17 +01:00
Yamagishi Kazutoshi
f772c17bfc
polish(v2): add japanese translation for #4304 (#4351) 2021-03-05 14:45:21 +01:00
Alexey Pyltsyn
1dd400db7e
refactor(v2): format post date using Intl (#4344)
* refactor(v2): format post date using Intl

* Fix test

* Blog: add localized blog post date test

Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-03-04 19:11:31 +01:00
Alexey Pyltsyn
a4b409c93b
fix(v2): make code blocks more standalone (#4315)
* refactor(v2): make code blocks styles standalone

* Rework

* Revert font size in playground headers

Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-03-04 18:22:34 +01:00
Alexey Pyltsyn
0383dd1496
fix(v2): evaluate code in live editor on client only (#4318) 2021-03-04 17:52:53 +01:00
Alexey Pyltsyn
788b4a76d8
feat(v2): auto focus to tab if it is outside viewport (#4209)
* Simplify solution

* fix typo

Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-03-04 17:46:36 +01:00
aukokyong
0fc7276cc7
docs(v1): update phrasing for website directory relative to docs directory (#4346)
According to the file directory shown on this tutorial page (https://docusaurus.io/docs/en/tutorial-create-new-site), both the docs directory and the website directory are in the same level.
2021-03-04 16:23:35 +01:00
Alexey Pyltsyn
da5175a591
fix(v2): fit footer in viewport when content area is too small (#4311)
* fix(v2): fit footer in viewport  when content area is too small

* Fix

* Better solution
2021-03-04 15:39:15 +01:00
Sébastien Lorber
6fc6cfebf8
fix(v2): always extract translations from site/src (#4345)
* ensure translation extractor extract translations from site/src

* commit typo
2021-03-04 14:58:55 +01:00
Alexey Pyltsyn
43c53df158
chore(v2): bump clean-css to 5.1.1 (#4342) 2021-03-03 19:55:26 +01:00
Sébastien Lorber
879dcb0701
fix(v2): prevent useless blog pages to be in search results (#4340) 2021-03-03 18:23:47 +01:00
Sébastien Lorber
070b3fc1e8
fix(v2): search page results localization (#4339)
* Fix search page localization

* Fix search page localization
2021-03-03 18:10:20 +01:00
Sébastien Lorber
734eca98bf
docs(v2): update showcase instruction regarding tags + fix site tags (#4338) 2021-03-03 17:06:44 +01:00
Sébastien Lorber
364d4dbf01
fix(v2): fix bad theme pluralization rules for some labels (#4304)
* Pluralization test!

* Simplify usePluralForm usage with | plural message separator

* fix interpolate bug with falsy values like 0

* fix interpolate bug with falsy values like 0

* Order plural forms + allow to not provide the last plural forms if they are not used

* fix typo

* revert test!

* plurals and typo of the SearchPage

* update some labels

* improve the update-code-translations cli + update translations

* pluralize blog reading time label

* ensure base.json contains message descriptions: helps the user to provide the translations

* remove russian production locale
2021-03-03 17:05:21 +01:00
David Barrat
6c73f51f94
docs(v2): add ocpeasy to users (#4331) 2021-03-03 16:45:59 +01:00
Sébastien Lorber
4dad3bf96b
misc: restore build size bot (#4337)
* restore build size bot

* update
2021-03-03 16:36:40 +01:00
Ali Saki
4162e6dcd7
feat(v2): add arabic translation (#4329) 2021-03-03 12:13:26 +01:00
Yangshun Tay
572746d65f
chore: delete build size bot (#4334)
We've found a vulnerability in the way we configured this action. See https://securitylab.github.com/research/github-actions-preventing-pwn-requests
2021-03-03 18:54:27 +08:00
Bartosz Kaszubowski
273e778c10
feat(v2): [theme-classic] add Polish translation (#4325)
* [theme-classic] add Polish translation

* typo fix

* ellipsis instead of three dots
2021-03-02 19:21:16 +01:00
Massoud Maboudi
224aedf7ed
polish(v2): improved Farsi translation (#4309)
* improved translation for Farsi

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

Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-03-02 18:09:51 +01:00
Long Ho
f46adffa17
feat(v2): add --config option to CLI (#4308)
* feat: add --config & --generated-files-dir option to CLI

* revert --generated-files-dir option + some refactors

Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-03-02 17:34:23 +01:00
Çağlar Turalı
9413ba920e
feat(v2): Add Turkish translations for theme labels (#4312)
* Add Turkish translations for theme labels

* Fix: better handle last update switches
2021-03-02 12:21:35 +01:00
Yuri Sulyma
603c2021f7
docs(v2): Add RactivePlayer to showcase (#4307)
* Update users.js

Add ractive-player.org

* Add files via upload

add website screenshot
2021-03-01 19:31:48 +01:00
Yamagishi Kazutoshi
99d83995a5
feat(v2): add japanese translations (#4303) 2021-03-01 18:35:07 +01:00
roydukkey
12afb9e1f5
docs(v2): Fix examples by importing React (#4297) 2021-02-27 00:14:15 +01:00
Lisa Chandra
a810c4aff1
docs(v2): move migrated sites from v1 to v2 showcase (#4296)
* docs: add migrated v1 sites to v2 showcase

* docs: add tags to showcase sites

Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-02-26 17:15:38 +01:00
Sébastien Lorber
1734975f2f
feat(v2): Add Interpolate / interpolate APIs + complete theme translations (#4295)
* WIP: refactor team profile cards

* Add Interpolate / interpolate APIs

* Add interpolate snapshot test

* comments

* fix Interpolate TS types

* Interpolate should handle numbers and other JS types

* translate BlogPostItem

* interpolate translate() fn + add translations for blog post tag header

* localize the LastUpdated component

* translate DocVersionSuggestions

* fix test

* add some new translations

* Add node script to easily update the theme default translations

* fix translation extractor bug due to translate() dynamic values

* use ICU placeholder syntax

* refactor month key

* order

* team  page translation improvements

* Add interpolation doc + improve i18n doc
2021-02-26 13:19:51 +01:00
Saihajpreet Singh
cdcd0f05d4
docs(v2): Add shabados docs site to showcase page (#4294) 2021-02-25 11:28:29 +01:00