Commit Graph

94 Commits

Author SHA1 Message Date
Strek
e1dcbffde1 bump next to latest (#4251) 2022-01-28 19:15:35 +00:00
Strek
3564e690b8 Introduce lint staged (#4240)
* Commit lint staging

* Add mdx parser for prettier

* fix css

* Fixed lint staged for md

* Fixed markdowns

* Revert prettifying markdown since build fails

* Removed css command and included with tsx

* replace with older readme and contibuting
2022-01-28 18:56:11 +00:00
dan
1c355ab630 [Beta] Change "You will learn" for chapters (#4239) 2022-01-28 18:55:27 +00:00
dan
b22c3d6865 [Beta] Rewrite Quick Start (#4245)
* [Beta] Rewrite Quick Start

* Tweaks
2022-01-28 03:01:32 +00:00
Dan Abramov
2b2ac5c3bf Fix download label 2022-01-28 00:42:59 +00:00
dan
4451e5b0b3 Make line highlight full width (#4246) 2022-01-28 00:42:14 +00:00
Ben Rogers-McKee
53d279e370 fix: challenges navigation (#4123)
* fix: challenges navigation

* fix: challenges navigation alternate solution

* fix: challenges navigation assert non null on find

* refactor: unnecessary default value
2022-01-27 21:06:51 +00:00
Mark R. Florkowski
ec65cc000c Add "click to copy" to TerminalBlock (#4025)
* add click to copy to TerminalBlock

* rebase + changes

* fix 'Not all code paths return a value.'

* fix svg jsx

* fix lint errors
2022-01-27 21:06:39 +00:00
Danilo Woznica
d80ef566a3 Sandpack: upgrade dependencies and adds ReactDevtools (#4161)
* upgrade sandpack dependencies

* update csb button

* remove unnecessary ref

* add react dev tools

* remove duplicated/unnecessary element

* fix: codemirror gutter

* fix codemirror gutter

* make devtools optional

* bump sandpack version

* fix: add website theme to the react devtools

* fix: react devtools ui tweaks

* devtools: custom theme

* refactor: reset sandbox

* fix sandpack

* fix: devtools style

* fix: tweaks on mobile version

* fix: soft refresh when module is loaded

* bump sandpack version

* update color

* remove demo

* remove inspect button

* bring back key logic

* refactor: icon align

* update sandpack

* logic to keep the content synced
2022-01-24 16:28:52 +00:00
Strek
51105970b7 Removed google analytics for dev (#4233) 2022-01-23 03:44:29 +00:00
Strek
d84b74040c Bump next (#4228) 2022-01-22 17:19:56 +00:00
R Nabors
b1f91c92f4 Analytics for Beta (#4224)
* adding google analytics metrics to beta

* adding google analytics metrics to beta
2022-01-21 18:51:26 +00:00
Strek
3143db5a8e Updates deployment in readme from netlify to vercel (#4225)
* updates readme

* removed hosting provider name
2022-01-21 18:29:31 +00:00
Juyeong Byeon
9ed29b0df6 fix: "…" spread syntax is not an "operator" but document saying that is an "operator" so it can make developers confused (#4209) 2022-01-18 19:49:12 +00:00
Strek
cd1b0dfed9 Changed the version generation script to update vercel.json instead of _redirects (#4136)
* Changed the version generation script to update vercel.json instead of _redirects

* Fix prettier failures

* Expected to return a value at the end of async function 'writeRedirectsFile'

* Add same script for beta as well

* Fixes review comments

* Fixes formatting in old site
2022-01-18 17:31:17 +00:00
Strek
0b21acb5ab Added hook to validate if headings are present or not (#4143)
* Added hook to validate if headings are present or not

* Remove un wanted default param

* Add validate Ids to ci check too

* Revamp heading id generation and validation workflow

* Update validateHeadingIDs.js
2022-01-18 17:28:11 +00:00
Vaibhav Shukla
af768b4618 FIXED: broken 'translated' link (#4223)
* FIXED: broken 'translated' link

removed broken weblink which leads to 404 page

* FIXED: broken 'translation' link
2022-01-18 22:14:10 +05:30
Lukasz Baranowski
b41b1dc356 Docs - phrasing sentence in conditional rendering article (#4196) 2021-12-23 11:58:47 +05:30
Ahmet Faruk Yılmaz
ee304b6aae Fix typo in Removing from an array part (#4171) 2021-12-14 12:04:48 +05:30
Sofya Tuymedova
014f4890dc docs: fix a typo (#4166) 2021-12-12 11:22:25 +05:30
bigfang
7d9c9e80d2 fix slice() link (#4156) 2021-12-08 12:51:00 +05:30
yang
aa70dcedc6 fix: correct the link to navigate to the team page (#4146)
* fix: correct the link to navigate to the team page

* remove .html

Co-authored-by: Strek <harish.sethuraman@freshworks.com>
2021-12-04 13:46:21 +05:30
CatsAndDogs123
86eb509781 [fix]: add-listner is deprecated, switched those to add-event-listner (#4093) 2021-12-03 17:30:05 +05:30
Strek
f625b86a48 Comment the script (#4139) 2021-12-01 16:06:13 +00:00
Soichiro Miki
a655e410fa Fix a typo (#4138) 2021-12-01 18:27:34 +05:30
Strek
01afd01325 [Beta]Move all possible style to tailwind classes (#4054)
* Move all possible style to tailwind classes

* Update Sidebar.tsx

* fix-collapsable-color

* dry run and commit

* Update SidebarLink.tsx

* Fixes review comments for aria tags

* Remove extended tailwind configs

* Update tailwind.config.js

* Update Sidebar.tsx
2021-11-29 23:17:46 +05:30
Strek
3f3e109ad7 Fix markdown comment breakage in community page (#4127) 2021-11-29 16:13:17 +00:00
Marek Bodinger
0057efa12c Fix description to match code in referencing-values-with-refs.md (#4097) 2021-11-25 16:46:18 +00:00
Sofya Tuymedova
d8800be079 chore: fix typos (#4121) 2021-11-25 16:23:31 +00:00
Strek
c6353b9853 chore: fix typo (#4104) 2021-11-25 08:52:06 +05:30
Strek
40c8cd2df9 Add check-all script for beta site (#4120)
* Update package.json

* Update README.md

* Update package.json

* Add tsc for check-all as well

* Update README.md

* Update README.md

Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
2021-11-24 17:28:14 +00:00
Dan Abramov
bd727cfc88 Update README.md 2021-11-23 18:36:32 +00:00
Strek
17ad2cbc71 Fixes unwanted scrolls in mobile (#4114)
* added word break

* Update PageHeading.tsx
2021-11-18 21:17:15 +00:00
Strek
49a552c1c1 Fix prettier CI and add it to pre commit (#4100)
* Add prettier before commit and during CI

* Add workflow

* Reverse merge main to branch

* dry run prettier

* dry run prettier

* [warn] jsxBracketSameLine is deprecated so replaced it to bracketSameLine

* Revert "[warn] jsxBracketSameLine is deprecated so replaced it to bracketSameLine"

This reverts commit 43dbe9ed3f.

* Revert "dry run prettier"

This reverts commit b62948042c.

* Revert "dry run prettier"

This reverts commit 382f9a4691.

* Revert "Reverse merge main to branch"

This reverts commit 43667eaf29.

* [warn] jsxBracketSameLine is deprecated so replaced it to bracketSameLine
2021-11-15 18:23:25 +00:00
Strek
ea086bd312 Fixing Eslint configuration (#4087)
* fix-collapsable-color

* Made Eslint work and added next's eslint config

* Add lint:fix to pre commit rule

* Reverts older anchor links

* Fixed review comments

* Replace with spaces like before

* Update DocsFooter.tsx

* Update arrow function

* Update CodeBlock.tsx

* Update MDXComponents.tsx

* Update SidebarLink.tsx
2021-11-15 15:33:15 +00:00
Titus
4022f9774b Use custom ID format that works better with MDX 2 (#4105)
* Fix two unicode whitespaces which are invalid

* Use custom ID format that works better with MDX 2

* Fix sebastian

* remark-slug as dev dep
2021-11-15 04:20:32 +00:00
harish-sethuraman
7254849ade Stop zooming for search input (#4094) 2021-11-12 14:33:26 +00:00
harish-sethuraman
d9901c44d3 Update algolia.css (#4092) 2021-11-12 11:21:52 +00:00
harish-sethuraman
64e236cf84 Typo fixes (#4091)
* chore: fix typo

* Update referencing-values-with-refs.md

* Fix typo of typo

Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
2021-11-12 08:56:28 +03:00
Alexey Pyltsyn
eb84de7444 Enable dark mode in browser UI (#4089) 2021-11-11 21:36:01 +00:00
Alexey Pyltsyn
719aa3c377 Allow page zooming/scaling (#4082)
* Allow page zooming/scaling

* Fix for iOS
2021-11-11 16:50:49 +00:00
Alexey Pyltsyn
5c1f51316f Add support for Unicode chars when detect headings IDs (#4086) 2021-11-11 12:35:22 +00:00
harish-sethuraman
f31c9fdae8 Remove unwanted dependency (#4083) 2021-11-11 00:32:38 +00:00
Alexey Pyltsyn
e206d8cdf1 Set page layout dynamically (#4084) 2021-11-11 00:27:46 +00:00
Alexey Pyltsyn
0b7fd7b7a4 Add git hook to generate headings ids (#4043)
* Add git hook to generate headings ids

* Fixes "Analyze Bundle" workflow
2021-11-10 18:19:44 +00:00
harish-sethuraman
8333b6d127 Fixes wrong breadcrumb for 404 page (#4074)
* Fixes wrong breadcrumb for 404 page

* Change Home as default layout

* Add layout Learn to the pages inside learn
2021-11-10 18:10:20 +00:00
Dan Lebowitz
29fbe65acb fix safari bug 2021-11-10 17:50:07 +00:00
Dan Lebowitz
23c09e0072 polish dark mode illustrations 2021-11-09 23:07:39 +00:00
Dan Abramov
b761b81322 Fix typo 2021-11-09 19:22:49 +00:00
harish-sethuraman
967bf1f152 Update doc (#4077) 2021-11-09 11:18:22 +00:00