Skip to content

Commit 2286889

Browse files
author
ChrisChinchilla
committed
Fix rendering issues
Signed-off-by: ChrisChinchilla <[email protected]>
1 parent c34d20d commit 2286889

21 files changed

+104
-196
lines changed

site/config/_default/config.toml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,18 @@ metaDataFormat = "yaml"
3838
# baseURL = "/"
3939
languageCode = "en-US"
4040
defaultContentLanguage = "en"
41+
defaultContentLanguageInSubdir = true
4142
# staticDir = ["static"]
42-
defaultContentLanguageInSubdir= true
43+
# defaultContentLanguageInSubdir= true
44+
45+
[languages]
46+
[languages.en]
47+
title = "Kubernetes"
48+
description = "Production-Grade Container Orchestration"
49+
languageName ="English"
50+
# Weight used for sorting.
51+
weight = 1
52+
languagedirection = "ltr"
4353

4454
# Highlighting config.
4555
pygmentsCodeFences = true

site/config/development/config.toml

Lines changed: 1 addition & 159 deletions
Original file line numberDiff line numberDiff line change
@@ -29,162 +29,4 @@
2929

3030
[[module.mounts]]
3131
source = "archetypes"
32-
target = "archetypes"
33-
34-
ignoreFiles = [ "\\.ttf$", "\\.woff$", "\\.woff2$", "\\.eot$" ]
35-
36-
[permalinks]
37-
"/" = "/docs/:section/:title/"
38-
"faqs" = "/docs/:section/:title/"
39-
"glossaries" = "/docs/:section/:title/"
40-
"how_tos" = "/docs/:section/:title/"
41-
"integrations" = "/docs/:section/:title/"
42-
"m3coordinators" = "/docs/:section/:title/"
43-
"m3dbs" = "/docs/:section/:title/"
44-
"m3querys" = "/docs/:section/:title/"
45-
"operational_guides" = "/docs/:section/:title/"
46-
"overviews" = "/docs/:section/:title/"
47-
"quickstarts" = "/docs/:section/:title/"
48-
"troubleshootings" = "/docs/:section/:title/"
49-
50-
# theme = "docs-theme"
51-
# baseURL = "/"
52-
languageCode = "en-US"
53-
defaultContentLanguage = "en"
54-
# staticDir = ["static"]
55-
56-
metaDataFormat = "yaml"
57-
defaultContentLanguageInSubdir= true
58-
59-
# Highlighting config.
60-
pygmentsCodeFences = true
61-
pygmentsUseClasses = false
62-
# Use the new Chroma Go highlighter in Hugo.
63-
pygmentsUseClassic = false
64-
#pygmentsOptions = "linenos=table"
65-
# See https://help.farbox.com/pygments.html
66-
# pygmentsStyle = "vs"
67-
68-
enableGitInfo = true
69-
70-
[frontmatter]
71-
# date = ["date", ":filename", "publishDate", "lastmod"]
72-
73-
# Image processing configuration.
74-
[imaging]
75-
resampleFilter = "CatmullRom"
76-
quality = 75
77-
anchor = "smart"
78-
79-
[services]
80-
[services.googleAnalytics]
81-
# Comment out the next line to disable GA tracking. Also disables the feature described in [params.ui.feedback].
82-
# id = "UA-00000000-0"
83-
84-
#fullversion = "v1.18.0"
85-
#version = "v1.18"
86-
githubbranch = "master"
87-
docsbranch = "master"
88-
deprecated = false
89-
#currentUrl = "https://kubernetes.io/home/"
90-
#nextUrl = "https://kubernetes-io-vnext-staging.netlify.com/"
91-
githubWebsiteRepo = "https://github.com/m3db/m3"
92-
githubWebsiteRaw = "raw.githubusercontent.com/m3db/m3"
93-
94-
# Enable Algolia DocSearch
95-
# algolia_docsearch = false
96-
97-
# Enable Lunr.js offline search
98-
offlineSearch = false
99-
100-
[params]
101-
# Prefix URL to edit current page. Will display an "Edit this page" button on top right hand corner of every page.
102-
# Useful to give opportunity to people to create merge request for your doc.
103-
# See the config.toml file from this documentation site to have an example.
104-
# TODO: pattern to branch?
105-
# TODO: bring back
106-
# editURL = "https://github.com/m3db/m3/tree/master/site/content/"
107-
# Shows a checkmark for visited pages on the menu
108-
showVisitedLinks = false
109-
# Disable search function. It will hide search bar
110-
disableSearch = false
111-
# Javascript and CSS cache are automatically busted when new version of site is generated.
112-
# Set this to true to disable this behavior (some proxies don't handle well this optimization)
113-
disableAssetsBusting = false
114-
# Set this to true to disable copy-to-clipboard button for inline code.
115-
disableInlineCopyToClipBoard = true
116-
# A title for shortcuts in menu is set by default. Set this to true to disable it.
117-
disableShortcutsTitle = false
118-
# When using mulitlingual website, disable the switch language button.
119-
disableLanguageSwitchingButton = false
120-
# Hide breadcrumbs in the header and only show the current page title
121-
disableBreadcrumb = true
122-
# Hide Next and Previous page buttons normally displayed full height beside content
123-
disableNextPrev = true
124-
# Order sections in menu by "weight" or "title". Default to "weight"
125-
ordersectionsby = "weight"
126-
# Change default color scheme with a variant one. Can be "red", "blue", "green".
127-
themeVariant = "blue"
128-
twitter = "m3db_io"
129-
disableHomeIcon = true
130-
131-
[params.api]
132-
localCordinator = "http://localhost:7201/"
133-
apiEndpoint = "api/v1/"
134-
135-
# TODO: Might need to refactor some of the K8s shortcodes later
136-
# Add your release versions here
137-
# TODO: Enable when ready
138-
# [[params.versions]]
139-
# version = "1.0"
140-
# url = "https://master.kubeflow.org"
141-
# [[params.versions]]
142-
# version = "0.9"
143-
# url = "https://master.kubeflow.org"
144-
145-
# version_menu = "Versions"
146-
147-
# TODO: Do not like doing this really
148-
[markup]
149-
[markup.goldmark]
150-
[markup.goldmark.renderer]
151-
unsafe = true
152-
[markup.goldmark.parser]
153-
attribute = true
154-
autoHeadingID = true
155-
autoHeadingIDType = "github"
156-
[markup.tableOfContents]
157-
endLevel = 3
158-
ordered = false
159-
startLevel = 2
160-
[markup.goldmark.extensions]
161-
definitionList = true
162-
footnote = true
163-
linkify = true
164-
strikethrough = true
165-
table = true
166-
taskList = true
167-
typographer = true
168-
169-
[[menu.shortcuts]]
170-
pre = "<h3>More</h3>"
171-
name = "<i class='fa fa-github'></i> <label>Github repo</label>"
172-
identifier = "ds"
173-
url = "https://github.com/m3db/m3"
174-
weight = 10
175-
176-
[[menu.shortcuts]]
177-
name = "<i class='fa fa-slack'></i> <label>Slack</label>"
178-
url = "https://bit.ly/m3slack"
179-
weight = 11
180-
181-
[[menu.shortcuts]]
182-
name = "<i class='fa fa-inbox'></i> <label>Mailing list</label>"
183-
url = "https://groups.google.com/forum/#!forum/m3db"
184-
weight = 12
185-
186-
[outputs]
187-
home = [ "HTML", "RSS", "JSON"]
188-
page = [ "HTML"]
189-
section = [ "HTML"]
190-
chapter = [ "HTML"]
32+
target = "archetypes"

site/content/cluster/binaries_cluster.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ We recommend a replication factor of **3**, with each replica spread across fail
250250

251251
Read the [placement configuration guide](/docs/operational_guide/placement_configuration) to determine the appropriate number of shards to specify.
252252

253-
{{% fileinclude file="getting-started/common-steps.md" %}}
253+
{{< fileinclude file="cluster-common-steps.md" >}}
254254

255255
<!-- ## Next Steps
256256

site/content/cluster/kubernetes_cluster.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,4 @@ kubectl delete m3dbcluster simple-cluster
9292

9393
By default, the operator uses [finalizers](https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#finalizers) to delete the placement and namespaces associated with a cluster before the custom resources. If you do not want this behavior, set `keepEtcdDataOnDelete` to `true` in the cluster configuration.
9494

95-
{{% fileinclude file="quickstart/common-steps.md" %}}
95+
{{< fileinclude file="cluster-common-steps.md" >}}

site/content/includes/getting-started/common-steps.md renamed to site/content/includes/cluster-common-steps.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,17 @@ Label names may contain ASCII letters, numbers, underscores, and Unicode charact
2828
{{< tabs name="write_metrics" >}}
2929
{{< tab name="Command 1" >}}
3030

31-
{{% codeinclude file="quickstart/write-metrics-1.sh" language="shell" %}}
31+
{{< codeinclude file="docs/includes/write-metrics-1.sh" language="shell" >}}
3232

3333
{{< /tab >}}
3434
{{< tab name="Command 2" >}}
3535

36-
{{% codeinclude file="quickstart/write-metrics-2.sh" language="shell" %}}
36+
{{< codeinclude file="docs/includes/write-metrics-2.sh" language="shell" >}}
3737

3838
{{< /tab >}}
3939
{{< tab name="Command 3" >}}
4040

41-
{{% codeinclude file="quickstart/write-metrics-3.sh" language="shell" %}}
41+
{{< codeinclude file="docs/includes/write-metrics-3.sh" language="shell" >}}
4242

4343
{{< /tab >}}
4444
{{< /tabs >}}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
curl -X POST http://localhost:7201/api/v1/database/create -d '{
3+
"type": "local",
4+
"namespaceName": "default",
5+
"retentionTime": "12h"
6+
}' | jq .

0 commit comments

Comments
 (0)