Skip to content

Commit 9def0e9

Browse files
authored
Merge pull request #75 from reactjs/sync-b8b3db7a
Sync with reactjs.org @ b8b3db7
2 parents 8f67a62 + 7379114 commit 9def0e9

File tree

11 files changed

+149
-42
lines changed

11 files changed

+149
-42
lines changed

content/community/conferences.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ April 24-26 in Helsinki, Finland
1717

1818
[Website](https://react-finland.fi/) - [Twitter](https://twitter.com/ReactFinland)
1919

20-
### ReactJS Girls Conference
20+
### ReactJS Girls Conference {#reactjs-girls-conference}
2121
May 3, 2019 in London, UK
2222

2323
[Website](https://reactjsgirls.com/) - [Twitter](https://twitter.com/reactjsgirls)
@@ -47,12 +47,12 @@ June 21, 2019 Chicago, Illinois USA
4747

4848
[Website](https://reactloop.com) - [Twitter](https://twitter.com/ReactLoop)
4949

50-
### Chain React 2019
50+
### Chain React 2019 {#chain-react-2019}
5151
July 11-12, 2019. Portland, OR, USA.
5252

5353
[Website](https://infinite.red/ChainReactConf)
5454

55-
### React Rally 2019
55+
### React Rally 2019 {#react-rally-2019}
5656
August 22-23, 2019. Salt Lake City, USA.
5757

5858
[Website](https://www.reactrally.com/) - [Twitter](https://twitter.com/ReactRally) - [Instagram](https://www.instagram.com/reactrally/)
@@ -72,6 +72,11 @@ September 13th, 2019. New York, USA
7272

7373
[Website](https://reactnewyork.com/) - [Twitter](https://twitter.com/reactnewyork)
7474

75+
### React Boston 2019 {#react-boston-2019}
76+
September 21-22, 2019 in Boston, Massachusetts USA
77+
78+
[Website](https://www.reactboston.com/) - [Twitter](https://twitter.com/reactboston)
79+
7580
### React India 2019 {#react-india-2019}
7681
September 26-28, 2019 in Goa, India
7782

@@ -379,4 +384,4 @@ April 4-5, 2019 in Kraków, Poland
379384
### React Amsterdam 2019 {#react-amsterdam-2019}
380385
April 12, 2019 in Amsterdam, The Netherlands
381386

382-
[Website](https://react.amsterdam) - [Twitter](https://twitter.com/reactamsterdam) - [Facebook](https://www.facebook.com/reactamsterdam) - [Videos](https://youtube.com/c/ReactConferences)
387+
[Website](https://react.amsterdam) - [Twitter](https://twitter.com/reactamsterdam) - [Facebook](https://www.facebook.com/reactamsterdam) - [Videos](https://youtube.com/c/ReactConferences)

content/docs/create-a-new-react-app.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,7 @@ npm start
5353
5454
إنشاء تطبيق React لا يملئ فراغ الواجهة الخلفية أو قواعد البيانات. جلَّ ما يحدث هو إنشاء أنبوب بناء واجهة أمامية (frontend build pipeline)، لذا تستطيع استعماله مع أية واجهة خلفية تريد؛ على أي حال، لا تحتاج الآن إلى معرفة أي شي عن الواجهات الخلفية. Under the hood, it uses [Babel](https://babeljs.io/) and [webpack](https://webpack.js.org/), but you don't need to know anything about them.
5555

56-
<<<<<<< HEAD
57-
عندما تصبح جاهزًا للنشر على البيئة الإنتاجية، سينشئ تنفيذ الأمر `npm run build` نسخة مبنية محسَّنة من تطبيقك في المجلد `build`. ستطيع تعلم المزيد حول البيئة Create React App من ملف [اقرأني](https://github.com/facebookincubator/create-react-app#create-react-app-) (README) الخاص بها و [دليل المستخدم](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#table-of-contents).
58-
=======
59-
When you're ready to deploy to production, running `npm run build` will create an optimized build of your app in the `build` folder. You can learn more about Create React App [from its README](https://github.com/facebookincubator/create-react-app#create-react-app--) and the [User Guide](https://facebook.github.io/create-react-app/).
60-
>>>>>>> 6bc6e7b1411d4befc3ecfbe45b898ca474116020
56+
عندما تصبح جاهزًا للنشر على البيئة الإنتاجية، سينشئ تنفيذ الأمر `npm run build` نسخة مبنية محسَّنة من تطبيقك في المجلد `build`. ستطيع تعلم المزيد حول البيئة Create React App من ملف [اقرأني](https://github.com/facebookincubator/create-react-app#create-react-app--) (README) الخاص بها و [دليل المستخدم](https://facebook.github.io/create-react-app/).
6157

6258
### Next.js {#nextjs}
6359

@@ -73,11 +69,7 @@ When you're ready to deploy to production, running `npm run build` will create a
7369

7470
### سلاسلة أدوات ذات مرونة أكبر {#more-flexible-toolchains}
7571

76-
<<<<<<< HEAD
7772
سلاسل الأدوات التالية توفر مرونةً أكبر وخيارات أكثر. ننصح المستخدمين ذوي الخبرة باستعمالها:
78-
=======
79-
The following toolchains offer more flexibility and choice. We recommend them to more experienced users:
80-
>>>>>>> 6bc6e7b1411d4befc3ecfbe45b898ca474116020
8173

8274
- **[Neutrino](https://neutrinojs.org/)** تدمج قوة [webpack](https://webpack.js.org/) مع بساطة الضبط المسبق الافتراضي (presets)، وتُضمِّن ضبطًا مسبقًا [لتطبيقات React](https://neutrinojs.org/packages/react/) و [مكونات React](https://neutrinojs.org/packages/react-components/).
8375

content/docs/getting-started.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ redirect_from:
101101

102102
### مفاهيم متقدمة {#advanced-concepts}
103103

104-
متى ما شعرت أنَّ [المفاهيم الأساسية](#main-concepts) أصبحت سهلةً لك وبدأت بممارسة React وشعرت أنَّ نفسك تطلب المزيد، فأنت حينئذٍ بحاجة إلى الانتقال إلى مستوى متقدم. هذا القسم سيقدم لك ميزات متقدمة في React وقوية ولكن أقل استخدامًا مثل [السياق](/docs/context.html) و [refs](/docs/refs-and-the-dom.html).
104+
متى ما شعرت أنَّ [المفاهيم الأساسية](/docs/hello-world.html) أصبحت سهلةً لك وبدأت بممارسة React وشعرت أنَّ نفسك تطلب المزيد، فأنت حينئذٍ بحاجة إلى الانتقال إلى مستوى متقدم. هذا القسم سيقدم لك ميزات متقدمة في React وقوية ولكن أقل استخدامًا مثل [السياق](/docs/context.html) و [refs](/docs/refs-and-the-dom.html).
105105

106106
### مرجع إلى الواجهة البرمجية {#api-reference}
107107

@@ -117,11 +117,7 @@ redirect_from:
117117

118118
يمكن أيضًا متابعتنا على [حساب تويتر ‎@reactjs](https://twitter.com/reactjs) ولكن لن يفوتك أي شيء إن تابعت المدونة فقط.
119119

120-
<<<<<<< HEAD
121-
لا يمكن الاكتفاء بمنشورات المدونة لمعرفة كل تفاصيل الإصدار الجديد من React؛ يمكنك العثور على معلومات مفصلة عن سجل التغييرات لكل إصدار في [الملف CHANGELOG.md في مستودع React](https://github.com/facebook/react/blob/master/CHANGELOG.md) وكذلك في [صفحة الإصدارات](https://github.com/facebook/react) أيضًا.
122-
=======
123-
Not every React release deserves its own blog post, but you can find a detailed changelog for every release [in the `CHANGELOG.md` file in the React repository](https://github.com/facebook/react/blob/master/CHANGELOG.md), as well as on the [Releases](https://github.com/facebook/react/releases) page.
124-
>>>>>>> 6bc6e7b1411d4befc3ecfbe45b898ca474116020
120+
لا يمكن الاكتفاء بمنشورات المدونة لمعرفة كل تفاصيل الإصدار الجديد من React؛ يمكنك العثور على معلومات مفصلة عن سجل التغييرات لكل إصدار في [الملف CHANGELOG.md في مستودع React](https://github.com/facebook/react/blob/master/CHANGELOG.md) وكذلك في [صفحة الإصدارات](https://github.com/facebook/react/releases) أيضًا.
125121

126122
## توثيق الإصدار {#versioned-documentation}
127123

content/docs/hooks-faq.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ There are a few more heuristics, and they might change over time as we fine-tune
209209

210210
* `componentDidCatch` and `getDerivedStateFromError`: There are no Hook equivalents for these methods yet, but they will be added soon.
211211

212-
### How can I do data fetching with Hooks?
212+
### How can I do data fetching with Hooks? {#how-can-i-do-data-fetching-with-hooks}
213213

214214
Here is a [small demo](https://codesandbox.io/s/jvvkoo8pq3) to get you started. To learn more, check out [this article](https://www.robinwieruch.de/react-hooks-fetch-data/) about data fetching with Hooks.
215215

@@ -654,7 +654,7 @@ function ProductDetails({ fetchProduct })
654654

655655
Note that in the above example we **need** to keep the function in the dependencies list. This ensures that a change in the `productId` prop of `ProductPage` automatically triggers a refetch in the `ProductDetails` component.
656656

657-
### What can I do if my effect dependencies change too often?
657+
### What can I do if my effect dependencies change too often? {#what-can-i-do-if-my-effect-dependencies-change-too-often}
658658

659659
Sometimes, your effect may be using reading state that changes too often. You might be tempted to omit that state from a list of dependencies, but that usually leads to bugs:
660660

content/docs/reference-react.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -202,11 +202,7 @@ React.cloneElement(
202202
React.createFactory(type)
203203
```
204204

205-
<<<<<<< HEAD
206-
يُعيد دالة تُنتِج عناصر React من النوع المُعطى. وكما هو الحال مع التابع [`React.createElement()`](#createElement)‎ يُمكِن للوسيط type أن يكون إمّا سلسلة نصيّة لاسم العنصر (مثل ‎`'div'‎` أو `‎'span'`‎)، أو نوع [لمكوّن React](/docs/components-and-props.html) (مثل صنف أو دالة)، أو نوع [لجزء React](#reactfragment) (أي fragment).
207-
=======
208-
Return a function that produces React elements of a given type. Like [`React.createElement()`](#createelement), the type argument can be either a tag name string (such as `'div'` or `'span'`), a [React component](/docs/components-and-props.html) type (a class or a function), or a [React fragment](#reactfragment) type.
209-
>>>>>>> 6bc6e7b1411d4befc3ecfbe45b898ca474116020
205+
يُعيد دالة تُنتِج عناصر React من النوع المُعطى. وكما هو الحال مع التابع [`React.createElement()`](#createelement)‎ يُمكِن للوسيط type أن يكون إمّا سلسلة نصيّة لاسم العنصر (مثل ‎`'div'‎` أو `‎'span'`‎)، أو نوع [لمكوّن React](/docs/components-and-props.html) (مثل صنف أو دالة)، أو نوع [لجزء React](#reactfragment) (أي fragment).
210206

211207
يُعتبَر هذا التابع قديمًا في React ونوصي باستخدام JSX أو التابع `React.createElement()`‎ بشكل مباشر بدلًا من ذلك.
212208

content/languages.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
translated_name: বাংলা
2424
code: bn
2525
status: 0
26+
- name: Catalan
27+
translated_name: Català
28+
code: ca
29+
status: 0
2630
- name: German
2731
translated_name: Deutsch
2832
code: de
@@ -99,6 +103,10 @@
99103
translated_name: മലയാളം
100104
code: ml
101105
status: 0
106+
- name: Mongolian
107+
translated_name: Монгол хэл
108+
code: mn
109+
status: 0
102110
- name: Nepali
103111
translated_name: नेपाली
104112
code: ne
@@ -110,7 +118,7 @@
110118
- name: Polish
111119
translated_name: Polski
112120
code: pl
113-
status: 1
121+
status: 2
114122
- name: Portuguese (Brazil)
115123
translated_name: Português do Brasil
116124
code: pt-br

gatsby-config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ module.exports = {
5555
maxWidth: 840,
5656
},
5757
},
58+
'gatsby-remark-external-links',
5859
'gatsby-remark-header-custom-ids',
5960
{
6061
resolve: 'gatsby-remark-code-repls',

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"gatsby-remark-code-repls": "^2.0.0",
3333
"gatsby-remark-copy-linked-files": "^2.0.0",
3434
"gatsby-remark-embed-snippet": "^3.0.0",
35+
"gatsby-remark-external-links": "^0.0.4",
3536
"gatsby-remark-images": "^2.0.0",
3637
"gatsby-remark-prismjs": "^3.0.2",
3738
"gatsby-remark-responsive-iframe": "^2.0.0",

src/pages/index.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -330,17 +330,12 @@ const CtaItem = ({children, primary = false}) => (
330330
},
331331

332332
'&:first-child': {
333-
<<<<<<< HEAD
334-
textAlign: 'left',
335-
paddingLeft: 15,
336-
=======
337333
textAlign: 'right',
338334
paddingRight: 7,
339335
paddingLeft: 7,
340336
[media.lessThan('small')]: {
341337
marginBottom: 10,
342338
},
343-
>>>>>>> 6bc6e7b1411d4befc3ecfbe45b898ca474116020
344339
},
345340

346341
'&:nth-child(2)': {

src/theme.js

Lines changed: 43 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -288,15 +288,24 @@ const sharedStyles = {
288288
},
289289

290290
'& h2': {
291-
borderTop: `1px solid ${colors.divider}`,
292-
marginTop: 44,
293-
paddingTop: 40,
291+
'::before': {
292+
content: ' ',
293+
display: 'block',
294+
borderBottom: `1px solid ${colors.divider}`,
295+
paddingTop: 44,
296+
marginBottom: 40,
297+
},
298+
294299
lineHeight: 1.2,
295300

296301
':first-child': {
297-
borderTop: 0,
298-
marginTop: 0,
299-
paddingTop: 0,
302+
'::before': {
303+
content: ' ',
304+
display: 'block',
305+
borderBottom: 0,
306+
paddingTop: 40,
307+
marginTop: -80,
308+
},
300309
},
301310

302311
[media.lessThan('large')]: {
@@ -313,7 +322,12 @@ const sharedStyles = {
313322
},
314323

315324
'& h3': {
316-
paddingTop: 45,
325+
'::before': {
326+
content: ' ',
327+
display: 'block',
328+
paddingTop: 90,
329+
marginTop: -45,
330+
},
317331

318332
[media.lessThan('small')]: {
319333
overflowWrap: 'break-word',
@@ -327,14 +341,25 @@ const sharedStyles = {
327341
},
328342

329343
'& h2 + h3, & h2 + h3:first-of-type': {
330-
paddingTop: 30,
344+
'::before': {
345+
content: ' ',
346+
display: 'block',
347+
paddingTop: 60,
348+
marginTop: -30,
349+
},
331350
},
332351

333352
'& h4': {
353+
'::before': {
354+
content: ' ',
355+
display: 'block',
356+
paddingTop: 100,
357+
marginTop: -50,
358+
},
359+
334360
fontSize: 20,
335361
color: colors.subtle,
336362
lineHeight: 1.3,
337-
marginTop: 50,
338363
fontWeight: 400,
339364
},
340365

@@ -417,6 +442,15 @@ const sharedStyles = {
417442
'& .gatsby-highlight + blockquote': {
418443
marginTop: 40,
419444
},
445+
446+
'& .gatsby-highlight + h4': {
447+
'::before': {
448+
content: ' ',
449+
display: 'block',
450+
paddingTop: 85,
451+
marginTop: -60,
452+
},
453+
},
420454
},
421455
};
422456

0 commit comments

Comments
 (0)