-
Notifications
You must be signed in to change notification settings - Fork 6.1k
chore: prepare docs for Docusaurus v3 upgrade - 1st iteration #3807
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
917cfbf
e23a556
3630b24
589fc5f
d762c97
e76988b
4b13f22
31d228e
da5b845
593b0d1
a96910d
6bcdb4d
f86ef83
1ed6b18
4688149
490ad51
1bf5b58
866e651
57f7b91
2119349
ee0fb64
c102920
37a9d7a
9d7ead8
5f18f23
1035887
9bae1ca
61ab5aa
1267a3a
7941e7f
16d2049
bf4e31b
c014092
ef20fa8
b23022c
76f0132
1fe1364
08bcb5e
6cbc79f
aa0044d
679b311
c2660fe
bd4e036
dd3e2a6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -120,9 +120,9 @@ export default App; | |
|
|
||
| Handler to be called when the user taps the button. | ||
|
|
||
| | Type | | ||
| | ----------------------------------------- | | ||
| | ({nativeEvent: [PressEvent](pressevent)}) | | ||
| | Type | | ||
| | ---------------------------------------------- | | ||
| | `md ({nativeEvent: [PressEvent](pressevent)})` | | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @cipolleschi @Simek @cortinico This new inline code syntax Turns on a basic support for Markdown links inside Can you validate this idea? IMHO this is an UX improvement, considering it's code it should be an inline code block. The non-usage of links before was probably a technical limitation that this new solution enables. But this requires to teach technical writers to use the Review links:
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I like it. I don't think that it will be an issue: if a technical writer wants to achieve the same result in these pages, it will likely go here and see how that was achieved and then it will copy the syntax! |
||
|
|
||
| --- | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -84,25 +84,25 @@ Many standard functions are also available on all the supported JavaScript runti | |
|
|
||
| #### Browser | ||
|
|
||
| - [CommonJS require](https://nodejs.org/docs/latest/api/modules.html) | ||
| - [console.{log, warn, error, info, trace, table, group, groupEnd}](https://developer.chrome.com/devtools/docs/console-api) | ||
| - [XMLHttpRequest, fetch](network.md#content) | ||
| - [{set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame](timers.md#content) | ||
| - [CommonJS `require`](https://nodejs.org/docs/latest/api/modules.html) | ||
| - `md [console.{log, warn, error, info, trace, table, group, groupEnd}](https://developer.chrome.com/devtools/docs/console-api)` | ||
| - [`XMLHttpRequest`, `fetch`](network.md#content) | ||
| - [`{set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame`](timers.md#content) | ||
|
|
||
| #### ECMAScript 2015 (ES6) | ||
|
|
||
| - [Array.from](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/from) | ||
| - Array.prototype.{[find](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find), [findIndex](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex)} | ||
| - [Object.assign](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign) | ||
| - String.prototype.{[startsWith](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith), [endsWith](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith), [repeat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/repeat), [includes](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes)} | ||
| - [`Array.from`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/from) | ||
| - `md Array.prototype.{[find](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find), [findIndex](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex)}` | ||
| - [`Object.assign`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign) | ||
| - `md String.prototype.{[startsWith](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith), [endsWith](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith), [repeat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/repeat), [includes](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes)}` | ||
|
|
||
| #### ECMAScript 2016 (ES7) | ||
|
|
||
| - Array.prototype.[includes](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes) | ||
| - `md Array.prototype.[includes](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes)` | ||
|
|
||
| #### ECMAScript 2017 (ES8) | ||
|
|
||
| - Object.{[entries](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries), [values](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/values)} | ||
| - `md Object.{[entries](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries), [values](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/values)}` | ||
|
Comment on lines
-87
to
+105
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @cipolleschi , in reply to your comment On this page, if we start using inline code blocks, then it's not always clear how to keep it consistent without modifying a bit the content:
To understand better the visual consistency problem: Before: https://reactnative.dev/docs/next/javascript-environment#polyfills
After: https://deploy-preview-3807--react-native.netlify.app/docs/next/javascript-environment#polyfills
As you can see, it does not visually render exactly the same depending on the order in which you apply the link/inline-code-block, and with current content shape, it's not really possible consistently one pattern or the other (or you would have to use code blocks for things that are not actually code: Is this consistency problem a blocker, or can we still merge this PR? It can also be possible to modify the content itself to make it more consistent, because in some cases we have one link to a whole API (console), and sometimes we link to individual functions (Array methods). In |
||
|
|
||
| #### Specific | ||
|
|
||
|
|
||



Uh oh!
There was an error while loading. Please reload this page.