From 4cccabd6bf02b7c847c634493a0f7bd9b2580dd5 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Tue, 24 Apr 2018 14:25:24 -0400 Subject: [PATCH] Update sidebars --- website/i18n/en.json | 17 ++++--- website/sidebars.json | 108 ++++++++++++++++++++++-------------------- website/siteConfig.js | 16 +++---- 3 files changed, 73 insertions(+), 68 deletions(-) diff --git a/website/i18n/en.json b/website/i18n/en.json index cdc63d55..0ae9a010 100644 --- a/website/i18n/en.json +++ b/website/i18n/en.json @@ -71,19 +71,18 @@ "platform_example_sensor": "Example sensor platform", "releasing": "Releasing", "Developers": "Developers", - "Catch all category": "Catch all category", - "Maintainer docs": "Maintainer docs", - "Creating Platforms": "Creating Platforms", - "Creating Components": "Creating Components", - "Documentation": "Documentation", - "Frontend": "Frontend", - "Intents": "Intents", - "External API": "External API", "Architecture": "Architecture", + "Intents": "Intents", + "Catch all category": "Catch all category", + "Documentation": "Documentation", + "Maintainer docs": "Maintainer docs", + "Frontend": "Frontend", "Development": "Development", "Internationalization": "Internationalization", "Hass.io": "Hass.io", - "Introduction": "Introduction" + "Creating Platforms": "Creating Platforms", + "Creating Components": "Creating Components", + "External API": "External API" }, "pages-strings": { "Help Translate|recruit community translators for your project": "Help Translate", diff --git a/website/sidebars.json b/website/sidebars.json index 7308ce6a..1f22f771 100644 --- a/website/sidebars.json +++ b/website/sidebars.json @@ -1,39 +1,8 @@ { - "catch-all": { - "Catch all category": [ - "index" - ], - "Maintainer docs": [ - "maintenance", - "releasing" - ], - "Creating Platforms": [ - "add_new_platform", - "code_review_platform", - "platform_example_light", - "platform_example_sensor" - ], - "Creating Components": [ - "code_review_component", - "component_deps_and_reqs", - "component_discovery", - "component_events", - "component_generic_discovery", - "component_loading", - "component_states", - "creating_components" - ], - "Documentation": [ - "documentation_create_page", - "documentation_index", - "documentation_standards" - ], - "Frontend": [ - "frontend", - "frontend_add_card", - "frontend_add_more_info", - "frontend_creating_custom_panels", - "frontend_creating_custom_ui" + "Architecture": { + "Architecture": [ + "architecture", + "architecture_components" ], "Intents": [ "intent_conversation", @@ -41,23 +10,29 @@ "intent_handling", "intent_index" ], - "External API": [ - "external_api_python", - "external_api_rest", - "external_api_server_sent_events", - "external_api_websocket" + "Catch all category": [ + "index" ], - "Architecture": [ - "architecture", - "architecture_components" - ], - "asyncio": [ - "asyncio", - "asyncio_101", - "asyncio_categorizing_functions", - "asyncio_misc", - "asyncio_working_with_async" + "Documentation": [ + "documentation_create_page", + "documentation_index", + "documentation_standards" ], + "Maintainer docs": [ + "maintenance", + "releasing" + ] + }, + "Frontend": { + "Frontend": [ + "frontend", + "frontend_add_card", + "frontend_add_more_info", + "frontend_creating_custom_panels", + "frontend_creating_custom_ui" + ] + }, + "Development": { "Development": [ "development", "development_101", @@ -80,6 +55,15 @@ "internationalization_index", "internationalization_translation" ], + "asyncio": [ + "asyncio", + "asyncio_101", + "asyncio_categorizing_functions", + "asyncio_misc", + "asyncio_working_with_async" + ] + }, + "Hass.io": { "Hass.io": [ "hassio_addon_communication", "hassio_addon_config", @@ -94,7 +78,29 @@ ] }, "Building Integrations": { - "Introduction": [ + "Creating Platforms": [ + "add_new_platform", + "code_review_platform", + "platform_example_light", + "platform_example_sensor" + ], + "Creating Components": [ + "code_review_component", + "component_deps_and_reqs", + "component_discovery", + "component_events", + "component_generic_discovery", + "component_loading", + "component_states", + "creating_components" + ] + }, + "APIs": { + "External API": [ + "external_api_python", + "external_api_rest", + "external_api_server_sent_events", + "external_api_websocket" ] } } diff --git a/website/siteConfig.js b/website/siteConfig.js index c0ff580f..4dbdf4ba 100644 --- a/website/siteConfig.js +++ b/website/siteConfig.js @@ -19,17 +19,17 @@ const users = [ ]; const siteConfig = { - title: 'Test Site' /* title for your website */, - tagline: 'A website for testing', - url: 'https://your-docusaurus-test-site.com' /* your website url */, + title: 'Home Assistant dev docs' /* title for your website */, + tagline: 'All you need to start developing for Home Assistant', + url: 'https://developers.home-assistant.io' /* your website url */, baseUrl: '/' /* base url for your project */, // For github.io type URLs, you would set the url and baseUrl like: // url: 'https://facebook.github.io', // baseUrl: '/test-site/', // Used for publishing and more - projectName: 'test-site', - organizationName: 'facebook', + projectName: 'home-assistant', + organizationName: 'home-assistant', // For top-level user or org sites, the organization is still the same. // e.g., for the https://JoelMarcey.github.io site, it would be set like... // organizationName: 'JoelMarcey' @@ -52,8 +52,8 @@ const siteConfig = { /* colors for website */ colors: { - primaryColor: '#3fbbf4', - secondaryColor: '#205C3B', + primaryColor: '#03A9F4', + secondaryColor: '#ff9800', }, /* custom fonts for website */ @@ -72,7 +72,7 @@ const siteConfig = { copyright: 'Copyright © ' + new Date().getFullYear() + - ' Your Name or Your Company Name', + ' Home Assistant', highlight: { // Highlight.js theme to use for syntax highlighting in code blocks