From 22868897887d635817cfaefad1e13c4f23431888 Mon Sep 17 00:00:00 2001 From: ChrisChinchilla Date: Thu, 3 Dec 2020 18:14:21 +0100 Subject: [PATCH] Fix rendering issues Signed-off-by: ChrisChinchilla --- site/config/_default/config.toml | 12 +- site/config/development/config.toml | 160 +----------------- site/content/cluster/binaries_cluster.md | 2 +- .../quickstart => cluster}/create-database.sh | 0 site/content/cluster/kubernetes_cluster.md | 2 +- .../quickstart => cluster}/write-metrics-1.sh | 0 .../quickstart => cluster}/write-metrics-2.sh | 0 .../quickstart => cluster}/write-metrics-3.sh | 0 ...ommon-steps.md => cluster-common-steps.md} | 6 +- site/content/includes/create-database.sh | 6 + site/content/includes/podtemplate.json | 22 --- ...on-steps.md => quickstart-common-steps.md} | 14 +- site/content/includes/write-metrics-1.sh | 11 ++ site/content/includes/write-metrics-2.sh | 11 ++ site/content/includes/write-metrics-3.sh | 11 ++ site/content/quickstart/binaries.md | 2 +- site/content/quickstart/create-database.sh | 6 + site/content/quickstart/docker.md | 2 +- site/content/quickstart/write-metrics-1.sh | 11 ++ site/content/quickstart/write-metrics-2.sh | 11 ++ site/content/quickstart/write-metrics-3.sh | 11 ++ 21 files changed, 104 insertions(+), 196 deletions(-) rename site/content/{includes/quickstart => cluster}/create-database.sh (100%) rename site/content/{includes/quickstart => cluster}/write-metrics-1.sh (100%) rename site/content/{includes/quickstart => cluster}/write-metrics-2.sh (100%) rename site/content/{includes/quickstart => cluster}/write-metrics-3.sh (100%) rename site/content/includes/{getting-started/common-steps.md => cluster-common-steps.md} (95%) create mode 100644 site/content/includes/create-database.sh delete mode 100644 site/content/includes/podtemplate.json rename site/content/includes/{quickstart/common-steps.md => quickstart-common-steps.md} (97%) create mode 100755 site/content/includes/write-metrics-1.sh create mode 100755 site/content/includes/write-metrics-2.sh create mode 100755 site/content/includes/write-metrics-3.sh create mode 100644 site/content/quickstart/create-database.sh create mode 100755 site/content/quickstart/write-metrics-1.sh create mode 100755 site/content/quickstart/write-metrics-2.sh create mode 100755 site/content/quickstart/write-metrics-3.sh diff --git a/site/config/_default/config.toml b/site/config/_default/config.toml index 4ebb6db2e3..3ebf7f99fe 100644 --- a/site/config/_default/config.toml +++ b/site/config/_default/config.toml @@ -38,8 +38,18 @@ metaDataFormat = "yaml" # baseURL = "/" languageCode = "en-US" defaultContentLanguage = "en" +defaultContentLanguageInSubdir = true # staticDir = ["static"] -defaultContentLanguageInSubdir= true +# defaultContentLanguageInSubdir= true + +[languages] +[languages.en] +title = "Kubernetes" +description = "Production-Grade Container Orchestration" +languageName ="English" +# Weight used for sorting. +weight = 1 +languagedirection = "ltr" # Highlighting config. pygmentsCodeFences = true diff --git a/site/config/development/config.toml b/site/config/development/config.toml index 5f22fa6660..95d51cbfcc 100644 --- a/site/config/development/config.toml +++ b/site/config/development/config.toml @@ -29,162 +29,4 @@ [[module.mounts]] source = "archetypes" - target = "archetypes" - -ignoreFiles = [ "\\.ttf$", "\\.woff$", "\\.woff2$", "\\.eot$" ] - -[permalinks] - "/" = "/docs/:section/:title/" - "faqs" = "/docs/:section/:title/" - "glossaries" = "/docs/:section/:title/" - "how_tos" = "/docs/:section/:title/" - "integrations" = "/docs/:section/:title/" - "m3coordinators" = "/docs/:section/:title/" - "m3dbs" = "/docs/:section/:title/" - "m3querys" = "/docs/:section/:title/" - "operational_guides" = "/docs/:section/:title/" - "overviews" = "/docs/:section/:title/" - "quickstarts" = "/docs/:section/:title/" - "troubleshootings" = "/docs/:section/:title/" - -# theme = "docs-theme" -# baseURL = "/" -languageCode = "en-US" -defaultContentLanguage = "en" -# staticDir = ["static"] - -metaDataFormat = "yaml" -defaultContentLanguageInSubdir= true - -# Highlighting config. -pygmentsCodeFences = true -pygmentsUseClasses = false -# Use the new Chroma Go highlighter in Hugo. -pygmentsUseClassic = false -#pygmentsOptions = "linenos=table" -# See https://help.farbox.com/pygments.html -# pygmentsStyle = "vs" - -enableGitInfo = true - -[frontmatter] -# date = ["date", ":filename", "publishDate", "lastmod"] - -# Image processing configuration. -[imaging] -resampleFilter = "CatmullRom" -quality = 75 -anchor = "smart" - -[services] -[services.googleAnalytics] -# Comment out the next line to disable GA tracking. Also disables the feature described in [params.ui.feedback]. -# id = "UA-00000000-0" - -#fullversion = "v1.18.0" -#version = "v1.18" -githubbranch = "master" -docsbranch = "master" -deprecated = false -#currentUrl = "https://kubernetes.io/home/" -#nextUrl = "https://kubernetes-io-vnext-staging.netlify.com/" -githubWebsiteRepo = "https://github.com/m3db/m3" -githubWebsiteRaw = "raw.githubusercontent.com/m3db/m3" - -# Enable Algolia DocSearch -# algolia_docsearch = false - -# Enable Lunr.js offline search -offlineSearch = false - -[params] - # Prefix URL to edit current page. Will display an "Edit this page" button on top right hand corner of every page. - # Useful to give opportunity to people to create merge request for your doc. - # See the config.toml file from this documentation site to have an example. - # TODO: pattern to branch? - # TODO: bring back - # editURL = "https://github.com/m3db/m3/tree/master/site/content/" - # Shows a checkmark for visited pages on the menu - showVisitedLinks = false - # Disable search function. It will hide search bar - disableSearch = false - # Javascript and CSS cache are automatically busted when new version of site is generated. - # Set this to true to disable this behavior (some proxies don't handle well this optimization) - disableAssetsBusting = false - # Set this to true to disable copy-to-clipboard button for inline code. - disableInlineCopyToClipBoard = true - # A title for shortcuts in menu is set by default. Set this to true to disable it. - disableShortcutsTitle = false - # When using mulitlingual website, disable the switch language button. - disableLanguageSwitchingButton = false - # Hide breadcrumbs in the header and only show the current page title - disableBreadcrumb = true - # Hide Next and Previous page buttons normally displayed full height beside content - disableNextPrev = true - # Order sections in menu by "weight" or "title". Default to "weight" - ordersectionsby = "weight" - # Change default color scheme with a variant one. Can be "red", "blue", "green". - themeVariant = "blue" - twitter = "m3db_io" - disableHomeIcon = true - - [params.api] - localCordinator = "http://localhost:7201/" - apiEndpoint = "api/v1/" - - # TODO: Might need to refactor some of the K8s shortcodes later -# Add your release versions here -# TODO: Enable when ready -# [[params.versions]] -# version = "1.0" -# url = "https://master.kubeflow.org" -# [[params.versions]] -# version = "0.9" -# url = "https://master.kubeflow.org" - -# version_menu = "Versions" - -# TODO: Do not like doing this really -[markup] - [markup.goldmark] - [markup.goldmark.renderer] - unsafe = true - [markup.goldmark.parser] - attribute = true - autoHeadingID = true - autoHeadingIDType = "github" - [markup.tableOfContents] - endLevel = 3 - ordered = false - startLevel = 2 - [markup.goldmark.extensions] - definitionList = true - footnote = true - linkify = true - strikethrough = true - table = true - taskList = true - typographer = true - -[[menu.shortcuts]] -pre = "

More

" -name = " " -identifier = "ds" -url = "https://github.com/m3db/m3" -weight = 10 - -[[menu.shortcuts]] -name = " " -url = "https://bit.ly/m3slack" -weight = 11 - -[[menu.shortcuts]] -name = " " -url = "https://groups.google.com/forum/#!forum/m3db" -weight = 12 - -[outputs] -home = [ "HTML", "RSS", "JSON"] -page = [ "HTML"] -section = [ "HTML"] -chapter = [ "HTML"] + target = "archetypes" \ No newline at end of file diff --git a/site/content/cluster/binaries_cluster.md b/site/content/cluster/binaries_cluster.md index 9233436dfc..65c0d73f8d 100644 --- a/site/content/cluster/binaries_cluster.md +++ b/site/content/cluster/binaries_cluster.md @@ -250,7 +250,7 @@ We recommend a replication factor of **3**, with each replica spread across fail Read the [placement configuration guide](/docs/operational_guide/placement_configuration) to determine the appropriate number of shards to specify. -{{% fileinclude file="getting-started/common-steps.md" %}} +{{< fileinclude file="cluster-common-steps.md" >}}