From d4aa8de76175d5c5b9bdd6fafe4e9ff060c7ad79 Mon Sep 17 00:00:00 2001 From: Artur Janas Date: Wed, 18 Oct 2023 17:58:18 +0100 Subject: [PATCH 1/2] chore: cleanup links --- docusaurus.config.js | 129 +++++++++++++++++++-------------------- src/components/Footer.js | 37 +++++------ src/components/Navbar.js | 18 +++--- 3 files changed, 88 insertions(+), 96 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 384dbcb2..fb140e06 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -4,15 +4,15 @@ require('dotenv').config(); module.exports = { - title: "Infracost", - url: "https://www.infracost.io", - baseUrl: "/docs/", - onBrokenLinks: "throw", - onBrokenMarkdownLinks: "throw", + title: 'Infracost', + url: 'https://www.infracost.io', + baseUrl: '/docs/', + onBrokenLinks: 'throw', + onBrokenMarkdownLinks: 'throw', trailingSlash: true, - favicon: "img/favicon.png", - organizationName: "infracost", - projectName: "docs", + favicon: 'img/favicon.png', + organizationName: 'infracost', + projectName: 'docs', customFields: { infracostDocsApiToken: process.env.INFRACOST_DOCS_API_TOKEN, infracostDashboardApiEndpoint: process.env.INFRACOST_DASHBOARD_API_ENDPOINT, @@ -20,87 +20,84 @@ module.exports = { }, plugins: [ [ - "@docusaurus/plugin-client-redirects", + '@docusaurus/plugin-client-redirects', { redirects: [ { - from: "/integrations", - to: "/integrations/github_actions", + from: '/integrations', + to: '/integrations/github_actions', }, { - from: [ - "/environment_variables", - "/integrations/environment_variables", - ], - to: "/features/environment_variables", + from: ['/environment_variables', '/integrations/environment_variables'], + to: '/features/environment_variables', }, { - from: "/infracost_api", - to: "/integrations/infracost_api", + from: '/infracost_api', + to: '/integrations/infracost_api', }, { - from: "/terraform_cloud_enterprise", - to: "/integrations/terraform_cloud_enterprise", + from: '/terraform_cloud_enterprise', + to: '/integrations/terraform_cloud_enterprise', }, { - from: "/terragrunt", - to: "/features/terragrunt", + from: '/terragrunt', + to: '/features/terragrunt', }, { - from: "/config_file", - to: "/features/config_file", + from: '/config_file', + to: '/features/config_file', }, { - from: "/report", - to: "/features/cli_commands", + from: '/report', + to: '/features/cli_commands', }, { - from: "/supported_resources", - to: "/supported_resources/overview", + from: '/supported_resources', + to: '/supported_resources/overview', }, { - from: "/iac_tools/terraform_cloud_enterprise", - to: "/integrations/terraform_cloud_enterprise", + from: '/iac_tools/terraform_cloud_enterprise', + to: '/integrations/terraform_cloud_enterprise', }, { - from: "/iac_tools/terragrunt", - to: "/features/terragrunt", + from: '/iac_tools/terragrunt', + to: '/features/terragrunt', }, { - from: "/multi_project/config_file", - to: "/features/config_file", + from: '/multi_project/config_file', + to: '/features/config_file', }, { - from: "/features/config_file_template/", - to: "/features/config_file", + from: '/features/config_file_template/', + to: '/features/config_file', }, { - from: "/usage_based_resources/", - to: "/features/usage_based_resources/", + from: '/usage_based_resources/', + to: '/features/usage_based_resources/', }, { - from: "/multi_project/report", - to: "/features/cli_commands", + from: '/multi_project/report', + to: '/features/cli_commands', }, { - from: "/terraform_modules", - to: "/features/terraform_modules", + from: '/terraform_modules', + to: '/features/terraform_modules', }, { - from: "/guides/terraform_modules", - to: "/features/terraform_modules", + from: '/guides/terraform_modules', + to: '/features/terraform_modules', }, { - from: "/infracost_cloud/overview", - to: "/infracost_cloud/get_started", + from: '/infracost_cloud/overview', + to: '/infracost_cloud/get_started', }, { - from: "/integrations/jira", - to: "/infracost_cloud/jira_integration", + from: '/integrations/jira', + to: '/infracost_cloud/jira_integration', }, { - from: "/infracost_cloud/authentication", - to: "/infracost_cloud/key_concepts", + from: '/infracost_cloud/authentication', + to: '/infracost_cloud/key_concepts', }, { from: '/infracost_cloud/sso/overview', @@ -111,27 +108,27 @@ module.exports = { ], ], themeConfig: { - image: "docs/img/social-image.png", + image: 'docs/img/social-image.png', colorMode: { - defaultMode: "light", + defaultMode: 'light', disableSwitch: true, respectPrefersColorScheme: false, }, announcementBar: { - id: "support_us", + id: 'support_us', content: 'If you like Infracost, give it a star on GitHub!Star icon', - backgroundColor: "#2A2A5B", - textColor: "#EBEBF2", + backgroundColor: '#2A2A5B', + textColor: '#EBEBF2', }, prism: { - theme: require("prism-react-renderer/themes/dracula"), - additionalLanguages: ["hcl"], + theme: require('prism-react-renderer/themes/dracula'), + additionalLanguages: ['hcl'], }, algolia: { - appId: "ERN68FLCI1", - apiKey: "e62759e664aae55a8bfef8e93ecf6111", - indexName: "infracost", + appId: 'ERN68FLCI1', + apiKey: 'e62759e664aae55a8bfef8e93ecf6111', + indexName: 'infracost', contextualSearch: false, searchParameters: { facetFilters: [], @@ -140,22 +137,22 @@ module.exports = { }, presets: [ [ - "@docusaurus/preset-classic", + '@docusaurus/preset-classic', { docs: { - routeBasePath: "/", - sidebarPath: require.resolve("./sidebars.js"), + routeBasePath: '/', + sidebarPath: require.resolve('./sidebars.js'), editUrl: `https://github.com/infracost/docs/edit/master`, }, theme: { - customCss: require.resolve("./src/css/index.css"), + customCss: require.resolve('./src/css/index.css'), }, sitemap: { - changefreq: "weekly", + changefreq: 'weekly', priority: 0.5, }, gtag: { - trackingID: "G-9GFV9Z9NNZ", + trackingID: 'G-9GFV9Z9NNZ', anonymizeIP: true, }, googleTagManager: { diff --git a/src/components/Footer.js b/src/components/Footer.js index c62722e0..e41ae4c0 100644 --- a/src/components/Footer.js +++ b/src/components/Footer.js @@ -11,19 +11,19 @@ function Footer() {

Documentation

@@ -31,23 +31,23 @@ function Footer() {

Community