diff --git a/docs/en/1.10.x/api-pages.html b/docs/en/1.10.x/api-pages.html index 1611dded8e..0f404e4fb9 100644 --- a/docs/en/1.10.x/api-pages.html +++ b/docs/en/1.10.x/api-pages.html @@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description'; className="myCustomClass" contents={[ { - title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`, - content: 'Learn how to use this project', - image: siteConfig.baseUrl + 'img/learn.png', - imageAlt: 'Learn how to use this project', - imageLink: siteConfig.baseUrl + 'docs/tutorial.html', + title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`, + content: 'Learn how to use this project', + image: siteConfig.baseUrl + 'img/learn.png', + imageAlt: 'Learn how to use this project', + imageLink: siteConfig.baseUrl + 'docs/tutorial.html', }, { - title: 'Frequently Asked Questions', - content: 'Questions gathered from the community', - image: siteConfig.baseUrl + 'img/faq.png', - imageAlign: 'top', + title: 'Frequently Asked Questions', + content: 'Questions gathered from the community', + image: siteConfig.baseUrl + 'img/faq.png', + imageAlign: 'top', }, { - title: 'More', - content: 'Lots of documentation is on this site', + title: 'More', + content: 'Lots of documentation is on this site', }, ]} /> diff --git a/docs/en/1.10.x/api-pages/index.html b/docs/en/1.10.x/api-pages/index.html index 1611dded8e..0f404e4fb9 100644 --- a/docs/en/1.10.x/api-pages/index.html +++ b/docs/en/1.10.x/api-pages/index.html @@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description'; className="myCustomClass" contents={[ { - title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`, - content: 'Learn how to use this project', - image: siteConfig.baseUrl + 'img/learn.png', - imageAlt: 'Learn how to use this project', - imageLink: siteConfig.baseUrl + 'docs/tutorial.html', + title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`, + content: 'Learn how to use this project', + image: siteConfig.baseUrl + 'img/learn.png', + imageAlt: 'Learn how to use this project', + imageLink: siteConfig.baseUrl + 'docs/tutorial.html', }, { - title: 'Frequently Asked Questions', - content: 'Questions gathered from the community', - image: siteConfig.baseUrl + 'img/faq.png', - imageAlign: 'top', + title: 'Frequently Asked Questions', + content: 'Questions gathered from the community', + image: siteConfig.baseUrl + 'img/faq.png', + imageAlign: 'top', }, { - title: 'More', - content: 'Lots of documentation is on this site', + title: 'More', + content: 'Lots of documentation is on this site', }, ]} /> diff --git a/docs/en/1.10.x/doc-markdown.html b/docs/en/1.10.x/doc-markdown.html index 39d8e15106..a96aacfda6 100644 --- a/docs/en/1.10.x/doc-markdown.html +++ b/docs/en/1.10.x/doc-markdown.html @@ -214,7 +214,7 @@ ReactDOM.render(<h1>Hello, world!</h1>, document.getElementById('roo
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/en/1.10.x/doc-markdown/index.html b/docs/en/1.10.x/doc-markdown/index.html
index 39d8e15106..a96aacfda6 100644
--- a/docs/en/1.10.x/doc-markdown/index.html
+++ b/docs/en/1.10.x/doc-markdown/index.html
@@ -214,7 +214,7 @@ ReactDOM.render(<h1>Hello, world!</h1>, document.getElementById('roo
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/en/1.11.x/api-pages.html b/docs/en/1.11.x/api-pages.html
index 8efe8e7a73..6cce857ee6 100644
--- a/docs/en/1.11.x/api-pages.html
+++ b/docs/en/1.11.x/api-pages.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/en/1.11.x/api-pages/index.html b/docs/en/1.11.x/api-pages/index.html
index 8efe8e7a73..6cce857ee6 100644
--- a/docs/en/1.11.x/api-pages/index.html
+++ b/docs/en/1.11.x/api-pages/index.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/en/1.11.x/doc-markdown.html b/docs/en/1.11.x/doc-markdown.html
index ae0c023f03..976866b7a7 100644
--- a/docs/en/1.11.x/doc-markdown.html
+++ b/docs/en/1.11.x/doc-markdown.html
@@ -214,7 +214,7 @@ ReactDOM.render(<h1>Hello, world!</h1>, document.getElementById('roo
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/en/1.11.x/doc-markdown/index.html b/docs/en/1.11.x/doc-markdown/index.html
index ae0c023f03..976866b7a7 100644
--- a/docs/en/1.11.x/doc-markdown/index.html
+++ b/docs/en/1.11.x/doc-markdown/index.html
@@ -214,7 +214,7 @@ ReactDOM.render(<h1>Hello, world!</h1>, document.getElementById('roo
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/en/1.12.0/api-pages.html b/docs/en/1.12.0/api-pages.html
index 3f3c5fc5ec..d3b8f23128 100644
--- a/docs/en/1.12.0/api-pages.html
+++ b/docs/en/1.12.0/api-pages.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/en/1.12.0/api-pages/index.html b/docs/en/1.12.0/api-pages/index.html
index 3f3c5fc5ec..d3b8f23128 100644
--- a/docs/en/1.12.0/api-pages/index.html
+++ b/docs/en/1.12.0/api-pages/index.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/en/1.12.0/doc-markdown.html b/docs/en/1.12.0/doc-markdown.html
index 9e34ec3950..24e1636d4b 100644
--- a/docs/en/1.12.0/doc-markdown.html
+++ b/docs/en/1.12.0/doc-markdown.html
@@ -214,7 +214,7 @@ ReactDOM.render(<h1>Hello, world!</h1>, document.getElementById('roo
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/en/1.12.0/doc-markdown/index.html b/docs/en/1.12.0/doc-markdown/index.html
index 9e34ec3950..24e1636d4b 100644
--- a/docs/en/1.12.0/doc-markdown/index.html
+++ b/docs/en/1.12.0/doc-markdown/index.html
@@ -214,7 +214,7 @@ ReactDOM.render(<h1>Hello, world!</h1>, document.getElementById('roo
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/en/1.13.0/api-pages.html b/docs/en/1.13.0/api-pages.html
index d0c8812d9d..fcd3bb4ede 100644
--- a/docs/en/1.13.0/api-pages.html
+++ b/docs/en/1.13.0/api-pages.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/en/1.13.0/api-pages/index.html b/docs/en/1.13.0/api-pages/index.html
index d0c8812d9d..fcd3bb4ede 100644
--- a/docs/en/1.13.0/api-pages/index.html
+++ b/docs/en/1.13.0/api-pages/index.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/en/1.13.0/doc-markdown.html b/docs/en/1.13.0/doc-markdown.html
index aae7ccf8bd..a324020aa1 100644
--- a/docs/en/1.13.0/doc-markdown.html
+++ b/docs/en/1.13.0/doc-markdown.html
@@ -214,7 +214,7 @@ ReactDOM.render(<h1>Hello, world!</h1>, document.getElementById('roo
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/en/1.13.0/doc-markdown/index.html b/docs/en/1.13.0/doc-markdown/index.html
index aae7ccf8bd..a324020aa1 100644
--- a/docs/en/1.13.0/doc-markdown/index.html
+++ b/docs/en/1.13.0/doc-markdown/index.html
@@ -214,7 +214,7 @@ ReactDOM.render(<h1>Hello, world!</h1>, document.getElementById('roo
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/en/1.9.x/api-pages.html b/docs/en/1.9.x/api-pages.html
index d3cb4667ba..a79c829dd9 100644
--- a/docs/en/1.9.x/api-pages.html
+++ b/docs/en/1.9.x/api-pages.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/en/1.9.x/api-pages/index.html b/docs/en/1.9.x/api-pages/index.html
index d3cb4667ba..a79c829dd9 100644
--- a/docs/en/1.9.x/api-pages/index.html
+++ b/docs/en/1.9.x/api-pages/index.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/en/1.9.x/doc-markdown.html b/docs/en/1.9.x/doc-markdown.html
index 738482ff0f..edb26b9188 100644
--- a/docs/en/1.9.x/doc-markdown.html
+++ b/docs/en/1.9.x/doc-markdown.html
@@ -214,7 +214,7 @@ ReactDOM.render(<h1>Hello, world!</h1>, document.getElementById('roo
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/en/1.9.x/doc-markdown/index.html b/docs/en/1.9.x/doc-markdown/index.html
index 738482ff0f..edb26b9188 100644
--- a/docs/en/1.9.x/doc-markdown/index.html
+++ b/docs/en/1.9.x/doc-markdown/index.html
@@ -214,7 +214,7 @@ ReactDOM.render(<h1>Hello, world!</h1>, document.getElementById('roo
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/en/api-pages.html b/docs/en/api-pages.html
index daeaab7bbe..ee2ebed9f0 100644
--- a/docs/en/api-pages.html
+++ b/docs/en/api-pages.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/en/api-pages/index.html b/docs/en/api-pages/index.html
index daeaab7bbe..ee2ebed9f0 100644
--- a/docs/en/api-pages/index.html
+++ b/docs/en/api-pages/index.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/en/doc-markdown.html b/docs/en/doc-markdown.html
index bacac587dc..ea7b3a7c81 100644
--- a/docs/en/doc-markdown.html
+++ b/docs/en/doc-markdown.html
@@ -217,7 +217,7 @@ ReactDOM.render(<h1>Hello, world!</h1>, document.getElementById('roo
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/en/doc-markdown/index.html b/docs/en/doc-markdown/index.html
index bacac587dc..ea7b3a7c81 100644
--- a/docs/en/doc-markdown/index.html
+++ b/docs/en/doc-markdown/index.html
@@ -217,7 +217,7 @@ ReactDOM.render(<h1>Hello, world!</h1>, document.getElementById('roo
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/en/next/api-pages.html b/docs/en/next/api-pages.html
index e7f554d3b5..c75ac23263 100644
--- a/docs/en/next/api-pages.html
+++ b/docs/en/next/api-pages.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/en/next/api-pages/index.html b/docs/en/next/api-pages/index.html
index e7f554d3b5..c75ac23263 100644
--- a/docs/en/next/api-pages/index.html
+++ b/docs/en/next/api-pages/index.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/en/next/doc-markdown.html b/docs/en/next/doc-markdown.html
index 7a5d4ec9c1..a22d5ee6a0 100644
--- a/docs/en/next/doc-markdown.html
+++ b/docs/en/next/doc-markdown.html
@@ -217,7 +217,7 @@ ReactDOM.render(<h1>Hello, world!</h1>, document.getElementById('roo
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/en/next/doc-markdown/index.html b/docs/en/next/doc-markdown/index.html
index 7a5d4ec9c1..a22d5ee6a0 100644
--- a/docs/en/next/doc-markdown/index.html
+++ b/docs/en/next/doc-markdown/index.html
@@ -217,7 +217,7 @@ ReactDOM.render(<h1>Hello, world!</h1>, document.getElementById('roo
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/en/next/publishing.html b/docs/en/next/publishing.html
index c4b63de3b6..f0c8965511 100644
--- a/docs/en/next/publishing.html
+++ b/docs/en/next/publishing.html
@@ -307,33 +307,33 @@
 
 
# azure-pipelines.yml
 trigger:
-- master
+  - master
 
 pool:
   vmImage: 'ubuntu-latest'
 
 steps:
-- checkout: self
-  persistCredentials: true
+  - checkout: self
+    persistCredentials: true
 
-- task: NodeTool@0
-  inputs:
-    versionSpec: '10.x'
-  displayName: 'Install Node.js'
+  - task: NodeTool@0
+    inputs:
+      versionSpec: '10.x'
+    displayName: 'Install Node.js'
 
-- script: |
-    git config --global user.name "${GH_NAME}"
-    git config --global user.email "${GH_EMAIL}"
-    git checkout -b master
-    echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
-    cd website
-    yarn install
-    GIT_USER="${GH_NAME}" CURRENT_BRANCH=master yarn run publish-gh-pages
-  env:
-    GH_NAME: $(GH_NAME)
-    GH_EMAIL: $(GH_EMAIL)
-    GH_TOKEN: $(GH_TOKEN)
-  displayName: 'yarn install and build'
+  - script: |
+      git config --global user.name "${GH_NAME}"
+      git config --global user.email "${GH_EMAIL}"
+      git checkout -b master
+      echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
+      cd website
+      yarn install
+      GIT_USER="${GH_NAME}" CURRENT_BRANCH=master yarn run publish-gh-pages
+    env:
+      GH_NAME: $(GH_NAME)
+      GH_EMAIL: $(GH_EMAIL)
+      GH_TOKEN: $(GH_TOKEN)
+    displayName: 'yarn install and build'
 

Hosting on ZEIT Now

With ZEIT Now, you can deploy your site and connect it to GitHub or GitLab to automatically receive a new deployment every time you push a commit.

@@ -386,7 +386,7 @@

Alter your siteConfig.js to add a property 'githubHost' which represents the GitHub Enterprise hostname. Alternatively, set an environment variable GITHUB_HOST when executing the publish command.

-
Last updated on 7/23/2020 by Ayan Banerjee

Hosting on ZEIT Now

With ZEIT Now, you can deploy your site and connect it to GitHub or GitLab to automatically receive a new deployment every time you push a commit.

@@ -386,7 +386,7 @@

Alter your siteConfig.js to add a property 'githubHost' which represents the GitHub Enterprise hostname. Alternatively, set an environment variable GITHUB_HOST when executing the publish command.

-
Last updated on 7/23/2020 by Ayan Banerjee

YOUR_CROWDIN_PROJECT_ID is the name of your Crowdin project. e.g., for https://crowdin.com/project/docusaurus/, that variable would be set to docusaurus. YOUR_CROWDIN_API_KEY is a unique key that is like a password. You can find it in the API tab of your Crowdin project's Settings.

+
+

These commands require having an environment variable set with your Crowdin project id and api key (CROWDIN_PROJECT_ID, CROWDIN_API_KEY). You can preface them inline as done above or add them permanently to your .bashrc or .bash_profile.

+
+

If you run more than one localized Docusaurus project on your computer, you should change the name of the environment variables to something unique (CROWDIN_PROJECTNAME_PROJECT_ID, CROWDIN_PROJECTNAME_API_KEY).

+
+

Since the files are generated, you do not need to have any files in your website/i18n or website/translated_docs directory as part of your repo. So you can can add website/i18n/* and website/translated_docs to your .gitignore file.

Automated File Sync Using CircleCI

@@ -260,11 +265,9 @@ CROWDIN_DOCUSAURUS_PROJECT_ID=YOUR_CROWDIN_PROJECT_ID CROWDIN_DOCUSAURUS_API_KEY deploy-website: docker: # specify the version you desire here - - image: circleci/node:8.11.1 steps: - - checkout - run: name: Deploying to GitHub Pages @@ -288,7 +291,6 @@ CROWDIN_DOCUSAURUS_PROJECT_ID=YOUR_CROWDIN_PROJECT_ID CROWDIN_DOCUSAURUS_API_KEY version: 2 build_and_deploy: jobs: - - deploy-website: # filters: *filter-only-master
diff --git a/docs/fr/translation/index.html b/docs/fr/translation/index.html index 340cc86989..2168a9ec7b 100644 --- a/docs/fr/translation/index.html +++ b/docs/fr/translation/index.html @@ -1,4 +1,4 @@ -Translations & Localization · Docusaurus
Translate

Translations & Localization

Docusaurus propose une fonctionnalité de traduction facile en utilisant Crowdin. Les fichiers de documentation écrits en anglais sont envoyés à Crowdin pour une traduction par les utilisateurs au sein d’une communauté. Les pages de haut niveau écrites avec des chaînes anglaises peuvent être traduites en enregistrant toutes les chaînes que vous souhaitez traduire dans une balise <translate> . D'autres titres et étiquettes seront également trouvés et correctement traduits.

+
Translate

Translations & Localization

Docusaurus permet une fonctionnalité de traduction utile en utilisant Crowdin. Les fichiers de documentation écrits en anglais sont envoyés à Crowdin pour une traduction par les utilisateurs au sein d’une communauté. Les pages de haut niveau écrites avec des chaînes anglaises peuvent être traduites en enregistrant toutes les chaînes que vous souhaitez traduire dans une balise <translate> . D'autres titres et étiquettes seront également trouvés et correctement traduits.

Configurations de traduction de Docusaurus

Pour générer des fichiers d'exemple pour les traductions avec Docusaurus, exécutez le script examples avec l'argument de la ligne de commande translations :

npm run examples translations
@@ -113,7 +113,7 @@ languages.js
 const translate = require('../../server/translate.js').translate;
 ...
 <h2>
-  <translate>Cette entête sera traduite</translate>
+  <translate>This header will be translated</translate>
 </h2>
 ...
 
@@ -208,7 +208,6 @@ languages.js preserve_hierarchy: true files: - - source: '/docs/**/*.md' translation: '/website/translated_docs/%locale%/**/%original_file_name%' languages_mapping: &anchor @@ -239,8 +238,14 @@ CROWDIN_DOCUSAURUS_PROJECT_ID=YOUR_CROWDIN_PROJECT_ID CROWDIN_DOCUSAURUS_API_KEY

YOUR_CROWDIN_PROJECT_ID is the name of your Crowdin project. e.g., for https://crowdin.com/project/docusaurus/, that variable would be set to docusaurus. YOUR_CROWDIN_API_KEY is a unique key that is like a password. You can find it in the API tab of your Crowdin project's Settings.

+
+

These commands require having an environment variable set with your Crowdin project id and api key (CROWDIN_PROJECT_ID, CROWDIN_API_KEY). You can preface them inline as done above or add them permanently to your .bashrc or .bash_profile.

+
+

If you run more than one localized Docusaurus project on your computer, you should change the name of the environment variables to something unique (CROWDIN_PROJECTNAME_PROJECT_ID, CROWDIN_PROJECTNAME_API_KEY).

+
+

Since the files are generated, you do not need to have any files in your website/i18n or website/translated_docs directory as part of your repo. So you can can add website/i18n/* and website/translated_docs to your .gitignore file.

Automated File Sync Using CircleCI

@@ -260,11 +265,9 @@ CROWDIN_DOCUSAURUS_PROJECT_ID=YOUR_CROWDIN_PROJECT_ID CROWDIN_DOCUSAURUS_API_KEY deploy-website: docker: # specify the version you desire here - - image: circleci/node:8.11.1 steps: - - checkout - run: name: Deploying to GitHub Pages @@ -288,7 +291,6 @@ CROWDIN_DOCUSAURUS_PROJECT_ID=YOUR_CROWDIN_PROJECT_ID CROWDIN_DOCUSAURUS_API_KEY version: 2 build_and_deploy: jobs: - - deploy-website: # filters: *filter-only-master
diff --git a/docs/ko/1.10.x/api-pages.html b/docs/ko/1.10.x/api-pages.html index 0a2f514570..64af38d488 100644 --- a/docs/ko/1.10.x/api-pages.html +++ b/docs/ko/1.10.x/api-pages.html @@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description'; className="myCustomClass" contents={[ { - title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`, - content: 'Learn how to use this project', - image: siteConfig.baseUrl + 'img/learn.png', - imageAlt: 'Learn how to use this project', - imageLink: siteConfig.baseUrl + 'docs/tutorial.html', + title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`, + content: 'Learn how to use this project', + image: siteConfig.baseUrl + 'img/learn.png', + imageAlt: 'Learn how to use this project', + imageLink: siteConfig.baseUrl + 'docs/tutorial.html', }, { - title: 'Frequently Asked Questions', - content: 'Questions gathered from the community', - image: siteConfig.baseUrl + 'img/faq.png', - imageAlign: 'top', + title: 'Frequently Asked Questions', + content: 'Questions gathered from the community', + image: siteConfig.baseUrl + 'img/faq.png', + imageAlign: 'top', }, { - title: 'More', - content: 'Lots of documentation is on this site', + title: 'More', + content: 'Lots of documentation is on this site', }, ]} />
diff --git a/docs/ko/1.10.x/api-pages/index.html b/docs/ko/1.10.x/api-pages/index.html index 0a2f514570..64af38d488 100644 --- a/docs/ko/1.10.x/api-pages/index.html +++ b/docs/ko/1.10.x/api-pages/index.html @@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description'; className="myCustomClass" contents={[ { - title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`, - content: 'Learn how to use this project', - image: siteConfig.baseUrl + 'img/learn.png', - imageAlt: 'Learn how to use this project', - imageLink: siteConfig.baseUrl + 'docs/tutorial.html', + title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`, + content: 'Learn how to use this project', + image: siteConfig.baseUrl + 'img/learn.png', + imageAlt: 'Learn how to use this project', + imageLink: siteConfig.baseUrl + 'docs/tutorial.html', }, { - title: 'Frequently Asked Questions', - content: 'Questions gathered from the community', - image: siteConfig.baseUrl + 'img/faq.png', - imageAlign: 'top', + title: 'Frequently Asked Questions', + content: 'Questions gathered from the community', + image: siteConfig.baseUrl + 'img/faq.png', + imageAlign: 'top', }, { - title: 'More', - content: 'Lots of documentation is on this site', + title: 'More', + content: 'Lots of documentation is on this site', }, ]} />
diff --git a/docs/ko/1.10.x/doc-markdown.html b/docs/ko/1.10.x/doc-markdown.html index df427c2459..4a700d9c72 100644 --- a/docs/ko/1.10.x/doc-markdown.html +++ b/docs/ko/1.10.x/doc-markdown.html @@ -214,7 +214,7 @@ usePrism: ['jsx']
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/ko/1.10.x/doc-markdown/index.html b/docs/ko/1.10.x/doc-markdown/index.html
index df427c2459..4a700d9c72 100644
--- a/docs/ko/1.10.x/doc-markdown/index.html
+++ b/docs/ko/1.10.x/doc-markdown/index.html
@@ -214,7 +214,7 @@ usePrism: ['jsx']
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/ko/1.11.x/api-pages.html b/docs/ko/1.11.x/api-pages.html
index 05bc9e8e44..16bca65eac 100644
--- a/docs/ko/1.11.x/api-pages.html
+++ b/docs/ko/1.11.x/api-pages.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/ko/1.11.x/api-pages/index.html b/docs/ko/1.11.x/api-pages/index.html
index 05bc9e8e44..16bca65eac 100644
--- a/docs/ko/1.11.x/api-pages/index.html
+++ b/docs/ko/1.11.x/api-pages/index.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/ko/1.11.x/doc-markdown.html b/docs/ko/1.11.x/doc-markdown.html
index 59a3dbfeb8..13a573383d 100644
--- a/docs/ko/1.11.x/doc-markdown.html
+++ b/docs/ko/1.11.x/doc-markdown.html
@@ -214,7 +214,7 @@ usePrism: ['jsx']
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/ko/1.11.x/doc-markdown/index.html b/docs/ko/1.11.x/doc-markdown/index.html
index 59a3dbfeb8..13a573383d 100644
--- a/docs/ko/1.11.x/doc-markdown/index.html
+++ b/docs/ko/1.11.x/doc-markdown/index.html
@@ -214,7 +214,7 @@ usePrism: ['jsx']
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/ko/1.12.0/api-pages.html b/docs/ko/1.12.0/api-pages.html
index 2148179170..624fe39cea 100644
--- a/docs/ko/1.12.0/api-pages.html
+++ b/docs/ko/1.12.0/api-pages.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/ko/1.12.0/api-pages/index.html b/docs/ko/1.12.0/api-pages/index.html
index 2148179170..624fe39cea 100644
--- a/docs/ko/1.12.0/api-pages/index.html
+++ b/docs/ko/1.12.0/api-pages/index.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/ko/1.12.0/doc-markdown.html b/docs/ko/1.12.0/doc-markdown.html
index ffff0dcdba..0def624611 100644
--- a/docs/ko/1.12.0/doc-markdown.html
+++ b/docs/ko/1.12.0/doc-markdown.html
@@ -214,7 +214,7 @@ usePrism: ['jsx']
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/ko/1.12.0/doc-markdown/index.html b/docs/ko/1.12.0/doc-markdown/index.html
index ffff0dcdba..0def624611 100644
--- a/docs/ko/1.12.0/doc-markdown/index.html
+++ b/docs/ko/1.12.0/doc-markdown/index.html
@@ -214,7 +214,7 @@ usePrism: ['jsx']
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/ko/1.13.0/api-pages.html b/docs/ko/1.13.0/api-pages.html
index 1effce1aa7..d81711552b 100644
--- a/docs/ko/1.13.0/api-pages.html
+++ b/docs/ko/1.13.0/api-pages.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/ko/1.13.0/api-pages/index.html b/docs/ko/1.13.0/api-pages/index.html
index 1effce1aa7..d81711552b 100644
--- a/docs/ko/1.13.0/api-pages/index.html
+++ b/docs/ko/1.13.0/api-pages/index.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/ko/1.13.0/doc-markdown.html b/docs/ko/1.13.0/doc-markdown.html
index 34e536aa39..cfceef7a56 100644
--- a/docs/ko/1.13.0/doc-markdown.html
+++ b/docs/ko/1.13.0/doc-markdown.html
@@ -214,7 +214,7 @@ usePrism: ['jsx']
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/ko/1.13.0/doc-markdown/index.html b/docs/ko/1.13.0/doc-markdown/index.html
index 34e536aa39..cfceef7a56 100644
--- a/docs/ko/1.13.0/doc-markdown/index.html
+++ b/docs/ko/1.13.0/doc-markdown/index.html
@@ -214,7 +214,7 @@ usePrism: ['jsx']
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/ko/1.9.x/api-pages.html b/docs/ko/1.9.x/api-pages.html
index 8303e954d0..39c5e0635d 100644
--- a/docs/ko/1.9.x/api-pages.html
+++ b/docs/ko/1.9.x/api-pages.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/ko/1.9.x/api-pages/index.html b/docs/ko/1.9.x/api-pages/index.html
index 8303e954d0..39c5e0635d 100644
--- a/docs/ko/1.9.x/api-pages/index.html
+++ b/docs/ko/1.9.x/api-pages/index.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/ko/1.9.x/doc-markdown.html b/docs/ko/1.9.x/doc-markdown.html
index 944e7e4db7..882bab6cb9 100644
--- a/docs/ko/1.9.x/doc-markdown.html
+++ b/docs/ko/1.9.x/doc-markdown.html
@@ -214,7 +214,7 @@ usePrism: ['jsx']
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/ko/1.9.x/doc-markdown/index.html b/docs/ko/1.9.x/doc-markdown/index.html
index 944e7e4db7..882bab6cb9 100644
--- a/docs/ko/1.9.x/doc-markdown/index.html
+++ b/docs/ko/1.9.x/doc-markdown/index.html
@@ -214,7 +214,7 @@ usePrism: ['jsx']
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/ko/api-pages.html b/docs/ko/api-pages.html
index 901231da1e..ecca7ec809 100644
--- a/docs/ko/api-pages.html
+++ b/docs/ko/api-pages.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/ko/api-pages/index.html b/docs/ko/api-pages/index.html
index 901231da1e..ecca7ec809 100644
--- a/docs/ko/api-pages/index.html
+++ b/docs/ko/api-pages/index.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/ko/doc-markdown.html b/docs/ko/doc-markdown.html
index 58a1de6808..0553079766 100644
--- a/docs/ko/doc-markdown.html
+++ b/docs/ko/doc-markdown.html
@@ -232,7 +232,7 @@ ReactDOM.render(<h1>Hello, world!</h1>, document.getElementById('roo
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/ko/doc-markdown/index.html b/docs/ko/doc-markdown/index.html
index 58a1de6808..0553079766 100644
--- a/docs/ko/doc-markdown/index.html
+++ b/docs/ko/doc-markdown/index.html
@@ -232,7 +232,7 @@ ReactDOM.render(<h1>Hello, world!</h1>, document.getElementById('roo
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/ko/next/api-pages.html b/docs/ko/next/api-pages.html
index 5294b3bab8..1a8e2fe3e3 100644
--- a/docs/ko/next/api-pages.html
+++ b/docs/ko/next/api-pages.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/ko/next/api-pages/index.html b/docs/ko/next/api-pages/index.html
index 5294b3bab8..1a8e2fe3e3 100644
--- a/docs/ko/next/api-pages/index.html
+++ b/docs/ko/next/api-pages/index.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/ko/next/doc-markdown.html b/docs/ko/next/doc-markdown.html
index 54b298cde0..367f7073c0 100644
--- a/docs/ko/next/doc-markdown.html
+++ b/docs/ko/next/doc-markdown.html
@@ -217,7 +217,7 @@ usePrism: ['jsx']
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/ko/next/doc-markdown/index.html b/docs/ko/next/doc-markdown/index.html
index 54b298cde0..367f7073c0 100644
--- a/docs/ko/next/doc-markdown/index.html
+++ b/docs/ko/next/doc-markdown/index.html
@@ -217,7 +217,7 @@ usePrism: ['jsx']
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/ko/next/publishing.html b/docs/ko/next/publishing.html
index 782f371188..5ebe97f52e 100644
--- a/docs/ko/next/publishing.html
+++ b/docs/ko/next/publishing.html
@@ -306,34 +306,34 @@
 
 
# azure-pipelines.yml
 trigger:
-- master
+  - master
 
 pool:
   vmImage: 'ubuntu-latest'
 
 steps:
 
-- checkout: self
-  persistCredentials: true
+  - checkout: self
+    persistCredentials: true
 
-- task: NodeTool@0
-  inputs:
-    versionSpec: '10.x'
-  displayName: 'Install Node.js'
+  - task: NodeTool@0
+    inputs:
+      versionSpec: '10.x'
+    displayName: 'Install Node.js'
 
-- script: |
-    git config --global user.name "${GH_NAME}"
-    git config --global user.email "${GH_EMAIL}"
-    git checkout -b master
-    echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
-    cd website
-    yarn install
-    GIT_USER="${GH_NAME}" CURRENT_BRANCH=master yarn run publish-gh-pages
-  env:
-    GH_NAME: $(GH_NAME)
-    GH_EMAIL: $(GH_EMAIL)
-    GH_TOKEN: $(GH_TOKEN)
-  displayName: 'yarn install and build'
+  - script: |
+      git config --global user.name "${GH_NAME}"
+      git config --global user.email "${GH_EMAIL}"
+      git checkout -b master
+      echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
+      cd website
+      yarn install
+      GIT_USER="${GH_NAME}" CURRENT_BRANCH=master yarn run publish-gh-pages
+    env:
+      GH_NAME: $(GH_NAME)
+      GH_EMAIL: $(GH_EMAIL)
+      GH_TOKEN: $(GH_TOKEN)
+    displayName: 'yarn install and build'
 

Hosting on ZEIT Now

With ZEIT Now, you can deploy your site and connect it to GitHub or GitLab to automatically receive a new deployment every time you push a commit.

diff --git a/docs/ko/next/publishing/index.html b/docs/ko/next/publishing/index.html index 782f371188..5ebe97f52e 100644 --- a/docs/ko/next/publishing/index.html +++ b/docs/ko/next/publishing/index.html @@ -306,34 +306,34 @@
# azure-pipelines.yml
 trigger:
-- master
+  - master
 
 pool:
   vmImage: 'ubuntu-latest'
 
 steps:
 
-- checkout: self
-  persistCredentials: true
+  - checkout: self
+    persistCredentials: true
 
-- task: NodeTool@0
-  inputs:
-    versionSpec: '10.x'
-  displayName: 'Install Node.js'
+  - task: NodeTool@0
+    inputs:
+      versionSpec: '10.x'
+    displayName: 'Install Node.js'
 
-- script: |
-    git config --global user.name "${GH_NAME}"
-    git config --global user.email "${GH_EMAIL}"
-    git checkout -b master
-    echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
-    cd website
-    yarn install
-    GIT_USER="${GH_NAME}" CURRENT_BRANCH=master yarn run publish-gh-pages
-  env:
-    GH_NAME: $(GH_NAME)
-    GH_EMAIL: $(GH_EMAIL)
-    GH_TOKEN: $(GH_TOKEN)
-  displayName: 'yarn install and build'
+  - script: |
+      git config --global user.name "${GH_NAME}"
+      git config --global user.email "${GH_EMAIL}"
+      git checkout -b master
+      echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
+      cd website
+      yarn install
+      GIT_USER="${GH_NAME}" CURRENT_BRANCH=master yarn run publish-gh-pages
+    env:
+      GH_NAME: $(GH_NAME)
+      GH_EMAIL: $(GH_EMAIL)
+      GH_TOKEN: $(GH_TOKEN)
+    displayName: 'yarn install and build'
 

Hosting on ZEIT Now

With ZEIT Now, you can deploy your site and connect it to GitHub or GitLab to automatically receive a new deployment every time you push a commit.

diff --git a/docs/ko/site-config.html b/docs/ko/site-config.html index 9da7ce9a23..a4eb4ad5a9 100644 --- a/docs/ko/site-config.html +++ b/docs/ko/site-config.html @@ -144,6 +144,9 @@

Control the title of the blog sidebar. See the adding a blog docs for more information.

cleanUrl [boolean]

If true, allow URLs with no HTML extension. For example, a request to URL https://docusaurus.io/docs/installation will return the same result as https://docusaurus.io/docs/installation.html.

+
+

If users intend for this website to be used exclusively offline, this value must be set to false. Otherwise, it will cause the site to route to the parent folder of the linked page.

+

cname [string]

The CNAME for your website. It will go into a CNAME file when your site is built.

customDocsPath [string]

@@ -241,8 +244,8 @@

An array of plugins to be loaded by Remarkable, the markdown parser and renderer used by Docusaurus. The plugin will receive a reference to the Remarkable instance, allowing custom parsing and rendering rules to be defined.

For example, if you want to enable superscript and subscript in your markdown that is rendered by Remarkable to HTML, you would do the following:

  markdownPlugins: [
-    function foo(md) {
-      md.inline.ruler.enable(['sub', 'sup']);
+    function foo(md) {
+      md.inline.ruler.enable(['sub', 'sup']);
     },
   ],
 
@@ -282,6 +285,14 @@

wrapPagesHTML [boolean]

Boolean flag to indicate whether HTML files in /pages should be wrapped with Docusaurus site styles, header and footer. This feature is experimental and relies on the files being HTML fragments instead of complete pages. It inserts the contents of your HTML file with no extra processing. Defaults to false.

Users can also add their own custom fields if they wish to provide some data across different files.

+

Adding Google Fonts

+ +

Google Fonts offers faster load times by caching fonts without forcing users to sacrifice privacy. For more information on Google Fonts, see the Google Fonts documentation.

+

To add Google Fonts to your Docusaurus deployment, add the font path to the siteConfig.js under stylesheets:

+
stylesheets: [
+  'https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,700',
+],
+

Example siteConfig.js with many available fields

const users = [
   {
@@ -377,7 +388,7 @@
 
 module.exports = siteConfig;
 
-
diff --git a/docs/ko/translation/index.html b/docs/ko/translation/index.html index 7af6d034e7..7a7e7cd5ef 100644 --- a/docs/ko/translation/index.html +++ b/docs/ko/translation/index.html @@ -1,4 +1,4 @@ -Translations & Localization · Docusaurus
Translate

Translations & Localization

도큐사우르스에서는 Crowdin를 사용해 번역 기능을 쉽게 추가할 수 있습니다. 영어로 작성된 문서가 작성되면 커뮤니티 기반으로 사용자가 직접 번역할 수 있는 Crowdin으로 업데이트됩니다. 영어 문자열로 작성된 최상위 페이지에서 번역할 대상 문자열은 <translate> 태그로 감싸지고 태그 안의 문자열은 번역될 수 있습니다. 다른 제목이나 라벨도 발견되면 적절하게 번역될 수 있습니다.

+
Translate

Translations & Localization

Docusaurus allows for useful translation functionality using Crowdin. 영어로 작성된 문서가 작성되면 커뮤니티 기반으로 사용자가 직접 번역할 수 있는 Crowdin으로 업데이트됩니다. 영어 문자열로 작성된 최상위 페이지에서 번역할 대상 문자열은 <translate> 태그로 감싸지고 태그 안의 문자열은 번역될 수 있습니다. 다른 제목이나 라벨도 발견되면 적절하게 번역될 수 있습니다.

도큐사우르스에서 번역 관련 설정하기

도큐사우르스에서 번역을 위한 예제 파일을 만들기 위해서는 examples 스크립트를 translations 인자와 함께 실행합니다.

npm run examples translations
@@ -208,7 +208,6 @@ languages.js
 preserve_hierarchy: true
 
 files:
-
   - source: '/docs/**/*.md'
     translation: '/website/translated_docs/%locale%/**/%original_file_name%'
     languages_mapping: &anchor
@@ -239,8 +238,14 @@ CROWDIN_DOCUSAURUS_PROJECT_ID=YOUR_CROWDIN_PROJECT_ID CROWDIN_DOCUSAURUS_API_KEY
 

YOUR_CROWDIN_PROJECT_ID 항목은 Crowdin 프로젝트 이름을 설정합니다. 예를 들어 https://crowdin.com/project/docusaurus/ Url에서 docusaurus 문자열을 설정합니다. YOUR_CROWDIN_API_KEY 항목은 비밀번호와 같은 유일한 키값을 지정합니다. Crowdin 프로젝트 Settings 항목 중 API 탭에서 찾을 수 있습니다.

+
+

명령행을 실행하기 위해서는 환경변수에서 Crowdin 프로젝트 id와 api 키값(CROWDIN_PROJECT_ID, CROWDIN_API_KEY) 을 설정해주어야 합니다. 위에서처럼 인라인 명령행에 설정값을 추가할 수도 있고 .bashrc 또는 .bash_profile 파일에 추가할 수도 있습니다.

+
+

여러분의 컴퓨터에서 하나 이상의 도큐사우르스 프로젝트 지역화를 처리하고자 한다면 환경변수의 이름을 구분할 수 있는 고유한 값으로 변경해주어야 합니다(CROWDIN_PROJECTNAME_PROJECT_ID, CROWDIN_PROJECTNAME_API_KEY).

+
+

파일들이 생성되고 나면 website/i18n 또는 website/translated_docs 디렉토리에 파일을 가지고 있을 필요가 없습니다. website/i18n/*website/translated_docs.gitignore 파일을 추가해줍니다.

Automated File Sync Using CircleCI

@@ -260,11 +265,9 @@ CROWDIN_DOCUSAURUS_PROJECT_ID=YOUR_CROWDIN_PROJECT_ID CROWDIN_DOCUSAURUS_API_KEY deploy-website: docker: # specify the version you desire here - - image: circleci/node:8.11.1 steps: - - checkout - run: name: Deploying to GitHub Pages @@ -288,7 +291,6 @@ CROWDIN_DOCUSAURUS_PROJECT_ID=YOUR_CROWDIN_PROJECT_ID CROWDIN_DOCUSAURUS_API_KEY version: 2 build_and_deploy: jobs: - - deploy-website: # filters: *filter-only-master
diff --git a/docs/pt-BR/1.10.x/api-pages.html b/docs/pt-BR/1.10.x/api-pages.html index e66b772ec8..30ffb5e961 100644 --- a/docs/pt-BR/1.10.x/api-pages.html +++ b/docs/pt-BR/1.10.x/api-pages.html @@ -202,21 +202,21 @@ MyPage.title = 'Minha Descrição'; className="myCustomClass" contents={[ { - title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`, - content: 'Learn how to use this project', - image: siteConfig.baseUrl + 'img/learn.png', - imageAlt: 'Learn how to use this project', - imageLink: siteConfig.baseUrl + 'docs/tutorial.html', + title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`, + content: 'Learn how to use this project', + image: siteConfig.baseUrl + 'img/learn.png', + imageAlt: 'Learn how to use this project', + imageLink: siteConfig.baseUrl + 'docs/tutorial.html', }, { - title: 'Frequently Asked Questions', - content: 'Questions gathered from the community', - image: siteConfig.baseUrl + 'img/faq.png', - imageAlign: 'top', + title: 'Frequently Asked Questions', + content: 'Questions gathered from the community', + image: siteConfig.baseUrl + 'img/faq.png', + imageAlign: 'top', }, { - title: 'More', - content: 'Lots of documentation is on this site', + title: 'More', + content: 'Lots of documentation is on this site', }, ]} /> diff --git a/docs/pt-BR/1.10.x/api-pages/index.html b/docs/pt-BR/1.10.x/api-pages/index.html index e66b772ec8..30ffb5e961 100644 --- a/docs/pt-BR/1.10.x/api-pages/index.html +++ b/docs/pt-BR/1.10.x/api-pages/index.html @@ -202,21 +202,21 @@ MyPage.title = 'Minha Descrição'; className="myCustomClass" contents={[ { - title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`, - content: 'Learn how to use this project', - image: siteConfig.baseUrl + 'img/learn.png', - imageAlt: 'Learn how to use this project', - imageLink: siteConfig.baseUrl + 'docs/tutorial.html', + title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`, + content: 'Learn how to use this project', + image: siteConfig.baseUrl + 'img/learn.png', + imageAlt: 'Learn how to use this project', + imageLink: siteConfig.baseUrl + 'docs/tutorial.html', }, { - title: 'Frequently Asked Questions', - content: 'Questions gathered from the community', - image: siteConfig.baseUrl + 'img/faq.png', - imageAlign: 'top', + title: 'Frequently Asked Questions', + content: 'Questions gathered from the community', + image: siteConfig.baseUrl + 'img/faq.png', + imageAlign: 'top', }, { - title: 'More', - content: 'Lots of documentation is on this site', + title: 'More', + content: 'Lots of documentation is on this site', }, ]} /> diff --git a/docs/pt-BR/1.10.x/doc-markdown.html b/docs/pt-BR/1.10.x/doc-markdown.html index 5eaf05f6d9..423317ed43 100644 --- a/docs/pt-BR/1.10.x/doc-markdown.html +++ b/docs/pt-BR/1.10.x/doc-markdown.html @@ -214,7 +214,7 @@ usePrism: ['jsx']
class Exemplo extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Clique aqui"
diff --git a/docs/pt-BR/1.10.x/doc-markdown/index.html b/docs/pt-BR/1.10.x/doc-markdown/index.html
index 5eaf05f6d9..423317ed43 100644
--- a/docs/pt-BR/1.10.x/doc-markdown/index.html
+++ b/docs/pt-BR/1.10.x/doc-markdown/index.html
@@ -214,7 +214,7 @@ usePrism: ['jsx']
 
class Exemplo extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Clique aqui"
diff --git a/docs/pt-BR/1.11.x/api-pages.html b/docs/pt-BR/1.11.x/api-pages.html
index e9522866a4..9a41cfab26 100644
--- a/docs/pt-BR/1.11.x/api-pages.html
+++ b/docs/pt-BR/1.11.x/api-pages.html
@@ -202,21 +202,21 @@ MyPage.title = 'Minha Descrição';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/pt-BR/1.11.x/api-pages/index.html b/docs/pt-BR/1.11.x/api-pages/index.html
index e9522866a4..9a41cfab26 100644
--- a/docs/pt-BR/1.11.x/api-pages/index.html
+++ b/docs/pt-BR/1.11.x/api-pages/index.html
@@ -202,21 +202,21 @@ MyPage.title = 'Minha Descrição';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/pt-BR/1.11.x/doc-markdown.html b/docs/pt-BR/1.11.x/doc-markdown.html
index 782de822c6..cc6e84995e 100644
--- a/docs/pt-BR/1.11.x/doc-markdown.html
+++ b/docs/pt-BR/1.11.x/doc-markdown.html
@@ -214,7 +214,7 @@ usePrism: ['jsx']
 
class Exemplo extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Clique aqui"
diff --git a/docs/pt-BR/1.11.x/doc-markdown/index.html b/docs/pt-BR/1.11.x/doc-markdown/index.html
index 782de822c6..cc6e84995e 100644
--- a/docs/pt-BR/1.11.x/doc-markdown/index.html
+++ b/docs/pt-BR/1.11.x/doc-markdown/index.html
@@ -214,7 +214,7 @@ usePrism: ['jsx']
 
class Exemplo extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Clique aqui"
diff --git a/docs/pt-BR/1.12.0/api-pages.html b/docs/pt-BR/1.12.0/api-pages.html
index 2674d50fd6..a88b741346 100644
--- a/docs/pt-BR/1.12.0/api-pages.html
+++ b/docs/pt-BR/1.12.0/api-pages.html
@@ -202,21 +202,21 @@ MyPage.title = 'Minha Descrição';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/pt-BR/1.12.0/api-pages/index.html b/docs/pt-BR/1.12.0/api-pages/index.html
index 2674d50fd6..a88b741346 100644
--- a/docs/pt-BR/1.12.0/api-pages/index.html
+++ b/docs/pt-BR/1.12.0/api-pages/index.html
@@ -202,21 +202,21 @@ MyPage.title = 'Minha Descrição';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/pt-BR/1.12.0/doc-markdown.html b/docs/pt-BR/1.12.0/doc-markdown.html
index 8073f5122e..22a8dd6555 100644
--- a/docs/pt-BR/1.12.0/doc-markdown.html
+++ b/docs/pt-BR/1.12.0/doc-markdown.html
@@ -214,7 +214,7 @@ usePrism: ['jsx']
 
class Exemplo extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Clique aqui"
diff --git a/docs/pt-BR/1.12.0/doc-markdown/index.html b/docs/pt-BR/1.12.0/doc-markdown/index.html
index 8073f5122e..22a8dd6555 100644
--- a/docs/pt-BR/1.12.0/doc-markdown/index.html
+++ b/docs/pt-BR/1.12.0/doc-markdown/index.html
@@ -214,7 +214,7 @@ usePrism: ['jsx']
 
class Exemplo extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Clique aqui"
diff --git a/docs/pt-BR/1.13.0/api-pages.html b/docs/pt-BR/1.13.0/api-pages.html
index 42cb3e5f74..f5f4498c63 100644
--- a/docs/pt-BR/1.13.0/api-pages.html
+++ b/docs/pt-BR/1.13.0/api-pages.html
@@ -202,21 +202,21 @@ MyPage.title = 'Minha Descrição';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/pt-BR/1.13.0/api-pages/index.html b/docs/pt-BR/1.13.0/api-pages/index.html
index 42cb3e5f74..f5f4498c63 100644
--- a/docs/pt-BR/1.13.0/api-pages/index.html
+++ b/docs/pt-BR/1.13.0/api-pages/index.html
@@ -202,21 +202,21 @@ MyPage.title = 'Minha Descrição';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/pt-BR/1.13.0/doc-markdown.html b/docs/pt-BR/1.13.0/doc-markdown.html
index 55e7428778..bd24b4212e 100644
--- a/docs/pt-BR/1.13.0/doc-markdown.html
+++ b/docs/pt-BR/1.13.0/doc-markdown.html
@@ -214,7 +214,7 @@ usePrism: ['jsx']
 
class Exemplo extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Clique aqui"
diff --git a/docs/pt-BR/1.13.0/doc-markdown/index.html b/docs/pt-BR/1.13.0/doc-markdown/index.html
index 55e7428778..bd24b4212e 100644
--- a/docs/pt-BR/1.13.0/doc-markdown/index.html
+++ b/docs/pt-BR/1.13.0/doc-markdown/index.html
@@ -214,7 +214,7 @@ usePrism: ['jsx']
 
class Exemplo extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Clique aqui"
diff --git a/docs/pt-BR/1.9.x/api-pages.html b/docs/pt-BR/1.9.x/api-pages.html
index 331f26ac73..eed696878b 100644
--- a/docs/pt-BR/1.9.x/api-pages.html
+++ b/docs/pt-BR/1.9.x/api-pages.html
@@ -202,21 +202,21 @@ MyPage.title = 'Minha Descrição';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/pt-BR/1.9.x/api-pages/index.html b/docs/pt-BR/1.9.x/api-pages/index.html
index 331f26ac73..eed696878b 100644
--- a/docs/pt-BR/1.9.x/api-pages/index.html
+++ b/docs/pt-BR/1.9.x/api-pages/index.html
@@ -202,21 +202,21 @@ MyPage.title = 'Minha Descrição';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/pt-BR/1.9.x/doc-markdown.html b/docs/pt-BR/1.9.x/doc-markdown.html
index dd316501e6..d8a0e79981 100644
--- a/docs/pt-BR/1.9.x/doc-markdown.html
+++ b/docs/pt-BR/1.9.x/doc-markdown.html
@@ -214,7 +214,7 @@ usePrism: ['jsx']
 
class Exemplo extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Clique aqui"
diff --git a/docs/pt-BR/1.9.x/doc-markdown/index.html b/docs/pt-BR/1.9.x/doc-markdown/index.html
index dd316501e6..d8a0e79981 100644
--- a/docs/pt-BR/1.9.x/doc-markdown/index.html
+++ b/docs/pt-BR/1.9.x/doc-markdown/index.html
@@ -214,7 +214,7 @@ usePrism: ['jsx']
 
class Exemplo extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Clique aqui"
diff --git a/docs/pt-BR/api-pages.html b/docs/pt-BR/api-pages.html
index ca7ac979f6..5f27b1c3f4 100644
--- a/docs/pt-BR/api-pages.html
+++ b/docs/pt-BR/api-pages.html
@@ -202,21 +202,21 @@ MyPage.title = 'Minha Descrição';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/pt-BR/api-pages/index.html b/docs/pt-BR/api-pages/index.html
index ca7ac979f6..5f27b1c3f4 100644
--- a/docs/pt-BR/api-pages/index.html
+++ b/docs/pt-BR/api-pages/index.html
@@ -202,21 +202,21 @@ MyPage.title = 'Minha Descrição';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/pt-BR/doc-markdown.html b/docs/pt-BR/doc-markdown.html
index 8cc16ed200..39e73f170b 100644
--- a/docs/pt-BR/doc-markdown.html
+++ b/docs/pt-BR/doc-markdown.html
@@ -232,7 +232,7 @@ ReactDOM.render(<h1>Olá, mundo!</h1>, document.getElementById('root
 
class Exemplo extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Clique aqui"
diff --git a/docs/pt-BR/doc-markdown/index.html b/docs/pt-BR/doc-markdown/index.html
index 8cc16ed200..39e73f170b 100644
--- a/docs/pt-BR/doc-markdown/index.html
+++ b/docs/pt-BR/doc-markdown/index.html
@@ -232,7 +232,7 @@ ReactDOM.render(<h1>Olá, mundo!</h1>, document.getElementById('root
 
class Exemplo extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Clique aqui"
diff --git a/docs/pt-BR/next/api-pages.html b/docs/pt-BR/next/api-pages.html
index 7fb9272810..d37d8b9a90 100644
--- a/docs/pt-BR/next/api-pages.html
+++ b/docs/pt-BR/next/api-pages.html
@@ -202,21 +202,21 @@ MyPage.title = 'Minha Descrição';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/pt-BR/next/api-pages/index.html b/docs/pt-BR/next/api-pages/index.html
index 7fb9272810..d37d8b9a90 100644
--- a/docs/pt-BR/next/api-pages/index.html
+++ b/docs/pt-BR/next/api-pages/index.html
@@ -202,21 +202,21 @@ MyPage.title = 'Minha Descrição';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/pt-BR/next/doc-markdown.html b/docs/pt-BR/next/doc-markdown.html
index 3d18a9a368..994757a622 100644
--- a/docs/pt-BR/next/doc-markdown.html
+++ b/docs/pt-BR/next/doc-markdown.html
@@ -217,7 +217,7 @@ usePrism: ['jsx']
 
class Exemplo extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Clique aqui"
diff --git a/docs/pt-BR/next/doc-markdown/index.html b/docs/pt-BR/next/doc-markdown/index.html
index 3d18a9a368..994757a622 100644
--- a/docs/pt-BR/next/doc-markdown/index.html
+++ b/docs/pt-BR/next/doc-markdown/index.html
@@ -217,7 +217,7 @@ usePrism: ['jsx']
 
class Exemplo extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Clique aqui"
diff --git a/docs/pt-BR/next/publishing.html b/docs/pt-BR/next/publishing.html
index cf8583e189..0826148ac8 100644
--- a/docs/pt-BR/next/publishing.html
+++ b/docs/pt-BR/next/publishing.html
@@ -306,34 +306,34 @@
 
 
# azure-pipelines.yml
 trigger:
-- master
+  - master
 
 pool:
   vmImage: 'ubuntu-latest'
 
 steps:
 
-- checkout: self
-  persistCredentials: true
+  - checkout: self
+    persistCredentials: true
 
-- task: NodeTool@0
-  inputs:
-    versionSpec: '10.x'
-  displayName: 'Install Node.js'
+  - task: NodeTool@0
+    inputs:
+      versionSpec: '10.x'
+    displayName: 'Install Node.js'
 
-- script: |
-    git config --global user.name "${GH_NAME}"
-    git config --global user.email "${GH_EMAIL}"
-    git checkout -b master
-    echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
-    cd website
-    yarn install
-    GIT_USER="${GH_NAME}" CURRENT_BRANCH=master yarn run publish-gh-pages
-  env:
-    GH_NAME: $(GH_NAME)
-    GH_EMAIL: $(GH_EMAIL)
-    GH_TOKEN: $(GH_TOKEN)
-  displayName: 'yarn install and build'
+  - script: |
+      git config --global user.name "${GH_NAME}"
+      git config --global user.email "${GH_EMAIL}"
+      git checkout -b master
+      echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
+      cd website
+      yarn install
+      GIT_USER="${GH_NAME}" CURRENT_BRANCH=master yarn run publish-gh-pages
+    env:
+      GH_NAME: $(GH_NAME)
+      GH_EMAIL: $(GH_EMAIL)
+      GH_TOKEN: $(GH_TOKEN)
+    displayName: 'yarn install and build'
 

Hosting on ZEIT Now

With ZEIT Now, you can deploy your site and connect it to GitHub or GitLab to automatically receive a new deployment every time you push a commit.

diff --git a/docs/pt-BR/next/publishing/index.html b/docs/pt-BR/next/publishing/index.html index cf8583e189..0826148ac8 100644 --- a/docs/pt-BR/next/publishing/index.html +++ b/docs/pt-BR/next/publishing/index.html @@ -306,34 +306,34 @@
# azure-pipelines.yml
 trigger:
-- master
+  - master
 
 pool:
   vmImage: 'ubuntu-latest'
 
 steps:
 
-- checkout: self
-  persistCredentials: true
+  - checkout: self
+    persistCredentials: true
 
-- task: NodeTool@0
-  inputs:
-    versionSpec: '10.x'
-  displayName: 'Install Node.js'
+  - task: NodeTool@0
+    inputs:
+      versionSpec: '10.x'
+    displayName: 'Install Node.js'
 
-- script: |
-    git config --global user.name "${GH_NAME}"
-    git config --global user.email "${GH_EMAIL}"
-    git checkout -b master
-    echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
-    cd website
-    yarn install
-    GIT_USER="${GH_NAME}" CURRENT_BRANCH=master yarn run publish-gh-pages
-  env:
-    GH_NAME: $(GH_NAME)
-    GH_EMAIL: $(GH_EMAIL)
-    GH_TOKEN: $(GH_TOKEN)
-  displayName: 'yarn install and build'
+  - script: |
+      git config --global user.name "${GH_NAME}"
+      git config --global user.email "${GH_EMAIL}"
+      git checkout -b master
+      echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
+      cd website
+      yarn install
+      GIT_USER="${GH_NAME}" CURRENT_BRANCH=master yarn run publish-gh-pages
+    env:
+      GH_NAME: $(GH_NAME)
+      GH_EMAIL: $(GH_EMAIL)
+      GH_TOKEN: $(GH_TOKEN)
+    displayName: 'yarn install and build'
 

Hosting on ZEIT Now

With ZEIT Now, you can deploy your site and connect it to GitHub or GitLab to automatically receive a new deployment every time you push a commit.

diff --git a/docs/pt-BR/site-config.html b/docs/pt-BR/site-config.html index e25a626cf0..7d82ce5fa5 100644 --- a/docs/pt-BR/site-config.html +++ b/docs/pt-BR/site-config.html @@ -144,6 +144,9 @@

Control the title of the blog sidebar. See the adding a blog docs for more information.

limparUrl [boolean]

Se verdade, permita URLs sem a extensão HTML. Por exemplo, um pedido para a URL https://docusaurus.io/docs/installation retornará o mesmo resultado que https://docusaurus.io/docs/installation.html.

+
+

Se os usuários pretendem que este site seja usado exclusivamente offline, este valor deve ser definido para false. Caso contrário, ele fará com que o site siga para a pasta pai da página vinculada.

+

cname [string]

The CNAME for your website. It will go into a CNAME file when your site is built.

customDocsPath [string]

@@ -241,8 +244,8 @@

An array of plugins to be loaded by Remarkable, the markdown parser and renderer used by Docusaurus. The plugin will receive a reference to the Remarkable instance, allowing custom parsing and rendering rules to be defined.

For example, if you want to enable superscript and subscript in your markdown that is rendered by Remarkable to HTML, you would do the following:

  markdownPlugins: [
-    function foo(md) {
-      md.inline.ruler.enable(['sub', 'sup']);
+    function foo(md) {
+      md.inline.ruler.enable(['sub', 'sup']);
     },
   ],
 
@@ -282,6 +285,14 @@

wrapPagesHTML [boolean]

Boolean flag to indicate whether HTML files in /pages should be wrapped with Docusaurus site styles, header and footer. This feature is experimental and relies on the files being HTML fragments instead of complete pages. It inserts the contents of your HTML file with no extra processing. Defaults to false.

Users can also add their own custom fields if they wish to provide some data across different files.

+

Adicionando Google Fonts

+ +

Google Fonts oferece tempos de carga mais rápidos, cache de fontes sem forçar os usuários a sacrificar a privacidade. Para obter mais informações sobre o Google Fonts, consulte a documentação Google Fonts.

+

Para adicionar Google Fonts à sua implantação do Docusaurus, adicione o caminho de fonte para siteConfig.js sob stylesheets:

+
stylesheets: [
+  'https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,700',
+],
+

Examplo de siteConfig.js com vários campos disponíveis

const users = [
   {
@@ -377,7 +388,7 @@
 
 module.exports = siteConfig;
 
-

SEU_ID_DE_PROJETO_CROWDIN é o nome do seu projeto no Crowdin. P. ex., no caso de https://crowdin.com/project/docusaurus/, essa variável teria o valor docusaurus. SUA_CHAVE_DE_API_CROWDIN é uma chave única e exclusiva, semelhante a uma senha. Você pode encontrá-la na aba API da página Settings do seu projeto do Crowdin.

+
+

Esses comandos exigem que se definam variáveis de ambiente para seu ID de projeto do Crowdin e sua chave de API (CROWDIN_PROJECT_ID, CROWDIN_API_KEY). Você pode defini-las inline, como feito acima, ou adicionar elas permanentemente ao seu .bashrc ou .bash_profile.

+
+

Caso você gerencie mais de um projeto do Docusaurus com traduções no seu computador, recomendamos mudar o nome das variáveis de ambiente para algo mais único (ID_CROWDIN_NOMEPROJETO, CHAVE_API_CROWDIN_NOMEPROJETO).

+
+

Já que os arquivos são gerados, não é necessário manter nenhum dos arquivos nos seus diretórios website/i18n ou website/translated_docs como parte do seu repositório. Logo, você pode adicionar website/i18n/* e website/translated_docs ao seu arquivo .gitignore.

Sincronização automatizada usando o CircleCI

Você pode automatizar o download e upload de arquivos e traduções usando o serviço de integração contínua CircleCI.

Primeiro de tudo, atualize o arquivo .circleci/config.yml no diretório do seu projeto para incluir as etapas de upload dos arquivos no idioma original a serem traduzidos e de download dos arquivos traduzidos usando a CLI do Crowdin. Aqui está um arquivo .circleci/config.yml de exemplo:

-
# Se você quiser que o Circle entre em ação apenas em commits diretos à master,
-# você pode descomentar as linhas seguintes e também o filtro `*filter-only-master`
-# lá embaixo
+
# If you only want circle to run on direct commits to master, you can uncomment this out
+# and uncomment the filters: *filter-only-master down below too
 #
 # aliases:
 #  - &filter-only-master
@@ -260,37 +264,33 @@ CROWDIN_DOCUSAURUS_PROJECT_ID=SEU_ID_DE_PROJETO_CROWDIN CROWDIN_DOCUSAURUS_API_K
 jobs:
   deploy-website:
     docker:
-      # Especifique aqui a versão desejada
-
+      # specify the version you desire here
       - image: circleci/node:8.11.1
 
     steps:
-
       - checkout
       - run:
-          name: Fazendo deploy no GitHub Pages
+          name: Deploying to GitHub Pages
           command: |
-            git config --global user.email 
-"<GITHUB_USERNAME>@users.noreply.github.com"
-            git config --global user.name "<YOUR_NAME>"
-            echo "machine github.com login <GITHUB_USERNAME> password $GITHUB_TOKEN" > ~/.netrc
-            # Instala o Docusaurus e gera o arquivo das strings em inglês
-            - cd website && yarn install && yarn run write-translations && cd ..
-            # Instala o Crowdin
-            - sudo apt-get install default-jre
-            - wget https://artifacts.crowdin.com/repo/deb/crowdin.deb -O crowdin.deb
-            - sudo dpkg -i crowdin.deb
-            # Faz o upload/download das traduções
-            - crowdin --config crowdin.yaml upload sources --auto-update -b master
-            - crowdin --config crowdin.yaml download -b master
-            # build and publish website
-            cd website && GIT_USER=<GIT_USER> yarn run publish-gh-pages
-
+            git config --global user.email "<GITHUB_USERNAME>@users.noreply.github.com"
+            git config --global user.name "<YOUR_NAME>"
+            echo "machine github.com login <GITHUB_USERNAME> password $GITHUB_TOKEN" > ~/.netrc
+            # install Docusaurus and generate file of English strings
+            - cd website && yarn install && yarn run write-translations && cd ..
+            # crowdin install
+            - sudo apt-get install default-jre
+            - wget https://artifacts.crowdin.com/repo/deb/crowdin.deb -O crowdin.deb
+            - sudo dpkg -i crowdin.deb
+            # translations upload/download
+            - crowdin --config crowdin.yaml upload sources --auto-update -b master
+            - crowdin --config crowdin.yaml download -b master
+            # build and publish website
+            cd website && GIT_USER=<GIT_USER> yarn run publish-gh-pages
+
 workflows:
   version: 2
   build_and_deploy:
     jobs:
-
       - deploy-website:
 #         filters: *filter-only-master
 
diff --git a/docs/pt-BR/translation/index.html b/docs/pt-BR/translation/index.html index 20fc618248..bc074f2af0 100644 --- a/docs/pt-BR/translation/index.html +++ b/docs/pt-BR/translation/index.html @@ -1,4 +1,4 @@ -Translations & Localization · Docusaurus
Translate

Translations & Localization

O Docusaurus permite que seu site possa ser facilmente traduzido usando o Crowdin. Os arquivos de documentação escritos em inglês são enviados ao Crowdin para serem traduzidos por usuários dentro de uma comunidade. Páginas de nível superior escritas em inglês podem ser traduzidas apenas colocando as strings que você quer traduzidas dentro de tags <translate>. Outros títulos e rótulos também serão encontrados e traduzidos adequadamente.

+
Translate

Translations & Localization

Docusaurus allows for useful translation functionality using Crowdin. Os arquivos de documentação escritos em inglês são enviados ao Crowdin para serem traduzidos por usuários dentro de uma comunidade. Páginas de nível superior escritas em inglês podem ser traduzidas apenas colocando as strings que você quer traduzidas dentro de tags <translate>. Outros títulos e rótulos também serão encontrados e traduzidos adequadamente.

Configurações de tradução do Docusaurus

Para gerar arquivos de exemplo de traduções do Docusaurus, execute o script examples na linha de comando, juntamente com o argumento translations:

npm run examples translations
@@ -113,13 +113,13 @@ languages.js
 const translate = require('../../server/translate.js').translate;
 ...
 <h2>
-  <translate>Esse título será traduzido</translate>
+  <translate>This header will be translated</translate>
 </h2>
 ...
 

Você também pode adicionar uma descrição opcional que dê mais contexto aos tradutores sobre como traduzir a string:

<p>
-  <translate desc="a peça de roupa, não o verbo">Saia</translate>
+  <translate desc="flower, not verb">Rose</translate>
 <p>
 
@@ -189,10 +189,10 @@ languages.js

Arquivos Markdown

No caso dos próprios arquivos da documentação, as versões traduzidas desses arquivos serão baixadas e então renderizadas usando o modelo de layout adequado.

Outras páginas

-

Para outras páginas, o Docusaurus vai automaticamente transformar todas as tags <translate> que ele encontrar em chamadas de função que vão retornar as strings traduzidas presentes no arquivo traduzido locale.json correspondente.

+

For other pages, Docusaurus will automatically transform all <translate> tags it finds into function calls that return the translated strings from the corresponding localized file locale.json.

Crowdin

Crowdin é uma empresa que fornece serviços de tradução. O Crowdin disponibiliza seus serviços gratuitamente para projetos de código aberto.

-

Crie seu projeto de tradução no Crowdin. Você pode seguir os guias do Crowdin para saber mais sobre como funciona o processo de tradução. Sugerimos que você desmarque e não inclua "English" como um idioma traduzível para evitar a criação de arquivos de tradução en-US, já que isso pode levar a confusão.

+

Crie seu projeto de tradução no Crowdin. Você pode seguir os guias do Crowdin para saber mais sobre como funciona o processo de tradução. We suggest that you deselect and do not include "English" as a translatable language to prevent the creation of en-US localization files as this can lead to confusion.

Garanta que nas suas configurações do Crowdin, na seção Translations, que a opção "Duplicate Strings" esteja configurada como "Hide - all duplicates will share the same translation". Essa configuração irá garantir que strings idênticas entre versões compartilhem uma única tradução.

@@ -208,7 +208,6 @@ languages.js preserve_hierarchy: true files: - - source: '/docs/**/*.md' translation: '/website/translated_docs/%locale%/**/%original_file_name%' languages_mapping: &anchor @@ -239,16 +238,21 @@ CROWDIN_DOCUSAURUS_PROJECT_ID=SEU_ID_DE_PROJETO_CROWDIN CROWDIN_DOCUSAURUS_API_K

SEU_ID_DE_PROJETO_CROWDIN é o nome do seu projeto no Crowdin. P. ex., no caso de https://crowdin.com/project/docusaurus/, essa variável teria o valor docusaurus. SUA_CHAVE_DE_API_CROWDIN é uma chave única e exclusiva, semelhante a uma senha. Você pode encontrá-la na aba API da página Settings do seu projeto do Crowdin.

+
+

Esses comandos exigem que se definam variáveis de ambiente para seu ID de projeto do Crowdin e sua chave de API (CROWDIN_PROJECT_ID, CROWDIN_API_KEY). Você pode defini-las inline, como feito acima, ou adicionar elas permanentemente ao seu .bashrc ou .bash_profile.

+
+

Caso você gerencie mais de um projeto do Docusaurus com traduções no seu computador, recomendamos mudar o nome das variáveis de ambiente para algo mais único (ID_CROWDIN_NOMEPROJETO, CHAVE_API_CROWDIN_NOMEPROJETO).

+
+

Já que os arquivos são gerados, não é necessário manter nenhum dos arquivos nos seus diretórios website/i18n ou website/translated_docs como parte do seu repositório. Logo, você pode adicionar website/i18n/* e website/translated_docs ao seu arquivo .gitignore.

Sincronização automatizada usando o CircleCI

Você pode automatizar o download e upload de arquivos e traduções usando o serviço de integração contínua CircleCI.

Primeiro de tudo, atualize o arquivo .circleci/config.yml no diretório do seu projeto para incluir as etapas de upload dos arquivos no idioma original a serem traduzidos e de download dos arquivos traduzidos usando a CLI do Crowdin. Aqui está um arquivo .circleci/config.yml de exemplo:

-
# Se você quiser que o Circle entre em ação apenas em commits diretos à master,
-# você pode descomentar as linhas seguintes e também o filtro `*filter-only-master`
-# lá embaixo
+
# If you only want circle to run on direct commits to master, you can uncomment this out
+# and uncomment the filters: *filter-only-master down below too
 #
 # aliases:
 #  - &filter-only-master
@@ -260,37 +264,33 @@ CROWDIN_DOCUSAURUS_PROJECT_ID=SEU_ID_DE_PROJETO_CROWDIN CROWDIN_DOCUSAURUS_API_K
 jobs:
   deploy-website:
     docker:
-      # Especifique aqui a versão desejada
-
+      # specify the version you desire here
       - image: circleci/node:8.11.1
 
     steps:
-
       - checkout
       - run:
-          name: Fazendo deploy no GitHub Pages
+          name: Deploying to GitHub Pages
           command: |
-            git config --global user.email 
-"<GITHUB_USERNAME>@users.noreply.github.com"
-            git config --global user.name "<YOUR_NAME>"
-            echo "machine github.com login <GITHUB_USERNAME> password $GITHUB_TOKEN" > ~/.netrc
-            # Instala o Docusaurus e gera o arquivo das strings em inglês
-            - cd website && yarn install && yarn run write-translations && cd ..
-            # Instala o Crowdin
-            - sudo apt-get install default-jre
-            - wget https://artifacts.crowdin.com/repo/deb/crowdin.deb -O crowdin.deb
-            - sudo dpkg -i crowdin.deb
-            # Faz o upload/download das traduções
-            - crowdin --config crowdin.yaml upload sources --auto-update -b master
-            - crowdin --config crowdin.yaml download -b master
-            # build and publish website
-            cd website && GIT_USER=<GIT_USER> yarn run publish-gh-pages
-
+            git config --global user.email "<GITHUB_USERNAME>@users.noreply.github.com"
+            git config --global user.name "<YOUR_NAME>"
+            echo "machine github.com login <GITHUB_USERNAME> password $GITHUB_TOKEN" > ~/.netrc
+            # install Docusaurus and generate file of English strings
+            - cd website && yarn install && yarn run write-translations && cd ..
+            # crowdin install
+            - sudo apt-get install default-jre
+            - wget https://artifacts.crowdin.com/repo/deb/crowdin.deb -O crowdin.deb
+            - sudo dpkg -i crowdin.deb
+            # translations upload/download
+            - crowdin --config crowdin.yaml upload sources --auto-update -b master
+            - crowdin --config crowdin.yaml download -b master
+            # build and publish website
+            cd website && GIT_USER=<GIT_USER> yarn run publish-gh-pages
+
 workflows:
   version: 2
   build_and_deploy:
     jobs:
-
       - deploy-website:
 #         filters: *filter-only-master
 
diff --git a/docs/ro/1.10.x/api-pages.html b/docs/ro/1.10.x/api-pages.html index 75fb1d6067..b3fd8ebe3e 100644 --- a/docs/ro/1.10.x/api-pages.html +++ b/docs/ro/1.10.x/api-pages.html @@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description'; className="myCustomClass" contents={[ { - title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`, - content: 'Learn how to use this project', - image: siteConfig.baseUrl + 'img/learn.png', - imageAlt: 'Learn how to use this project', - imageLink: siteConfig.baseUrl + 'docs/tutorial.html', + title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`, + content: 'Learn how to use this project', + image: siteConfig.baseUrl + 'img/learn.png', + imageAlt: 'Learn how to use this project', + imageLink: siteConfig.baseUrl + 'docs/tutorial.html', }, { - title: 'Frequently Asked Questions', - content: 'Questions gathered from the community', - image: siteConfig.baseUrl + 'img/faq.png', - imageAlign: 'top', + title: 'Frequently Asked Questions', + content: 'Questions gathered from the community', + image: siteConfig.baseUrl + 'img/faq.png', + imageAlign: 'top', }, { - title: 'More', - content: 'Lots of documentation is on this site', + title: 'More', + content: 'Lots of documentation is on this site', }, ]} /> diff --git a/docs/ro/1.10.x/api-pages/index.html b/docs/ro/1.10.x/api-pages/index.html index 75fb1d6067..b3fd8ebe3e 100644 --- a/docs/ro/1.10.x/api-pages/index.html +++ b/docs/ro/1.10.x/api-pages/index.html @@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description'; className="myCustomClass" contents={[ { - title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`, - content: 'Learn how to use this project', - image: siteConfig.baseUrl + 'img/learn.png', - imageAlt: 'Learn how to use this project', - imageLink: siteConfig.baseUrl + 'docs/tutorial.html', + title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`, + content: 'Learn how to use this project', + image: siteConfig.baseUrl + 'img/learn.png', + imageAlt: 'Learn how to use this project', + imageLink: siteConfig.baseUrl + 'docs/tutorial.html', }, { - title: 'Frequently Asked Questions', - content: 'Questions gathered from the community', - image: siteConfig.baseUrl + 'img/faq.png', - imageAlign: 'top', + title: 'Frequently Asked Questions', + content: 'Questions gathered from the community', + image: siteConfig.baseUrl + 'img/faq.png', + imageAlign: 'top', }, { - title: 'More', - content: 'Lots of documentation is on this site', + title: 'More', + content: 'Lots of documentation is on this site', }, ]} /> diff --git a/docs/ro/1.10.x/doc-markdown.html b/docs/ro/1.10.x/doc-markdown.html index aca78fe459..89cd04616e 100644 --- a/docs/ro/1.10.x/doc-markdown.html +++ b/docs/ro/1.10.x/doc-markdown.html @@ -214,7 +214,7 @@ usePrism: ['jsx']
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/ro/1.10.x/doc-markdown/index.html b/docs/ro/1.10.x/doc-markdown/index.html
index aca78fe459..89cd04616e 100644
--- a/docs/ro/1.10.x/doc-markdown/index.html
+++ b/docs/ro/1.10.x/doc-markdown/index.html
@@ -214,7 +214,7 @@ usePrism: ['jsx']
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/ro/1.11.x/api-pages.html b/docs/ro/1.11.x/api-pages.html
index a3c2a2c7b7..7f561b3da0 100644
--- a/docs/ro/1.11.x/api-pages.html
+++ b/docs/ro/1.11.x/api-pages.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/ro/1.11.x/api-pages/index.html b/docs/ro/1.11.x/api-pages/index.html
index a3c2a2c7b7..7f561b3da0 100644
--- a/docs/ro/1.11.x/api-pages/index.html
+++ b/docs/ro/1.11.x/api-pages/index.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/ro/1.11.x/doc-markdown.html b/docs/ro/1.11.x/doc-markdown.html
index ca52773d9b..59423dee47 100644
--- a/docs/ro/1.11.x/doc-markdown.html
+++ b/docs/ro/1.11.x/doc-markdown.html
@@ -214,7 +214,7 @@ usePrism: ['jsx']
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/ro/1.11.x/doc-markdown/index.html b/docs/ro/1.11.x/doc-markdown/index.html
index ca52773d9b..59423dee47 100644
--- a/docs/ro/1.11.x/doc-markdown/index.html
+++ b/docs/ro/1.11.x/doc-markdown/index.html
@@ -214,7 +214,7 @@ usePrism: ['jsx']
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/ro/1.12.0/api-pages.html b/docs/ro/1.12.0/api-pages.html
index a9cf4401cb..06ec2c4616 100644
--- a/docs/ro/1.12.0/api-pages.html
+++ b/docs/ro/1.12.0/api-pages.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/ro/1.12.0/api-pages/index.html b/docs/ro/1.12.0/api-pages/index.html
index a9cf4401cb..06ec2c4616 100644
--- a/docs/ro/1.12.0/api-pages/index.html
+++ b/docs/ro/1.12.0/api-pages/index.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/ro/1.12.0/doc-markdown.html b/docs/ro/1.12.0/doc-markdown.html
index 29b11b4adf..b48d20151d 100644
--- a/docs/ro/1.12.0/doc-markdown.html
+++ b/docs/ro/1.12.0/doc-markdown.html
@@ -214,7 +214,7 @@ usePrism: ['jsx']
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/ro/1.12.0/doc-markdown/index.html b/docs/ro/1.12.0/doc-markdown/index.html
index 29b11b4adf..b48d20151d 100644
--- a/docs/ro/1.12.0/doc-markdown/index.html
+++ b/docs/ro/1.12.0/doc-markdown/index.html
@@ -214,7 +214,7 @@ usePrism: ['jsx']
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/ro/1.13.0/api-pages.html b/docs/ro/1.13.0/api-pages.html
index f7d7ec21ee..4c67f37fef 100644
--- a/docs/ro/1.13.0/api-pages.html
+++ b/docs/ro/1.13.0/api-pages.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/ro/1.13.0/api-pages/index.html b/docs/ro/1.13.0/api-pages/index.html
index f7d7ec21ee..4c67f37fef 100644
--- a/docs/ro/1.13.0/api-pages/index.html
+++ b/docs/ro/1.13.0/api-pages/index.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/ro/1.13.0/doc-markdown.html b/docs/ro/1.13.0/doc-markdown.html
index 742d258275..564b7f5397 100644
--- a/docs/ro/1.13.0/doc-markdown.html
+++ b/docs/ro/1.13.0/doc-markdown.html
@@ -214,7 +214,7 @@ usePrism: ['jsx']
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/ro/1.13.0/doc-markdown/index.html b/docs/ro/1.13.0/doc-markdown/index.html
index 742d258275..564b7f5397 100644
--- a/docs/ro/1.13.0/doc-markdown/index.html
+++ b/docs/ro/1.13.0/doc-markdown/index.html
@@ -214,7 +214,7 @@ usePrism: ['jsx']
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/ro/1.9.x/api-pages.html b/docs/ro/1.9.x/api-pages.html
index 9a856cb3e8..cd99a6ff29 100644
--- a/docs/ro/1.9.x/api-pages.html
+++ b/docs/ro/1.9.x/api-pages.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/ro/1.9.x/api-pages/index.html b/docs/ro/1.9.x/api-pages/index.html
index 9a856cb3e8..cd99a6ff29 100644
--- a/docs/ro/1.9.x/api-pages/index.html
+++ b/docs/ro/1.9.x/api-pages/index.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/ro/1.9.x/doc-markdown.html b/docs/ro/1.9.x/doc-markdown.html
index 6b37a62da0..49993f5ca1 100644
--- a/docs/ro/1.9.x/doc-markdown.html
+++ b/docs/ro/1.9.x/doc-markdown.html
@@ -214,7 +214,7 @@ usePrism: ['jsx']
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/ro/1.9.x/doc-markdown/index.html b/docs/ro/1.9.x/doc-markdown/index.html
index 6b37a62da0..49993f5ca1 100644
--- a/docs/ro/1.9.x/doc-markdown/index.html
+++ b/docs/ro/1.9.x/doc-markdown/index.html
@@ -214,7 +214,7 @@ usePrism: ['jsx']
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/ro/api-pages.html b/docs/ro/api-pages.html
index 940d241a4a..754289f932 100644
--- a/docs/ro/api-pages.html
+++ b/docs/ro/api-pages.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/ro/api-pages/index.html b/docs/ro/api-pages/index.html
index 940d241a4a..754289f932 100644
--- a/docs/ro/api-pages/index.html
+++ b/docs/ro/api-pages/index.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/ro/doc-markdown.html b/docs/ro/doc-markdown.html
index 2d881ef38c..fe711281b5 100644
--- a/docs/ro/doc-markdown.html
+++ b/docs/ro/doc-markdown.html
@@ -232,7 +232,7 @@ ReactDOM.render(<h1>Hello, world!</h1>, document.getElementById('roo
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/ro/doc-markdown/index.html b/docs/ro/doc-markdown/index.html
index 2d881ef38c..fe711281b5 100644
--- a/docs/ro/doc-markdown/index.html
+++ b/docs/ro/doc-markdown/index.html
@@ -232,7 +232,7 @@ ReactDOM.render(<h1>Hello, world!</h1>, document.getElementById('roo
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/ro/next/api-pages.html b/docs/ro/next/api-pages.html
index 88eb5cc306..c67a13d01a 100644
--- a/docs/ro/next/api-pages.html
+++ b/docs/ro/next/api-pages.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/ro/next/api-pages/index.html b/docs/ro/next/api-pages/index.html
index 88eb5cc306..c67a13d01a 100644
--- a/docs/ro/next/api-pages/index.html
+++ b/docs/ro/next/api-pages/index.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/ro/next/doc-markdown.html b/docs/ro/next/doc-markdown.html
index 93c1d4c68c..e800451be3 100644
--- a/docs/ro/next/doc-markdown.html
+++ b/docs/ro/next/doc-markdown.html
@@ -217,7 +217,7 @@ usePrism: ['jsx']
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/ro/next/doc-markdown/index.html b/docs/ro/next/doc-markdown/index.html
index 93c1d4c68c..e800451be3 100644
--- a/docs/ro/next/doc-markdown/index.html
+++ b/docs/ro/next/doc-markdown/index.html
@@ -217,7 +217,7 @@ usePrism: ['jsx']
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/ro/next/publishing.html b/docs/ro/next/publishing.html
index 87defeab18..acf4df8c57 100644
--- a/docs/ro/next/publishing.html
+++ b/docs/ro/next/publishing.html
@@ -306,34 +306,34 @@
 
 
# azure-pipelines.yml
 trigger:
-- master
+  - master
 
 pool:
   vmImage: 'ubuntu-latest'
 
 steps:
 
-- checkout: self
-  persistCredentials: true
+  - checkout: self
+    persistCredentials: true
 
-- task: NodeTool@0
-  inputs:
-    versionSpec: '10.x'
-  displayName: 'Install Node.js'
+  - task: NodeTool@0
+    inputs:
+      versionSpec: '10.x'
+    displayName: 'Install Node.js'
 
-- script: |
-    git config --global user.name "${GH_NAME}"
-    git config --global user.email "${GH_EMAIL}"
-    git checkout -b master
-    echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
-    cd website
-    yarn install
-    GIT_USER="${GH_NAME}" CURRENT_BRANCH=master yarn run publish-gh-pages
-  env:
-    GH_NAME: $(GH_NAME)
-    GH_EMAIL: $(GH_EMAIL)
-    GH_TOKEN: $(GH_TOKEN)
-  displayName: 'yarn install and build'
+  - script: |
+      git config --global user.name "${GH_NAME}"
+      git config --global user.email "${GH_EMAIL}"
+      git checkout -b master
+      echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
+      cd website
+      yarn install
+      GIT_USER="${GH_NAME}" CURRENT_BRANCH=master yarn run publish-gh-pages
+    env:
+      GH_NAME: $(GH_NAME)
+      GH_EMAIL: $(GH_EMAIL)
+      GH_TOKEN: $(GH_TOKEN)
+    displayName: 'yarn install and build'
 

Hosting on ZEIT Now

With ZEIT Now, you can deploy your site and connect it to GitHub or GitLab to automatically receive a new deployment every time you push a commit.

diff --git a/docs/ro/next/publishing/index.html b/docs/ro/next/publishing/index.html index 87defeab18..acf4df8c57 100644 --- a/docs/ro/next/publishing/index.html +++ b/docs/ro/next/publishing/index.html @@ -306,34 +306,34 @@
# azure-pipelines.yml
 trigger:
-- master
+  - master
 
 pool:
   vmImage: 'ubuntu-latest'
 
 steps:
 
-- checkout: self
-  persistCredentials: true
+  - checkout: self
+    persistCredentials: true
 
-- task: NodeTool@0
-  inputs:
-    versionSpec: '10.x'
-  displayName: 'Install Node.js'
+  - task: NodeTool@0
+    inputs:
+      versionSpec: '10.x'
+    displayName: 'Install Node.js'
 
-- script: |
-    git config --global user.name "${GH_NAME}"
-    git config --global user.email "${GH_EMAIL}"
-    git checkout -b master
-    echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
-    cd website
-    yarn install
-    GIT_USER="${GH_NAME}" CURRENT_BRANCH=master yarn run publish-gh-pages
-  env:
-    GH_NAME: $(GH_NAME)
-    GH_EMAIL: $(GH_EMAIL)
-    GH_TOKEN: $(GH_TOKEN)
-  displayName: 'yarn install and build'
+  - script: |
+      git config --global user.name "${GH_NAME}"
+      git config --global user.email "${GH_EMAIL}"
+      git checkout -b master
+      echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
+      cd website
+      yarn install
+      GIT_USER="${GH_NAME}" CURRENT_BRANCH=master yarn run publish-gh-pages
+    env:
+      GH_NAME: $(GH_NAME)
+      GH_EMAIL: $(GH_EMAIL)
+      GH_TOKEN: $(GH_TOKEN)
+    displayName: 'yarn install and build'
 

Hosting on ZEIT Now

With ZEIT Now, you can deploy your site and connect it to GitHub or GitLab to automatically receive a new deployment every time you push a commit.

diff --git a/docs/ro/site-config.html b/docs/ro/site-config.html index 45531413ba..b6c043047c 100644 --- a/docs/ro/site-config.html +++ b/docs/ro/site-config.html @@ -144,6 +144,9 @@

Control the title of the blog sidebar. See the adding a blog docs for more information.

cleanUrl [boolean]

If true, allow URLs with no HTML extension. For example, a request to URL https://docusaurus.io/docs/installation will return the same result as https://docusaurus.io/docs/installation.html.

+
+

If users intend for this website to be used exclusively offline, this value must be set to false. Otherwise, it will cause the site to route to the parent folder of the linked page.

+

cname [string]

The CNAME for your website. It will go into a CNAME file when your site is built.

customDocsPath [string]

@@ -241,8 +244,8 @@

An array of plugins to be loaded by Remarkable, the markdown parser and renderer used by Docusaurus. The plugin will receive a reference to the Remarkable instance, allowing custom parsing and rendering rules to be defined.

For example, if you want to enable superscript and subscript in your markdown that is rendered by Remarkable to HTML, you would do the following:

  markdownPlugins: [
-    function foo(md) {
-      md.inline.ruler.enable(['sub', 'sup']);
+    function foo(md) {
+      md.inline.ruler.enable(['sub', 'sup']);
     },
   ],
 
@@ -282,6 +285,14 @@

wrapPagesHTML [boolean]

Boolean flag to indicate whether HTML files in /pages should be wrapped with Docusaurus site styles, header and footer. This feature is experimental and relies on the files being HTML fragments instead of complete pages. It inserts the contents of your HTML file with no extra processing. Defaults to false.

Users can also add their own custom fields if they wish to provide some data across different files.

+

Adding Google Fonts

+ +

Google Fonts offers faster load times by caching fonts without forcing users to sacrifice privacy. For more information on Google Fonts, see the Google Fonts documentation.

+

To add Google Fonts to your Docusaurus deployment, add the font path to the siteConfig.js under stylesheets:

+
stylesheets: [
+  'https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,700',
+],
+

Example siteConfig.js with many available fields

const users = [
   {
@@ -377,7 +388,7 @@
 
 module.exports = siteConfig;
 
-

YOUR_CROWDIN_PROJECT_ID is the name of your Crowdin project. e.g., for https://crowdin.com/project/docusaurus/, that variable would be set to docusaurus. YOUR_CROWDIN_API_KEY is a unique key that is like a password. You can find it in the API tab of your Crowdin project's Settings.

+
+

These commands require having an environment variable set with your Crowdin project id and api key (CROWDIN_PROJECT_ID, CROWDIN_API_KEY). You can preface them inline as done above or add them permanently to your .bashrc or .bash_profile.

+
+

If you run more than one localized Docusaurus project on your computer, you should change the name of the environment variables to something unique (CROWDIN_PROJECTNAME_PROJECT_ID, CROWDIN_PROJECTNAME_API_KEY).

+
+

Since the files are generated, you do not need to have any files in your website/i18n or website/translated_docs directory as part of your repo. So you can can add website/i18n/* and website/translated_docs to your .gitignore file.

Automated File Sync Using CircleCI

@@ -260,11 +265,9 @@ CROWDIN_DOCUSAURUS_PROJECT_ID=YOUR_CROWDIN_PROJECT_ID CROWDIN_DOCUSAURUS_API_KEY deploy-website: docker: # specify the version you desire here - - image: circleci/node:8.11.1 steps: - - checkout - run: name: Deploying to GitHub Pages @@ -288,7 +291,6 @@ CROWDIN_DOCUSAURUS_PROJECT_ID=YOUR_CROWDIN_PROJECT_ID CROWDIN_DOCUSAURUS_API_KEY version: 2 build_and_deploy: jobs: - - deploy-website: # filters: *filter-only-master
diff --git a/docs/ro/translation/index.html b/docs/ro/translation/index.html index 3565caf0e6..5665a6af60 100644 --- a/docs/ro/translation/index.html +++ b/docs/ro/translation/index.html @@ -1,4 +1,4 @@ -Translations & Localization · Docusaurus
Translate

Translations & Localization

Docusaurus allows for easy translation functionality using Crowdin. Fișierele de documentație scrise în engleză sunt încărcate pe Crowdin pentru o traducere a utilizatorilor din comunitate. Paginile de nivel înalt scrise cu șiruri în limba engleză pot fi traduse prin încercuirea tuturor șirurilor pe care vrei să le traduci într-un tag <traduce>. Alte titluri și etichete pot fi deasemenea găsite și traduse corespunzător.

+
Translate

Translations & Localization

Docusaurus allows for useful translation functionality using Crowdin. Fișierele de documentație scrise în engleză sunt încărcate pe Crowdin pentru o traducere a utilizatorilor din comunitate. Paginile de nivel înalt scrise cu șiruri în limba engleză pot fi traduse prin încercuirea tuturor șirurilor pe care vrei să le traduci într-un tag <traduce>. Alte titluri și etichete pot fi deasemenea găsite și traduse corespunzător.

Configurații traduceri Docusaurus

To generate example files for translations with Docusaurus, run the examples script with the command line argument translations:

npm run exemple traduceri
@@ -119,7 +119,7 @@ languages.js
 

Poţi deasemenea să incluzi un atribut de descriere opțională pentru a da mai mult context pentru un traducător despre cum să traducă acel șir:

<p>
-  <traduce desc="floare, nu verb">Rose</traduce>
+  <translate desc="flower, not verb">Rose</translate>
 <p>
 
@@ -208,7 +208,6 @@ languages.js preserve_hierarchy: true files: - - source: '/docs/**/*.md' translation: '/website/translated_docs/%locale%/**/%original_file_name%' languages_mapping: &anchor @@ -239,8 +238,14 @@ CROWDIN_DOCUSAURUS_PROJECT_ID=YOUR_CROWDIN_PROJECT_ID CROWDIN_DOCUSAURUS_API_KEY

YOUR_CROWDIN_PROJECT_ID is the name of your Crowdin project. e.g., for https://crowdin.com/project/docusaurus/, that variable would be set to docusaurus. YOUR_CROWDIN_API_KEY is a unique key that is like a password. You can find it in the API tab of your Crowdin project's Settings.

+
+

These commands require having an environment variable set with your Crowdin project id and api key (CROWDIN_PROJECT_ID, CROWDIN_API_KEY). You can preface them inline as done above or add them permanently to your .bashrc or .bash_profile.

+
+

If you run more than one localized Docusaurus project on your computer, you should change the name of the environment variables to something unique (CROWDIN_PROJECTNAME_PROJECT_ID, CROWDIN_PROJECTNAME_API_KEY).

+
+

Since the files are generated, you do not need to have any files in your website/i18n or website/translated_docs directory as part of your repo. So you can can add website/i18n/* and website/translated_docs to your .gitignore file.

Automated File Sync Using CircleCI

@@ -260,11 +265,9 @@ CROWDIN_DOCUSAURUS_PROJECT_ID=YOUR_CROWDIN_PROJECT_ID CROWDIN_DOCUSAURUS_API_KEY deploy-website: docker: # specify the version you desire here - - image: circleci/node:8.11.1 steps: - - checkout - run: name: Deploying to GitHub Pages @@ -288,7 +291,6 @@ CROWDIN_DOCUSAURUS_PROJECT_ID=YOUR_CROWDIN_PROJECT_ID CROWDIN_DOCUSAURUS_API_KEY version: 2 build_and_deploy: jobs: - - deploy-website: # filters: *filter-only-master
diff --git a/docs/ru/1.10.x/api-pages.html b/docs/ru/1.10.x/api-pages.html index 07450e9676..7b9811af2a 100644 --- a/docs/ru/1.10.x/api-pages.html +++ b/docs/ru/1.10.x/api-pages.html @@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description'; className="myCustomClass" contents={[ { - title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`, - content: 'Learn how to use this project', - image: siteConfig.baseUrl + 'img/learn.png', - imageAlt: 'Learn how to use this project', - imageLink: siteConfig.baseUrl + 'docs/tutorial.html', + title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`, + content: 'Learn how to use this project', + image: siteConfig.baseUrl + 'img/learn.png', + imageAlt: 'Learn how to use this project', + imageLink: siteConfig.baseUrl + 'docs/tutorial.html', }, { - title: 'Frequently Asked Questions', - content: 'Questions gathered from the community', - image: siteConfig.baseUrl + 'img/faq.png', - imageAlign: 'top', + title: 'Frequently Asked Questions', + content: 'Questions gathered from the community', + image: siteConfig.baseUrl + 'img/faq.png', + imageAlign: 'top', }, { - title: 'More', - content: 'Lots of documentation is on this site', + title: 'More', + content: 'Lots of documentation is on this site', }, ]} /> diff --git a/docs/ru/1.10.x/api-pages/index.html b/docs/ru/1.10.x/api-pages/index.html index 07450e9676..7b9811af2a 100644 --- a/docs/ru/1.10.x/api-pages/index.html +++ b/docs/ru/1.10.x/api-pages/index.html @@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description'; className="myCustomClass" contents={[ { - title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`, - content: 'Learn how to use this project', - image: siteConfig.baseUrl + 'img/learn.png', - imageAlt: 'Learn how to use this project', - imageLink: siteConfig.baseUrl + 'docs/tutorial.html', + title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`, + content: 'Learn how to use this project', + image: siteConfig.baseUrl + 'img/learn.png', + imageAlt: 'Learn how to use this project', + imageLink: siteConfig.baseUrl + 'docs/tutorial.html', }, { - title: 'Frequently Asked Questions', - content: 'Questions gathered from the community', - image: siteConfig.baseUrl + 'img/faq.png', - imageAlign: 'top', + title: 'Frequently Asked Questions', + content: 'Questions gathered from the community', + image: siteConfig.baseUrl + 'img/faq.png', + imageAlign: 'top', }, { - title: 'More', - content: 'Lots of documentation is on this site', + title: 'More', + content: 'Lots of documentation is on this site', }, ]} /> diff --git a/docs/ru/1.10.x/doc-markdown.html b/docs/ru/1.10.x/doc-markdown.html index 8591545b38..e39ea3767e 100644 --- a/docs/ru/1.10.x/doc-markdown.html +++ b/docs/ru/1.10.x/doc-markdown.html @@ -214,7 +214,7 @@ usePrism: ['jsx']
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/ru/1.10.x/doc-markdown/index.html b/docs/ru/1.10.x/doc-markdown/index.html
index 8591545b38..e39ea3767e 100644
--- a/docs/ru/1.10.x/doc-markdown/index.html
+++ b/docs/ru/1.10.x/doc-markdown/index.html
@@ -214,7 +214,7 @@ usePrism: ['jsx']
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/ru/1.11.x/api-pages.html b/docs/ru/1.11.x/api-pages.html
index d30d6ce43a..d0590b0e00 100644
--- a/docs/ru/1.11.x/api-pages.html
+++ b/docs/ru/1.11.x/api-pages.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/ru/1.11.x/api-pages/index.html b/docs/ru/1.11.x/api-pages/index.html
index d30d6ce43a..d0590b0e00 100644
--- a/docs/ru/1.11.x/api-pages/index.html
+++ b/docs/ru/1.11.x/api-pages/index.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/ru/1.11.x/doc-markdown.html b/docs/ru/1.11.x/doc-markdown.html
index e7aea99054..bd69dae640 100644
--- a/docs/ru/1.11.x/doc-markdown.html
+++ b/docs/ru/1.11.x/doc-markdown.html
@@ -214,7 +214,7 @@ usePrism: ['jsx']
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/ru/1.11.x/doc-markdown/index.html b/docs/ru/1.11.x/doc-markdown/index.html
index e7aea99054..bd69dae640 100644
--- a/docs/ru/1.11.x/doc-markdown/index.html
+++ b/docs/ru/1.11.x/doc-markdown/index.html
@@ -214,7 +214,7 @@ usePrism: ['jsx']
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/ru/1.12.0/api-pages.html b/docs/ru/1.12.0/api-pages.html
index a930d7a83b..bfa8d72924 100644
--- a/docs/ru/1.12.0/api-pages.html
+++ b/docs/ru/1.12.0/api-pages.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/ru/1.12.0/api-pages/index.html b/docs/ru/1.12.0/api-pages/index.html
index a930d7a83b..bfa8d72924 100644
--- a/docs/ru/1.12.0/api-pages/index.html
+++ b/docs/ru/1.12.0/api-pages/index.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/ru/1.12.0/doc-markdown.html b/docs/ru/1.12.0/doc-markdown.html
index 561418e9bc..26d274ece6 100644
--- a/docs/ru/1.12.0/doc-markdown.html
+++ b/docs/ru/1.12.0/doc-markdown.html
@@ -214,7 +214,7 @@ usePrism: ['jsx']
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/ru/1.12.0/doc-markdown/index.html b/docs/ru/1.12.0/doc-markdown/index.html
index 561418e9bc..26d274ece6 100644
--- a/docs/ru/1.12.0/doc-markdown/index.html
+++ b/docs/ru/1.12.0/doc-markdown/index.html
@@ -214,7 +214,7 @@ usePrism: ['jsx']
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/ru/1.13.0/api-pages.html b/docs/ru/1.13.0/api-pages.html
index b3346fd32b..f62cf80d46 100644
--- a/docs/ru/1.13.0/api-pages.html
+++ b/docs/ru/1.13.0/api-pages.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/ru/1.13.0/api-pages/index.html b/docs/ru/1.13.0/api-pages/index.html
index b3346fd32b..f62cf80d46 100644
--- a/docs/ru/1.13.0/api-pages/index.html
+++ b/docs/ru/1.13.0/api-pages/index.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/ru/1.13.0/doc-markdown.html b/docs/ru/1.13.0/doc-markdown.html
index 91eef8fcd5..49655bf913 100644
--- a/docs/ru/1.13.0/doc-markdown.html
+++ b/docs/ru/1.13.0/doc-markdown.html
@@ -214,7 +214,7 @@ usePrism: ['jsx']
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/ru/1.13.0/doc-markdown/index.html b/docs/ru/1.13.0/doc-markdown/index.html
index 91eef8fcd5..49655bf913 100644
--- a/docs/ru/1.13.0/doc-markdown/index.html
+++ b/docs/ru/1.13.0/doc-markdown/index.html
@@ -214,7 +214,7 @@ usePrism: ['jsx']
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/ru/1.9.x/api-pages.html b/docs/ru/1.9.x/api-pages.html
index 02986035ef..64b0af3c6b 100644
--- a/docs/ru/1.9.x/api-pages.html
+++ b/docs/ru/1.9.x/api-pages.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/ru/1.9.x/api-pages/index.html b/docs/ru/1.9.x/api-pages/index.html
index 02986035ef..64b0af3c6b 100644
--- a/docs/ru/1.9.x/api-pages/index.html
+++ b/docs/ru/1.9.x/api-pages/index.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/ru/1.9.x/doc-markdown.html b/docs/ru/1.9.x/doc-markdown.html
index fea6ffb810..46556054ea 100644
--- a/docs/ru/1.9.x/doc-markdown.html
+++ b/docs/ru/1.9.x/doc-markdown.html
@@ -214,7 +214,7 @@ usePrism: ['jsx']
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/ru/1.9.x/doc-markdown/index.html b/docs/ru/1.9.x/doc-markdown/index.html
index fea6ffb810..46556054ea 100644
--- a/docs/ru/1.9.x/doc-markdown/index.html
+++ b/docs/ru/1.9.x/doc-markdown/index.html
@@ -214,7 +214,7 @@ usePrism: ['jsx']
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/ru/api-pages.html b/docs/ru/api-pages.html
index 8b194a112b..e45bd8fbb1 100644
--- a/docs/ru/api-pages.html
+++ b/docs/ru/api-pages.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/ru/api-pages/index.html b/docs/ru/api-pages/index.html
index 8b194a112b..e45bd8fbb1 100644
--- a/docs/ru/api-pages/index.html
+++ b/docs/ru/api-pages/index.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/ru/doc-markdown.html b/docs/ru/doc-markdown.html
index 07de584cf4..41d7ea61ef 100644
--- a/docs/ru/doc-markdown.html
+++ b/docs/ru/doc-markdown.html
@@ -232,7 +232,7 @@ ReactDOM.render(<h1>Hello, world!</h1>, document.getElementById('roo
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/ru/doc-markdown/index.html b/docs/ru/doc-markdown/index.html
index 07de584cf4..41d7ea61ef 100644
--- a/docs/ru/doc-markdown/index.html
+++ b/docs/ru/doc-markdown/index.html
@@ -232,7 +232,7 @@ ReactDOM.render(<h1>Hello, world!</h1>, document.getElementById('roo
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/ru/next/api-pages.html b/docs/ru/next/api-pages.html
index 0732d19a93..a0db196a8e 100644
--- a/docs/ru/next/api-pages.html
+++ b/docs/ru/next/api-pages.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/ru/next/api-pages/index.html b/docs/ru/next/api-pages/index.html
index 0732d19a93..a0db196a8e 100644
--- a/docs/ru/next/api-pages/index.html
+++ b/docs/ru/next/api-pages/index.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/ru/next/doc-markdown.html b/docs/ru/next/doc-markdown.html
index 0cf31cde3a..0fb624e5c8 100644
--- a/docs/ru/next/doc-markdown.html
+++ b/docs/ru/next/doc-markdown.html
@@ -217,7 +217,7 @@ usePrism: ['jsx']
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/ru/next/doc-markdown/index.html b/docs/ru/next/doc-markdown/index.html
index 0cf31cde3a..0fb624e5c8 100644
--- a/docs/ru/next/doc-markdown/index.html
+++ b/docs/ru/next/doc-markdown/index.html
@@ -217,7 +217,7 @@ usePrism: ['jsx']
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/ru/next/publishing.html b/docs/ru/next/publishing.html
index a2b6505603..a7a1c99588 100644
--- a/docs/ru/next/publishing.html
+++ b/docs/ru/next/publishing.html
@@ -306,34 +306,34 @@
 
 
# azure-pipelines.yml
 trigger:
-- master
+  - master
 
 pool:
   vmImage: 'ubuntu-latest'
 
 steps:
 
-- checkout: self
-  persistCredentials: true
+  - checkout: self
+    persistCredentials: true
 
-- task: NodeTool@0
-  inputs:
-    versionSpec: '10.x'
-  displayName: 'Install Node.js'
+  - task: NodeTool@0
+    inputs:
+      versionSpec: '10.x'
+    displayName: 'Install Node.js'
 
-- script: |
-    git config --global user.name "${GH_NAME}"
-    git config --global user.email "${GH_EMAIL}"
-    git checkout -b master
-    echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
-    cd website
-    yarn install
-    GIT_USER="${GH_NAME}" CURRENT_BRANCH=master yarn run publish-gh-pages
-  env:
-    GH_NAME: $(GH_NAME)
-    GH_EMAIL: $(GH_EMAIL)
-    GH_TOKEN: $(GH_TOKEN)
-  displayName: 'yarn install and build'
+  - script: |
+      git config --global user.name "${GH_NAME}"
+      git config --global user.email "${GH_EMAIL}"
+      git checkout -b master
+      echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
+      cd website
+      yarn install
+      GIT_USER="${GH_NAME}" CURRENT_BRANCH=master yarn run publish-gh-pages
+    env:
+      GH_NAME: $(GH_NAME)
+      GH_EMAIL: $(GH_EMAIL)
+      GH_TOKEN: $(GH_TOKEN)
+    displayName: 'yarn install and build'
 

Хостинг на ZEIT Now

With ZEIT Now, you can deploy your site and connect it to GitHub or GitLab to automatically receive a new deployment every time you push a commit.

diff --git a/docs/ru/next/publishing/index.html b/docs/ru/next/publishing/index.html index a2b6505603..a7a1c99588 100644 --- a/docs/ru/next/publishing/index.html +++ b/docs/ru/next/publishing/index.html @@ -306,34 +306,34 @@
# azure-pipelines.yml
 trigger:
-- master
+  - master
 
 pool:
   vmImage: 'ubuntu-latest'
 
 steps:
 
-- checkout: self
-  persistCredentials: true
+  - checkout: self
+    persistCredentials: true
 
-- task: NodeTool@0
-  inputs:
-    versionSpec: '10.x'
-  displayName: 'Install Node.js'
+  - task: NodeTool@0
+    inputs:
+      versionSpec: '10.x'
+    displayName: 'Install Node.js'
 
-- script: |
-    git config --global user.name "${GH_NAME}"
-    git config --global user.email "${GH_EMAIL}"
-    git checkout -b master
-    echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
-    cd website
-    yarn install
-    GIT_USER="${GH_NAME}" CURRENT_BRANCH=master yarn run publish-gh-pages
-  env:
-    GH_NAME: $(GH_NAME)
-    GH_EMAIL: $(GH_EMAIL)
-    GH_TOKEN: $(GH_TOKEN)
-  displayName: 'yarn install and build'
+  - script: |
+      git config --global user.name "${GH_NAME}"
+      git config --global user.email "${GH_EMAIL}"
+      git checkout -b master
+      echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
+      cd website
+      yarn install
+      GIT_USER="${GH_NAME}" CURRENT_BRANCH=master yarn run publish-gh-pages
+    env:
+      GH_NAME: $(GH_NAME)
+      GH_EMAIL: $(GH_EMAIL)
+      GH_TOKEN: $(GH_TOKEN)
+    displayName: 'yarn install and build'
 

Хостинг на ZEIT Now

With ZEIT Now, you can deploy your site and connect it to GitHub or GitLab to automatically receive a new deployment every time you push a commit.

diff --git a/docs/ru/site-config.html b/docs/ru/site-config.html index 8de9499720..034e17b4ea 100644 --- a/docs/ru/site-config.html +++ b/docs/ru/site-config.html @@ -144,6 +144,9 @@

Заголовок боковой панели с сообщениями вашего блога. Для получения дополнительной информации перейдите по ссылке - Добавление блогов.

cleanUrl [boolean]

Значение true разрешает URLы без расширения HTML. Например, запрос по URL https://docusaurus.io/docs/installation вернёт тот же результат, что и https://docusaurus.io/docs/installation.html.

+
+

If users intend for this website to be used exclusively offline, this value must be set to false. Otherwise, it will cause the site to route to the parent folder of the linked page.

+

cname [string]

CNAME для вашего веб-сайта. Значение данного параметра будет скопировано в файл CNAME, когда ваш сайт будет построен.

customDocsPath [string]

@@ -241,8 +244,8 @@

Массив плагинов, которые должен загрузить Remarkable - markdown анализатор и обработчик, используемый Docusaurus. Плагин получит ссылку на экземпляр Remarkable, позволяя определить пользовательские правила анализа и визуализации.

For example, if you want to enable superscript and subscript in your markdown that is rendered by Remarkable to HTML, you would do the following:

  markdownPlugins: [
-    function foo(md) {
-      md.inline.ruler.enable(['sub', 'sup']);
+    function foo(md) {
+      md.inline.ruler.enable(['sub', 'sup']);
     },
   ],
 
@@ -282,6 +285,14 @@

wrapPagesHTML [boolean]

Логическое значение, указывающее, должны ли HTML-файлы в /pages быть дополнены стилями, шапкой и футером сайта, сгенерированного Docusaurus. Данная функциональность является экспериментальной и предполагает, что будут использоваться файлы, содержащие HTML фрагменты вместо законченных страниц. Содержимое вашего HTML файла будет добавлено без дополнительной обработки. Значение по умолчанию: false.

Пользователи также могут добавить свои собственные поля, если желают предоставить некоторую информацию в различных файлах.

+

Adding Google Fonts

+ +

Google Fonts offers faster load times by caching fonts without forcing users to sacrifice privacy. For more information on Google Fonts, see the Google Fonts documentation.

+

To add Google Fonts to your Docusaurus deployment, add the font path to the siteConfig.js under stylesheets:

+
stylesheets: [
+  'https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,700',
+],
+

Пример файла siteConfig.js со множеством доступных полей

const users = [
   {
@@ -377,7 +388,7 @@
 
 module.exports = siteConfig;
 
-
Docusaurus
Docusaurus
Docs
Getting StartedVersioningLocalizationДобавление блогов.

cleanUrl [boolean]

Значение true разрешает URLы без расширения HTML. Например, запрос по URL https://docusaurus.io/docs/installation вернёт тот же результат, что и https://docusaurus.io/docs/installation.html.

+
+

If users intend for this website to be used exclusively offline, this value must be set to false. Otherwise, it will cause the site to route to the parent folder of the linked page.

+

cname [string]

CNAME для вашего веб-сайта. Значение данного параметра будет скопировано в файл CNAME, когда ваш сайт будет построен.

customDocsPath [string]

@@ -241,8 +244,8 @@

Массив плагинов, которые должен загрузить Remarkable - markdown анализатор и обработчик, используемый Docusaurus. Плагин получит ссылку на экземпляр Remarkable, позволяя определить пользовательские правила анализа и визуализации.

For example, if you want to enable superscript and subscript in your markdown that is rendered by Remarkable to HTML, you would do the following:

  markdownPlugins: [
-    function foo(md) {
-      md.inline.ruler.enable(['sub', 'sup']);
+    function foo(md) {
+      md.inline.ruler.enable(['sub', 'sup']);
     },
   ],
 
@@ -282,6 +285,14 @@

wrapPagesHTML [boolean]

Логическое значение, указывающее, должны ли HTML-файлы в /pages быть дополнены стилями, шапкой и футером сайта, сгенерированного Docusaurus. Данная функциональность является экспериментальной и предполагает, что будут использоваться файлы, содержащие HTML фрагменты вместо законченных страниц. Содержимое вашего HTML файла будет добавлено без дополнительной обработки. Значение по умолчанию: false.

Пользователи также могут добавить свои собственные поля, если желают предоставить некоторую информацию в различных файлах.

+

Adding Google Fonts

+ +

Google Fonts offers faster load times by caching fonts without forcing users to sacrifice privacy. For more information on Google Fonts, see the Google Fonts documentation.

+

To add Google Fonts to your Docusaurus deployment, add the font path to the siteConfig.js under stylesheets:

+
stylesheets: [
+  'https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,700',
+],
+

Пример файла siteConfig.js со множеством доступных полей

const users = [
   {
@@ -377,7 +388,7 @@
 
 module.exports = siteConfig;
 
-
Docusaurus
Docusaurus
Docs
Getting StartedVersioningLocalizationTranslations & Localization · Docusaurus
Translate

Translations & Localization

Docusaurus предоставляет функционал для легкого перевода текста с помощью Crowdin. Файлы документации, написанные на английском языке, загружаются на Crowdin для перевода пользователями из сообщества. Страницы верхнего уровня, написанные на английском, могут быть переведены на другие языки, если вы обернете каждую строку, которую вы желаете перевести, в тег <translate>. Другие заголовки и метки также будут обнаружены и переведены должным образом.

+
Translate

Translations & Localization

Docusaurus предоставляет функционал для удобного перевода текста с помощью Crowdin. Файлы документации, написанные на английском языке, загружаются на Crowdin для перевода пользователями из сообщества. Страницы верхнего уровня, написанные на английском, могут быть переведены на другие языки, если вы обернете каждую строку, которую вы желаете перевести, в тег <translate>. Другие заголовки и метки также будут обнаружены и переведены должным образом.

Настройки перевода в Docusaurus

Чтобы создать примеры файлов для перевода с помощью Docusaurus, запустите сценарий examples с параметром командной строки translations:

npm run examples translations
@@ -189,10 +189,10 @@ languages.js
 

Файлы Markdown

Переведенные версии файлов документации загружаются и собираются с помощью соответствующего шаблона макета.

Другие страницы

-

Для других страниц, Docusaurus автоматически преобразует все теги &lt;translate&gt;, которые найдет в вызовах функций и вернет переведенные строки из соответствующего файла locale.json.

+

For other pages, Docusaurus will automatically transform all <translate> tags it finds into function calls that return the translated strings from the corresponding localized file locale.json.

Crowdin

Crowdin это компания, предоставляющая услуги перевода. Для проектов с открытым исходным кодом, Crowdin предоставляет свободные переводы строк.

-

Создайте свой проект по переводу текста на Crowdin. Вы можете обратиться к инструкциям Crowdin, чтобы узнать больше о процессе перевода. Мы предполагаем, что вы не выбрали и не включили "English" как язык для перевода для предотвращения создания файлов локализации en-US, так как это может привести к коллизии.

+

Создайте свой проект по переводу текста на Crowdin. Вы можете обратиться к инструкциям Crowdin, чтобы узнать больше о процессе перевода. We suggest that you deselect and do not include "English" as a translatable language to prevent the creation of en-US localization files as this can lead to confusion.

Убедитесь, что в настройках Crowdin в разделе «Переводы» для «Duplicate Strings» установлено значение «Hide - все дубликаты будут иметь одинаковый перевод» . Этот параметр гарантирует, что идентичные строки в разных версиях имеют один и тот же перевод.

@@ -208,7 +208,6 @@ languages.js preserve_hierarchy: true files: - - source: '/docs/**/*.md' translation: '/website/translated_docs/%locale%/**/%original_file_name%' languages_mapping: &anchor @@ -239,15 +238,21 @@ CROWDIN_DOCUSAURUS_PROJECT_ID=YOUR_CROWDIN_PROJECT_ID CROWDIN_DOCUSAURUS_API_KEY

YOUR_CROWDIN_PROJECT_ID это наименование вашего проекта на Crowdin. Например, для https://crowdin.com/project/docusaurus/, эта переменная должна быть равна docusaurus. YOUR_CROWDIN_API_KEY это уникальный ключ, выполняет схожие с паролем функции. Вы можете обнаружить вкладку API на странице настроек Settings вашего проекта на Crowdin.

+
+

Для этих команд требуется установить переменные окружения со значениями id и api key вашего проекта на Crowdin (CROWDIN_PROJECT_ID, CROWDIN_API_KEY). Вы можете указывать их непосредственно при вызове команд, как было сделано выше, или добавить их на постоянной основе в .bashrc или .bash_profile.

+
+

Если вы запускаете больше одного локализованного проекта Docusaurus на своем компьютере, вам следует изменить наименование переменных окружения на что-нибудь уникальное (CROWDIN_PROJECTNAME_PROJECT_ID, CROWDIN_PROJECTNAME_API_KEY).

+
+

Поскольку файлы создаются автоматически, вам не нужно сохранять что-либо в каталоге website/i18n или website/translated_docs как часть своего репозитория. Так что вы можете добавить website/i18n/* и website/translated_docs в .gitignore.

Автоматическая синхронизация с помощью CircleCI

Вы можете автоматизировать загрузку и скачивание переводов для своих файлов, используя сервис непрерывной интеграции CircleCI.

В первую очередь, измените файл .circleci/config.yml в каталоге своего проекта, чтобы включить шаги загрузки файлов на английском языке и скачивания переведенных файлов с помощью Crowdin CLI. Вот пример файла .circleci/config.yml:

-
# Если вам нужно запустить circle непосредственно на коммитах в master, вы можете раскомментировать этот фрагмент
-# а также раскомментировать filters: *filter-only-master в самом низу
+
# If you only want circle to run on direct commits to master, you can uncomment this out
+# and uncomment the filters: *filter-only-master down below too
 #
 # aliases:
 #  - &filter-only-master
@@ -259,12 +264,10 @@ CROWDIN_DOCUSAURUS_PROJECT_ID=YOUR_CROWDIN_PROJECT_ID CROWDIN_DOCUSAURUS_API_KEY
 jobs:
   deploy-website:
     docker:
-      # укажите версию для установки здесь
-
+      # specify the version you desire here
       - image: circleci/node:8.11.1
 
     steps:
-
       - checkout
       - run:
           name: Deploying to GitHub Pages
@@ -272,23 +275,22 @@ CROWDIN_DOCUSAURUS_PROJECT_ID=YOUR_CROWDIN_PROJECT_ID CROWDIN_DOCUSAURUS_API_KEY
             git config --global user.email "<GITHUB_USERNAME>@users.noreply.github.com"
             git config --global user.name "<YOUR_NAME>"
             echo "machine github.com login <GITHUB_USERNAME> password $GITHUB_TOKEN" > ~/.netrc
-            # установка Docusaurus и создание файла со строками на английском
+            # install Docusaurus and generate file of English strings
             - cd website && yarn install && yarn run write-translations && cd ..
-            # установка crowdin
+            # crowdin install
             - sudo apt-get install default-jre
             - wget https://artifacts.crowdin.com/repo/deb/crowdin.deb -O crowdin.deb
             - sudo dpkg -i crowdin.deb
-            # загрузка/скачивание переводов
+            # translations upload/download
             - crowdin --config crowdin.yaml upload sources --auto-update -b master
             - crowdin --config crowdin.yaml download -b master
-            # сборка и публикация сайта
+            # build and publish website
             cd website && GIT_USER=<GIT_USER> yarn run publish-gh-pages
 
 workflows:
   version: 2
   build_and_deploy:
     jobs:
-
       - deploy-website:
 #         filters: *filter-only-master
 
diff --git a/docs/ru/translation/index.html b/docs/ru/translation/index.html index 66f9fefe0e..f1c00b2e22 100644 --- a/docs/ru/translation/index.html +++ b/docs/ru/translation/index.html @@ -1,4 +1,4 @@ -Translations & Localization · Docusaurus
Translate

Translations & Localization

Docusaurus предоставляет функционал для легкого перевода текста с помощью Crowdin. Файлы документации, написанные на английском языке, загружаются на Crowdin для перевода пользователями из сообщества. Страницы верхнего уровня, написанные на английском, могут быть переведены на другие языки, если вы обернете каждую строку, которую вы желаете перевести, в тег <translate>. Другие заголовки и метки также будут обнаружены и переведены должным образом.

+
Translate

Translations & Localization

Docusaurus предоставляет функционал для удобного перевода текста с помощью Crowdin. Файлы документации, написанные на английском языке, загружаются на Crowdin для перевода пользователями из сообщества. Страницы верхнего уровня, написанные на английском, могут быть переведены на другие языки, если вы обернете каждую строку, которую вы желаете перевести, в тег <translate>. Другие заголовки и метки также будут обнаружены и переведены должным образом.

Настройки перевода в Docusaurus

Чтобы создать примеры файлов для перевода с помощью Docusaurus, запустите сценарий examples с параметром командной строки translations:

npm run examples translations
@@ -189,10 +189,10 @@ languages.js
 

Файлы Markdown

Переведенные версии файлов документации загружаются и собираются с помощью соответствующего шаблона макета.

Другие страницы

-

Для других страниц, Docusaurus автоматически преобразует все теги &lt;translate&gt;, которые найдет в вызовах функций и вернет переведенные строки из соответствующего файла locale.json.

+

For other pages, Docusaurus will automatically transform all <translate> tags it finds into function calls that return the translated strings from the corresponding localized file locale.json.

Crowdin

Crowdin это компания, предоставляющая услуги перевода. Для проектов с открытым исходным кодом, Crowdin предоставляет свободные переводы строк.

-

Создайте свой проект по переводу текста на Crowdin. Вы можете обратиться к инструкциям Crowdin, чтобы узнать больше о процессе перевода. Мы предполагаем, что вы не выбрали и не включили "English" как язык для перевода для предотвращения создания файлов локализации en-US, так как это может привести к коллизии.

+

Создайте свой проект по переводу текста на Crowdin. Вы можете обратиться к инструкциям Crowdin, чтобы узнать больше о процессе перевода. We suggest that you deselect and do not include "English" as a translatable language to prevent the creation of en-US localization files as this can lead to confusion.

Убедитесь, что в настройках Crowdin в разделе «Переводы» для «Duplicate Strings» установлено значение «Hide - все дубликаты будут иметь одинаковый перевод» . Этот параметр гарантирует, что идентичные строки в разных версиях имеют один и тот же перевод.

@@ -208,7 +208,6 @@ languages.js preserve_hierarchy: true files: - - source: '/docs/**/*.md' translation: '/website/translated_docs/%locale%/**/%original_file_name%' languages_mapping: &anchor @@ -239,15 +238,21 @@ CROWDIN_DOCUSAURUS_PROJECT_ID=YOUR_CROWDIN_PROJECT_ID CROWDIN_DOCUSAURUS_API_KEY

YOUR_CROWDIN_PROJECT_ID это наименование вашего проекта на Crowdin. Например, для https://crowdin.com/project/docusaurus/, эта переменная должна быть равна docusaurus. YOUR_CROWDIN_API_KEY это уникальный ключ, выполняет схожие с паролем функции. Вы можете обнаружить вкладку API на странице настроек Settings вашего проекта на Crowdin.

+
+

Для этих команд требуется установить переменные окружения со значениями id и api key вашего проекта на Crowdin (CROWDIN_PROJECT_ID, CROWDIN_API_KEY). Вы можете указывать их непосредственно при вызове команд, как было сделано выше, или добавить их на постоянной основе в .bashrc или .bash_profile.

+
+

Если вы запускаете больше одного локализованного проекта Docusaurus на своем компьютере, вам следует изменить наименование переменных окружения на что-нибудь уникальное (CROWDIN_PROJECTNAME_PROJECT_ID, CROWDIN_PROJECTNAME_API_KEY).

+
+

Поскольку файлы создаются автоматически, вам не нужно сохранять что-либо в каталоге website/i18n или website/translated_docs как часть своего репозитория. Так что вы можете добавить website/i18n/* и website/translated_docs в .gitignore.

Автоматическая синхронизация с помощью CircleCI

Вы можете автоматизировать загрузку и скачивание переводов для своих файлов, используя сервис непрерывной интеграции CircleCI.

В первую очередь, измените файл .circleci/config.yml в каталоге своего проекта, чтобы включить шаги загрузки файлов на английском языке и скачивания переведенных файлов с помощью Crowdin CLI. Вот пример файла .circleci/config.yml:

-
# Если вам нужно запустить circle непосредственно на коммитах в master, вы можете раскомментировать этот фрагмент
-# а также раскомментировать filters: *filter-only-master в самом низу
+
# If you only want circle to run on direct commits to master, you can uncomment this out
+# and uncomment the filters: *filter-only-master down below too
 #
 # aliases:
 #  - &filter-only-master
@@ -259,12 +264,10 @@ CROWDIN_DOCUSAURUS_PROJECT_ID=YOUR_CROWDIN_PROJECT_ID CROWDIN_DOCUSAURUS_API_KEY
 jobs:
   deploy-website:
     docker:
-      # укажите версию для установки здесь
-
+      # specify the version you desire here
       - image: circleci/node:8.11.1
 
     steps:
-
       - checkout
       - run:
           name: Deploying to GitHub Pages
@@ -272,23 +275,22 @@ CROWDIN_DOCUSAURUS_PROJECT_ID=YOUR_CROWDIN_PROJECT_ID CROWDIN_DOCUSAURUS_API_KEY
             git config --global user.email "<GITHUB_USERNAME>@users.noreply.github.com"
             git config --global user.name "<YOUR_NAME>"
             echo "machine github.com login <GITHUB_USERNAME> password $GITHUB_TOKEN" > ~/.netrc
-            # установка Docusaurus и создание файла со строками на английском
+            # install Docusaurus and generate file of English strings
             - cd website && yarn install && yarn run write-translations && cd ..
-            # установка crowdin
+            # crowdin install
             - sudo apt-get install default-jre
             - wget https://artifacts.crowdin.com/repo/deb/crowdin.deb -O crowdin.deb
             - sudo dpkg -i crowdin.deb
-            # загрузка/скачивание переводов
+            # translations upload/download
             - crowdin --config crowdin.yaml upload sources --auto-update -b master
             - crowdin --config crowdin.yaml download -b master
-            # сборка и публикация сайта
+            # build and publish website
             cd website && GIT_USER=<GIT_USER> yarn run publish-gh-pages
 
 workflows:
   version: 2
   build_and_deploy:
     jobs:
-
       - deploy-website:
 #         filters: *filter-only-master
 
diff --git a/docs/zh-CN/1.10.x/api-pages.html b/docs/zh-CN/1.10.x/api-pages.html index 6649ba3f67..f278066918 100644 --- a/docs/zh-CN/1.10.x/api-pages.html +++ b/docs/zh-CN/1.10.x/api-pages.html @@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description'; className="myCustomClass" contents={[ { - title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`, - content: 'Learn how to use this project', - image: siteConfig.baseUrl + 'img/learn.png', - imageAlt: 'Learn how to use this project', - imageLink: siteConfig.baseUrl + 'docs/tutorial.html', + title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`, + content: 'Learn how to use this project', + image: siteConfig.baseUrl + 'img/learn.png', + imageAlt: 'Learn how to use this project', + imageLink: siteConfig.baseUrl + 'docs/tutorial.html', }, { - title: 'Frequently Asked Questions', - content: 'Questions gathered from the community', - image: siteConfig.baseUrl + 'img/faq.png', - imageAlign: 'top', + title: 'Frequently Asked Questions', + content: 'Questions gathered from the community', + image: siteConfig.baseUrl + 'img/faq.png', + imageAlign: 'top', }, { - title: 'More', - content: 'Lots of documentation is on this site', + title: 'More', + content: 'Lots of documentation is on this site', }, ]} /> diff --git a/docs/zh-CN/1.10.x/api-pages/index.html b/docs/zh-CN/1.10.x/api-pages/index.html index 6649ba3f67..f278066918 100644 --- a/docs/zh-CN/1.10.x/api-pages/index.html +++ b/docs/zh-CN/1.10.x/api-pages/index.html @@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description'; className="myCustomClass" contents={[ { - title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`, - content: 'Learn how to use this project', - image: siteConfig.baseUrl + 'img/learn.png', - imageAlt: 'Learn how to use this project', - imageLink: siteConfig.baseUrl + 'docs/tutorial.html', + title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`, + content: 'Learn how to use this project', + image: siteConfig.baseUrl + 'img/learn.png', + imageAlt: 'Learn how to use this project', + imageLink: siteConfig.baseUrl + 'docs/tutorial.html', }, { - title: 'Frequently Asked Questions', - content: 'Questions gathered from the community', - image: siteConfig.baseUrl + 'img/faq.png', - imageAlign: 'top', + title: 'Frequently Asked Questions', + content: 'Questions gathered from the community', + image: siteConfig.baseUrl + 'img/faq.png', + imageAlign: 'top', }, { - title: 'More', - content: 'Lots of documentation is on this site', + title: 'More', + content: 'Lots of documentation is on this site', }, ]} /> diff --git a/docs/zh-CN/1.10.x/doc-markdown.html b/docs/zh-CN/1.10.x/doc-markdown.html index f986869a21..9d8ae42c9f 100644 --- a/docs/zh-CN/1.10.x/doc-markdown.html +++ b/docs/zh-CN/1.10.x/doc-markdown.html @@ -214,7 +214,7 @@ usePrism: ['jsx']
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/zh-CN/1.10.x/doc-markdown/index.html b/docs/zh-CN/1.10.x/doc-markdown/index.html
index f986869a21..9d8ae42c9f 100644
--- a/docs/zh-CN/1.10.x/doc-markdown/index.html
+++ b/docs/zh-CN/1.10.x/doc-markdown/index.html
@@ -214,7 +214,7 @@ usePrism: ['jsx']
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/zh-CN/1.11.x/api-pages.html b/docs/zh-CN/1.11.x/api-pages.html
index 05ecede307..716f24ff27 100644
--- a/docs/zh-CN/1.11.x/api-pages.html
+++ b/docs/zh-CN/1.11.x/api-pages.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/zh-CN/1.11.x/api-pages/index.html b/docs/zh-CN/1.11.x/api-pages/index.html
index 05ecede307..716f24ff27 100644
--- a/docs/zh-CN/1.11.x/api-pages/index.html
+++ b/docs/zh-CN/1.11.x/api-pages/index.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/zh-CN/1.11.x/doc-markdown.html b/docs/zh-CN/1.11.x/doc-markdown.html
index 264c9ada02..d14aa73a0f 100644
--- a/docs/zh-CN/1.11.x/doc-markdown.html
+++ b/docs/zh-CN/1.11.x/doc-markdown.html
@@ -214,7 +214,7 @@ usePrism: ['jsx']
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/zh-CN/1.11.x/doc-markdown/index.html b/docs/zh-CN/1.11.x/doc-markdown/index.html
index 264c9ada02..d14aa73a0f 100644
--- a/docs/zh-CN/1.11.x/doc-markdown/index.html
+++ b/docs/zh-CN/1.11.x/doc-markdown/index.html
@@ -214,7 +214,7 @@ usePrism: ['jsx']
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/zh-CN/1.12.0/api-pages.html b/docs/zh-CN/1.12.0/api-pages.html
index 0454a97550..749f243806 100644
--- a/docs/zh-CN/1.12.0/api-pages.html
+++ b/docs/zh-CN/1.12.0/api-pages.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/zh-CN/1.12.0/api-pages/index.html b/docs/zh-CN/1.12.0/api-pages/index.html
index 0454a97550..749f243806 100644
--- a/docs/zh-CN/1.12.0/api-pages/index.html
+++ b/docs/zh-CN/1.12.0/api-pages/index.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/zh-CN/1.12.0/doc-markdown.html b/docs/zh-CN/1.12.0/doc-markdown.html
index 380b2daf7b..c20b0bbf6a 100644
--- a/docs/zh-CN/1.12.0/doc-markdown.html
+++ b/docs/zh-CN/1.12.0/doc-markdown.html
@@ -214,7 +214,7 @@ usePrism: ['jsx']
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/zh-CN/1.12.0/doc-markdown/index.html b/docs/zh-CN/1.12.0/doc-markdown/index.html
index 380b2daf7b..c20b0bbf6a 100644
--- a/docs/zh-CN/1.12.0/doc-markdown/index.html
+++ b/docs/zh-CN/1.12.0/doc-markdown/index.html
@@ -214,7 +214,7 @@ usePrism: ['jsx']
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/zh-CN/1.13.0/api-pages.html b/docs/zh-CN/1.13.0/api-pages.html
index 7bdd401533..616242523b 100644
--- a/docs/zh-CN/1.13.0/api-pages.html
+++ b/docs/zh-CN/1.13.0/api-pages.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/zh-CN/1.13.0/api-pages/index.html b/docs/zh-CN/1.13.0/api-pages/index.html
index 7bdd401533..616242523b 100644
--- a/docs/zh-CN/1.13.0/api-pages/index.html
+++ b/docs/zh-CN/1.13.0/api-pages/index.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/zh-CN/1.13.0/doc-markdown.html b/docs/zh-CN/1.13.0/doc-markdown.html
index 048c454204..db4dfd4d61 100644
--- a/docs/zh-CN/1.13.0/doc-markdown.html
+++ b/docs/zh-CN/1.13.0/doc-markdown.html
@@ -214,7 +214,7 @@ usePrism: ['jsx']
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/zh-CN/1.13.0/doc-markdown/index.html b/docs/zh-CN/1.13.0/doc-markdown/index.html
index 048c454204..db4dfd4d61 100644
--- a/docs/zh-CN/1.13.0/doc-markdown/index.html
+++ b/docs/zh-CN/1.13.0/doc-markdown/index.html
@@ -214,7 +214,7 @@ usePrism: ['jsx']
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/zh-CN/1.9.x/api-pages.html b/docs/zh-CN/1.9.x/api-pages.html
index e1e12a0d41..10920788e3 100644
--- a/docs/zh-CN/1.9.x/api-pages.html
+++ b/docs/zh-CN/1.9.x/api-pages.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/zh-CN/1.9.x/api-pages/index.html b/docs/zh-CN/1.9.x/api-pages/index.html
index e1e12a0d41..10920788e3 100644
--- a/docs/zh-CN/1.9.x/api-pages/index.html
+++ b/docs/zh-CN/1.9.x/api-pages/index.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/zh-CN/1.9.x/doc-markdown.html b/docs/zh-CN/1.9.x/doc-markdown.html
index 1058fd5461..bbcae04107 100644
--- a/docs/zh-CN/1.9.x/doc-markdown.html
+++ b/docs/zh-CN/1.9.x/doc-markdown.html
@@ -214,7 +214,7 @@ usePrism: ['jsx']
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/zh-CN/1.9.x/doc-markdown/index.html b/docs/zh-CN/1.9.x/doc-markdown/index.html
index 1058fd5461..bbcae04107 100644
--- a/docs/zh-CN/1.9.x/doc-markdown/index.html
+++ b/docs/zh-CN/1.9.x/doc-markdown/index.html
@@ -214,7 +214,7 @@ usePrism: ['jsx']
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/zh-CN/api-pages.html b/docs/zh-CN/api-pages.html
index 968211cb61..e2575f6c94 100644
--- a/docs/zh-CN/api-pages.html
+++ b/docs/zh-CN/api-pages.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/zh-CN/api-pages/index.html b/docs/zh-CN/api-pages/index.html
index 968211cb61..e2575f6c94 100644
--- a/docs/zh-CN/api-pages/index.html
+++ b/docs/zh-CN/api-pages/index.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/zh-CN/doc-markdown.html b/docs/zh-CN/doc-markdown.html
index a67bee80b0..b788490edc 100644
--- a/docs/zh-CN/doc-markdown.html
+++ b/docs/zh-CN/doc-markdown.html
@@ -232,7 +232,7 @@ ReactDOM.render(<h1>Hello, world!</h1>, document.getElementById('roo
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/zh-CN/doc-markdown/index.html b/docs/zh-CN/doc-markdown/index.html
index a67bee80b0..b788490edc 100644
--- a/docs/zh-CN/doc-markdown/index.html
+++ b/docs/zh-CN/doc-markdown/index.html
@@ -232,7 +232,7 @@ ReactDOM.render(<h1>Hello, world!</h1>, document.getElementById('roo
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/zh-CN/next/api-pages.html b/docs/zh-CN/next/api-pages.html
index f47b9d4486..e05e970aa7 100644
--- a/docs/zh-CN/next/api-pages.html
+++ b/docs/zh-CN/next/api-pages.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/zh-CN/next/api-pages/index.html b/docs/zh-CN/next/api-pages/index.html
index f47b9d4486..e05e970aa7 100644
--- a/docs/zh-CN/next/api-pages/index.html
+++ b/docs/zh-CN/next/api-pages/index.html
@@ -202,21 +202,21 @@ MyPage.description = 'My Custom Description';
   className="myCustomClass"
   contents={[
     {
-      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
-      content: 'Learn how to use this project',
-      image: siteConfig.baseUrl + 'img/learn.png',
-      imageAlt: 'Learn how to use this project',
-      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
+      title: `[Learn](${siteConfig.baseUrl}${siteConfig.docsUrl}/tutorial.html)`,
+      content: 'Learn how to use this project',
+      image: siteConfig.baseUrl + 'img/learn.png',
+      imageAlt: 'Learn how to use this project',
+      imageLink: siteConfig.baseUrl + 'docs/tutorial.html',
     },
     {
-      title: 'Frequently Asked Questions',
-      content: 'Questions gathered from the community',
-      image: siteConfig.baseUrl + 'img/faq.png',
-      imageAlign: 'top',
+      title: 'Frequently Asked Questions',
+      content: 'Questions gathered from the community',
+      image: siteConfig.baseUrl + 'img/faq.png',
+      imageAlign: 'top',
     },
     {
-      title: 'More',
-      content: 'Lots of documentation is on this site',
+      title: 'More',
+      content: 'Lots of documentation is on this site',
     },
   ]}
 />
diff --git a/docs/zh-CN/next/doc-markdown.html b/docs/zh-CN/next/doc-markdown.html
index 162676d0fa..f87052bbd1 100644
--- a/docs/zh-CN/next/doc-markdown.html
+++ b/docs/zh-CN/next/doc-markdown.html
@@ -217,7 +217,7 @@ usePrism: ['jsx']
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/zh-CN/next/doc-markdown/index.html b/docs/zh-CN/next/doc-markdown/index.html
index 162676d0fa..f87052bbd1 100644
--- a/docs/zh-CN/next/doc-markdown/index.html
+++ b/docs/zh-CN/next/doc-markdown/index.html
@@ -217,7 +217,7 @@ usePrism: ['jsx']
 
class Example extends React.Component {
   render() {
     return (
-      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
+      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
         <Text>Docusaurus</Text>
         <Button
           title="Click me"
diff --git a/docs/zh-CN/next/publishing.html b/docs/zh-CN/next/publishing.html
index 4ac96499d5..c25a1f37d8 100644
--- a/docs/zh-CN/next/publishing.html
+++ b/docs/zh-CN/next/publishing.html
@@ -306,34 +306,34 @@
 
 
# azure-pipelines.yml
 trigger:
-- master
+  - master
 
 pool:
   vmImage: 'ubuntu-latest'
 
 steps:
 
-- checkout: self
-  persistCredentials: true
+  - checkout: self
+    persistCredentials: true
 
-- task: NodeTool@0
-  inputs:
-    versionSpec: '10.x'
-  displayName: 'Install Node.js'
+  - task: NodeTool@0
+    inputs:
+      versionSpec: '10.x'
+    displayName: 'Install Node.js'
 
-- script: |
-    git config --global user.name "${GH_NAME}"
-    git config --global user.email "${GH_EMAIL}"
-    git checkout -b master
-    echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
-    cd website
-    yarn install
-    GIT_USER="${GH_NAME}" CURRENT_BRANCH=master yarn run publish-gh-pages
-  env:
-    GH_NAME: $(GH_NAME)
-    GH_EMAIL: $(GH_EMAIL)
-    GH_TOKEN: $(GH_TOKEN)
-  displayName: 'yarn install and build'
+  - script: |
+      git config --global user.name "${GH_NAME}"
+      git config --global user.email "${GH_EMAIL}"
+      git checkout -b master
+      echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
+      cd website
+      yarn install
+      GIT_USER="${GH_NAME}" CURRENT_BRANCH=master yarn run publish-gh-pages
+    env:
+      GH_NAME: $(GH_NAME)
+      GH_EMAIL: $(GH_EMAIL)
+      GH_TOKEN: $(GH_TOKEN)
+    displayName: 'yarn install and build'
 

Hosting on ZEIT Now

With ZEIT Now, you can deploy your site and connect it to GitHub or GitLab to automatically receive a new deployment every time you push a commit.

diff --git a/docs/zh-CN/next/publishing/index.html b/docs/zh-CN/next/publishing/index.html index 4ac96499d5..c25a1f37d8 100644 --- a/docs/zh-CN/next/publishing/index.html +++ b/docs/zh-CN/next/publishing/index.html @@ -306,34 +306,34 @@
# azure-pipelines.yml
 trigger:
-- master
+  - master
 
 pool:
   vmImage: 'ubuntu-latest'
 
 steps:
 
-- checkout: self
-  persistCredentials: true
+  - checkout: self
+    persistCredentials: true
 
-- task: NodeTool@0
-  inputs:
-    versionSpec: '10.x'
-  displayName: 'Install Node.js'
+  - task: NodeTool@0
+    inputs:
+      versionSpec: '10.x'
+    displayName: 'Install Node.js'
 
-- script: |
-    git config --global user.name "${GH_NAME}"
-    git config --global user.email "${GH_EMAIL}"
-    git checkout -b master
-    echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
-    cd website
-    yarn install
-    GIT_USER="${GH_NAME}" CURRENT_BRANCH=master yarn run publish-gh-pages
-  env:
-    GH_NAME: $(GH_NAME)
-    GH_EMAIL: $(GH_EMAIL)
-    GH_TOKEN: $(GH_TOKEN)
-  displayName: 'yarn install and build'
+  - script: |
+      git config --global user.name "${GH_NAME}"
+      git config --global user.email "${GH_EMAIL}"
+      git checkout -b master
+      echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
+      cd website
+      yarn install
+      GIT_USER="${GH_NAME}" CURRENT_BRANCH=master yarn run publish-gh-pages
+    env:
+      GH_NAME: $(GH_NAME)
+      GH_EMAIL: $(GH_EMAIL)
+      GH_TOKEN: $(GH_TOKEN)
+    displayName: 'yarn install and build'
 

Hosting on ZEIT Now

With ZEIT Now, you can deploy your site and connect it to GitHub or GitLab to automatically receive a new deployment every time you push a commit.

diff --git a/docs/zh-CN/site-config.html b/docs/zh-CN/site-config.html index 80e8909f5a..d57bbd22e8 100644 --- a/docs/zh-CN/site-config.html +++ b/docs/zh-CN/site-config.html @@ -144,6 +144,9 @@

Control the title of the blog sidebar. See the adding a blog docs for more information.

cleanUrl [boolean]

If true, allow URLs with no HTML extension. For example, a request to URL https://docusaurus.io/docs/installation will return the same result as https://docusaurus.io/docs/installation.html.

+
+

If users intend for this website to be used exclusively offline, this value must be set to false. Otherwise, it will cause the site to route to the parent folder of the linked page.

+

cname [string]

The CNAME for your website. It will go into a CNAME file when your site is built.

customDocsPath [string]

@@ -241,8 +244,8 @@

An array of plugins to be loaded by Remarkable, the markdown parser and renderer used by Docusaurus. The plugin will receive a reference to the Remarkable instance, allowing custom parsing and rendering rules to be defined.

For example, if you want to enable superscript and subscript in your markdown that is rendered by Remarkable to HTML, you would do the following:

  markdownPlugins: [
-    function foo(md) {
-      md.inline.ruler.enable(['sub', 'sup']);
+    function foo(md) {
+      md.inline.ruler.enable(['sub', 'sup']);
     },
   ],
 
@@ -282,6 +285,14 @@

wrapPagesHTML [boolean]

Boolean flag to indicate whether HTML files in /pages should be wrapped with Docusaurus site styles, header and footer. This feature is experimental and relies on the files being HTML fragments instead of complete pages. It inserts the contents of your HTML file with no extra processing. Defaults to false.

Users can also add their own custom fields if they wish to provide some data across different files.

+

Adding Google Fonts

+ +

Google Fonts offers faster load times by caching fonts without forcing users to sacrifice privacy. For more information on Google Fonts, see the Google Fonts documentation.

+

To add Google Fonts to your Docusaurus deployment, add the font path to the siteConfig.js under stylesheets:

+
stylesheets: [
+  'https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,700',
+],
+

Example siteConfig.js with many available fields

const users = [
   {
@@ -377,7 +388,7 @@
 
 module.exports = siteConfig;
 
-
Docusaurus
Docs
Getting StartedVersioningLocalizationadding a blog docs for more information.

cleanUrl [boolean]

If true, allow URLs with no HTML extension. For example, a request to URL https://docusaurus.io/docs/installation will return the same result as https://docusaurus.io/docs/installation.html.

+
+

If users intend for this website to be used exclusively offline, this value must be set to false. Otherwise, it will cause the site to route to the parent folder of the linked page.

+

cname [string]

The CNAME for your website. It will go into a CNAME file when your site is built.

customDocsPath [string]

@@ -241,8 +244,8 @@

An array of plugins to be loaded by Remarkable, the markdown parser and renderer used by Docusaurus. The plugin will receive a reference to the Remarkable instance, allowing custom parsing and rendering rules to be defined.

For example, if you want to enable superscript and subscript in your markdown that is rendered by Remarkable to HTML, you would do the following:

  markdownPlugins: [
-    function foo(md) {
-      md.inline.ruler.enable(['sub', 'sup']);
+    function foo(md) {
+      md.inline.ruler.enable(['sub', 'sup']);
     },
   ],
 
@@ -282,6 +285,14 @@

wrapPagesHTML [boolean]

Boolean flag to indicate whether HTML files in /pages should be wrapped with Docusaurus site styles, header and footer. This feature is experimental and relies on the files being HTML fragments instead of complete pages. It inserts the contents of your HTML file with no extra processing. Defaults to false.

Users can also add their own custom fields if they wish to provide some data across different files.

+

Adding Google Fonts

+ +

Google Fonts offers faster load times by caching fonts without forcing users to sacrifice privacy. For more information on Google Fonts, see the Google Fonts documentation.

+

To add Google Fonts to your Docusaurus deployment, add the font path to the siteConfig.js under stylesheets:

+
stylesheets: [
+  'https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,700',
+],
+

Example siteConfig.js with many available fields

const users = [
   {
@@ -377,7 +388,7 @@
 
 module.exports = siteConfig;
 
-
diff --git a/docs/zh-CN/translation/index.html b/docs/zh-CN/translation/index.html index 80c4882e12..a1b494092f 100644 --- a/docs/zh-CN/translation/index.html +++ b/docs/zh-CN/translation/index.html @@ -1,4 +1,4 @@ -Translations & Localization · Docusaurus
Translate

Translations & Localization

Docusaurus 借助 Crowdin 可以非常简单的实现翻译功能。 用英文写的文档文件会被上传到 Crowdin, 供社区内的用户翻译。 用英文字符串编写的顶级网页可以通过在<translate>标记中打包任何要翻译的字符串来进行翻译。 其他标题和标签也会被发现和正确翻译。

+
Translate

Translations & Localization

Docusaurus allows for useful translation functionality using Crowdin. 用英文写的文档文件会被上传到 Crowdin, 供社区内的用户翻译。 用英文字符串编写的顶级网页可以通过在<translate>标记中打包任何要翻译的字符串来进行翻译。 其他标题和标签也会被发现和正确翻译。

Docusaurus 翻译配置

To generate example files for translations with Docusaurus, run the examples script with the command line argument translations:

npm run examples translations
@@ -208,7 +208,6 @@ languages.js
 preserve_hierarchy: true
 
 files:
-
   - source: '/docs/**/*.md'
     translation: '/website/translated_docs/%locale%/**/%original_file_name%'
     languages_mapping: &anchor
@@ -239,8 +238,14 @@ CROWDIN_DOCUSAURUS_PROJECT_ID=YOUR_CROWDIN_PROJECT_ID CROWDIN_DOCUSAURUS_API_KEY
 

YOUR_CROWDIN_PROJECT_ID is the name of your Crowdin project. e.g., for https://crowdin.com/project/docusaurus/, that variable would be set to docusaurus. YOUR_CROWDIN_API_KEY is a unique key that is like a password. You can find it in the API tab of your Crowdin project's Settings.

+
+

These commands require having an environment variable set with your Crowdin project id and api key (CROWDIN_PROJECT_ID, CROWDIN_API_KEY). You can preface them inline as done above or add them permanently to your .bashrc or .bash_profile.

+
+

If you run more than one localized Docusaurus project on your computer, you should change the name of the environment variables to something unique (CROWDIN_PROJECTNAME_PROJECT_ID, CROWDIN_PROJECTNAME_API_KEY).

+
+

Since the files are generated, you do not need to have any files in your website/i18n or website/translated_docs directory as part of your repo. So you can can add website/i18n/* and website/translated_docs to your .gitignore file.

Automated File Sync Using CircleCI

@@ -260,11 +265,9 @@ CROWDIN_DOCUSAURUS_PROJECT_ID=YOUR_CROWDIN_PROJECT_ID CROWDIN_DOCUSAURUS_API_KEY deploy-website: docker: # specify the version you desire here - - image: circleci/node:8.11.1 steps: - - checkout - run: name: Deploying to GitHub Pages @@ -288,7 +291,6 @@ CROWDIN_DOCUSAURUS_PROJECT_ID=YOUR_CROWDIN_PROJECT_ID CROWDIN_DOCUSAURUS_API_KEY version: 2 build_and_deploy: jobs: - - deploy-website: # filters: *filter-only-master