diff --git a/website/pages/en/index.js b/website/pages/en/index.js index 8cc09d94..7c83a4d1 100755 --- a/website/pages/en/index.js +++ b/website/pages/en/index.js @@ -5,28 +5,34 @@ * LICENSE file in the root directory of this source tree. */ -const React = require('react'); +const React = require("react"); -const CompLibrary = require('../../core/CompLibrary.js'); +const CompLibrary = require("../../core/CompLibrary.js"); const MarkdownBlock = CompLibrary.MarkdownBlock; /* Used to read markdown */ const Container = CompLibrary.Container; const GridBlock = CompLibrary.GridBlock; -const siteConfig = require(process.cwd() + '/siteConfig.js'); +const siteConfig = require(process.cwd() + "/siteConfig.js"); +const MetadataBlog = require("../../core/MetadataBlog.js"); function imgUrl(img) { - return siteConfig.baseUrl + 'img/' + img; + return siteConfig.baseUrl + "img/" + img; } function docUrl(doc, language) { - return siteConfig.baseUrl + 'docs/' + (language ? language + '/' : '') + doc + ".html"; + return ( + siteConfig.baseUrl + + "docs/" + + (language ? language + "/" : "") + + doc + + ".html" + ); } function pageUrl(page, language) { - return siteConfig.baseUrl + (language ? language + '/' : '') + page; + return siteConfig.baseUrl + (language ? language + "/" : "") + page; } - const PopularTopicsSection = ({ language }) => (
@@ -37,59 +43,80 @@ const PopularTopicsSection = ({ language }) => ( justifyContent: "space-evenly" }} > -
+

Documentation Structure

- Architecture. - {' '}Explains various layers that make up Home Assistant. + + Architecture. + {" "} + Explains various layers that make up Home Assistant.

- Frontend. - {' '}Explains how to develop the user interface of Home Assistant. + + Frontend. + {" "} + Explains how to develop the user interface of Home Assistant.

- Backend. - {' '}Explains how to build new integrations for Home Assistant. + + Backend. + {" "} + Explains how to build new integrations for Home Assistant.

- Misc. - {' '}External APIs, Internationalization, asyncio, Hass.io add-ons, updating documentation. + + Misc. + {" "} + External APIs, Internationalization, asyncio, Hass.io add-ons, + updating documentation.

Popular topics

Source Code

-
); - class Button extends React.Component { render() { return ( @@ -103,7 +130,7 @@ class Button extends React.Component { } Button.defaultProps = { - target: '_self', + target: "_self" }; const SplashContainer = props => ( @@ -127,7 +154,9 @@ const ProjectTitle = props => ( Developer documentation
- Not a developer? Go to the normal website + + Not a developer? Go to the normal website +
); @@ -142,10 +171,10 @@ const PromoSection = props => ( class HomeSplash extends React.Component { render() { - let language = this.props.language || ''; + let language = this.props.language || ""; return ( - +
{/* @@ -159,11 +188,10 @@ class HomeSplash extends React.Component { } } - const IntroSection = ({ language }) => ( -
+
-
+