From 4e54c5dc1c89aaab60d7e01eae3afa47fe0dcd0d Mon Sep 17 00:00:00 2001 From: Website Deployment Script Date: Wed, 28 Nov 2018 08:20:40 +0000 Subject: [PATCH] Deploy website Deploy website version based on 61078e38a928f5b2a79dfeaefaab20a771634673 --- docs/en/next/api-pages.html | 18 ++++++++++++++++-- docs/en/next/api-pages/index.html | 18 ++++++++++++++++-- docs/en/next/site-config.html | 9 ++++++--- docs/en/next/site-config/index.html | 9 ++++++--- docs/en/next/translation.html | 4 ++-- docs/en/next/translation/index.html | 4 ++-- docs/es-ES/1.0.11/commands.html | 2 +- docs/es-ES/1.0.11/commands/index.html | 2 +- docs/es-ES/1.0.12/commands.html | 2 +- docs/es-ES/1.0.12/commands/index.html | 2 +- docs/es-ES/1.0.13/commands.html | 2 +- docs/es-ES/1.0.13/commands/index.html | 2 +- docs/es-ES/1.0.14/commands.html | 2 +- docs/es-ES/1.0.14/commands/index.html | 2 +- docs/es-ES/1.0.15/commands.html | 2 +- docs/es-ES/1.0.15/commands/index.html | 2 +- docs/es-ES/1.1.0/commands.html | 2 +- docs/es-ES/1.1.0/commands/index.html | 2 +- docs/es-ES/1.1.1/commands.html | 2 +- docs/es-ES/1.1.1/commands/index.html | 2 +- docs/es-ES/1.1.2/commands.html | 2 +- docs/es-ES/1.1.2/commands/index.html | 2 +- docs/es-ES/1.1.3/commands.html | 2 +- docs/es-ES/1.1.3/commands/index.html | 2 +- docs/es-ES/1.1.4/commands.html | 2 +- docs/es-ES/1.1.4/commands/index.html | 2 +- docs/es-ES/1.1.5/commands.html | 2 +- docs/es-ES/1.1.5/commands/index.html | 2 +- docs/es-ES/1.2.0/commands.html | 2 +- docs/es-ES/1.2.0/commands/index.html | 2 +- docs/es-ES/1.2.1/commands.html | 2 +- docs/es-ES/1.2.1/commands/index.html | 2 +- docs/es-ES/1.3.0/commands.html | 2 +- docs/es-ES/1.3.0/commands/index.html | 2 +- docs/es-ES/1.3.1/commands.html | 2 +- docs/es-ES/1.3.1/commands/index.html | 2 +- docs/es-ES/1.3.2/commands.html | 2 +- docs/es-ES/1.3.2/commands/index.html | 2 +- docs/es-ES/1.3.3/commands.html | 2 +- docs/es-ES/1.3.3/commands/index.html | 2 +- docs/es-ES/1.4.0/commands.html | 2 +- docs/es-ES/1.4.0/commands/index.html | 2 +- docs/es-ES/1.5.0/commands.html | 2 +- docs/es-ES/1.5.0/commands/index.html | 2 +- docs/es-ES/commands.html | 2 +- docs/es-ES/commands/index.html | 2 +- en/index.html | 2 +- es-ES/index.html | 2 +- index.html | 2 +- ro/index.html | 2 +- tr/index.html | 2 +- zh-CN/index.html | 2 +- 52 files changed, 94 insertions(+), 60 deletions(-) diff --git a/docs/en/next/api-pages.html b/docs/en/next/api-pages.html index b2390e70c6..460ef9e1ac 100644 --- a/docs/en/next/api-pages.html +++ b/docs/en/next/api-pages.html @@ -54,6 +54,20 @@ } });
Edit

Pages and Styles

Docusaurus provides support for writing pages as React components inside the website/pages directory which will share the same header, footer, and styles as the rest of the site.

+

Provided Props

+

Docusaurus provides your siteConfig.js as a config props. Hence, you can access baseUrl or title through this props.

+

Example

+
const React = require('react');
+
+class MyPage extends React.Component {
+  render() {
+    const siteConfig = this.props.config;
+    return <div>{siteConfig.title}</div>;
+  }
+}
+
+module.exports = MyPage;
+

URLs for Pages

Any .js files in website/pages will be rendered to static HTML using the path of the file after pages. Files in website/pages/en will also get copied out into pages and will OVERRIDE any files of the same name in pages. For example, the page for the website/pages/en/help.js file will be found at the URL ${baseUrl}en/help.js as well as the URL ${baseUrl}help.js, where ${baseUrl} is the baseUrl field set in your siteConfig.js file.

Titles for Pages

@@ -161,7 +175,7 @@ MyPage.description = 'My Custom Description'; className="myCustomClass" contents={[ { - title: `[Learn](${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', @@ -205,7 +219,7 @@ MyPage.description = 'My Custom Description';

You should configure your site's primary, secondary, and code block colors using the colors field in siteConfig as specified here. You can also configure other colors in the same way as described in the siteConfig doc.

You can provide your own custom styles by adding them anywhere in the website/static directory. Any .css files you provide in the static directory will get concatenated to the end of Docusaurus' provided styles, allowing you to add to or override Docusaurus default styles as you wish.

An easy way to figure out what classes you wish to override or add to is to start your server locally and use your browser's inspect element tool.

-
Last updated on 2018-6-10 by Endilie Yacop Sucipto