Skip to content

Commit

Permalink
Fixed tip links. (thanos-io#3100)
Browse files Browse the repository at this point in the history
Signed-off-by: Bartlomiej Plotka <[email protected]>
  • Loading branch information
bwplotka authored Aug 29, 2020
1 parent 5aac477 commit 3b77969
Show file tree
Hide file tree
Showing 17 changed files with 14 additions and 19 deletions.
1 change: 0 additions & 1 deletion docs/community.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: Community
type: docs
menu: contributing
slug: /community.md
---

# General
Expand Down
1 change: 0 additions & 1 deletion docs/design.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: Design
type: docs
menu: thanos
slug: /design.md
---

# Design
Expand Down
1 change: 0 additions & 1 deletion docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ title: Getting Started
type: docs
menu: thanos
weight: 1
slug: /getting-started.md
---

# Getting started
Expand Down
1 change: 0 additions & 1 deletion docs/governance.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
title: Governance
type: docs
menu: thanos
slug: /governance.md
---

# Governance
Expand Down
1 change: 0 additions & 1 deletion docs/integrations.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: Integrations
type: docs
menu: thanos
slug: /integrations.md
---

# Integrations
Expand Down
1 change: 0 additions & 1 deletion docs/operating/binary-index-header.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: Binary index-header
type: docs
menu: operating
slug: /binary-index-header.md
---

# Binary index-header
Expand Down
1 change: 0 additions & 1 deletion docs/operating/multi-tenancy.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
title: Multi-Tenancy
type: docs
menu: operating
slug: /multi-tenancy.md
---

# Multi-Tenancy
Expand Down
1 change: 0 additions & 1 deletion docs/operating/reverse-proxy.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: Running Thanos behind a reverse proxy
type: docs
menu: operating
slug: /reverse-proxy.md
---

# Running Thanos behind a reverse proxy
Expand Down
1 change: 0 additions & 1 deletion docs/operating/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: Troubleshooting
type: docs
menu: operating
slug: /troubleshooting.md
---

# Troubleshooting; Common cases
Expand Down
1 change: 0 additions & 1 deletion docs/quick-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ title: Quick Tutorial
type: docs
menu: thanos
weight: 1
slug: /quick-tutorial.md
---

# Quick Tutorial
Expand Down
1 change: 0 additions & 1 deletion docs/release-process.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: Release Process
type: docs
menu: thanos
slug: /release-process.md
---

# Release Process
Expand Down
1 change: 0 additions & 1 deletion docs/service-discovery.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: Service Discovery
type: docs
menu: thanos
slug: /service-discovery.md
---

# Service Discovery
Expand Down
1 change: 0 additions & 1 deletion docs/sharding.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: Sharding
type: docs
menu: thanos
slug: /sharding.md
---

# Background
Expand Down
1 change: 0 additions & 1 deletion docs/storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: Object Storage
type: docs
menu: thanos
slug: /storage.md
---

# Object Storage
Expand Down
1 change: 0 additions & 1 deletion docs/tracing.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: Tracing
type: docs
menu: thanos
slug: /tracing.md
---

# Tracing
Expand Down
11 changes: 10 additions & 1 deletion scripts/website/contentpreprocess.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,16 @@ mv ${OUTPUT_CONTENT_DIR}/thanos/CONTRIBUTING.md ${OUTPUT_CONTENT_DIR}/contributi
mv ${OUTPUT_CONTENT_DIR}/thanos/CODE_OF_CONDUCT.md ${OUTPUT_CONTENT_DIR}/contributing/CODE_OF_CONDUCT.md
mv ${OUTPUT_CONTENT_DIR}/thanos/community.md ${OUTPUT_CONTENT_DIR}/contributing/community.md

#Create an _index.md in all dirs to enable sorting capabilities and make "tip" appear top in version picker
# Create an _index.md in Thanos dir.
echo "$(
cat <<EOF
---
title: "Thanos General Documents:"
---
EOF
)" >${OUTPUT_CONTENT_DIR}/thanos/_index.md

# Create an _index.md in this dir to enable sorting capabilities and make this version appear top in version picker
echo "$(
cat <<EOF
---
Expand Down
7 changes: 4 additions & 3 deletions website/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ disableLiveReload: true
googleAnalytics: "UA-137374921-1"

# So /thanos/docs/b link from /thanos/docs/some/a will be rewritten as ../b
uglyURLs: false
canonifyURLs: true
relativeURL: true


# NOTE: Hugo is expected to run from `website`
contentDir: "docs-pre-processed"
archetypeDir: "archetypes"
Expand All @@ -23,9 +25,8 @@ publishDir: "public"
staticDir: "static"

permalinks:
contributing: "/contributing/:filename.md"
components: "/components/:filename.md"
proposals: "/proposals/:filename.md"
# Generate those for every file.
tip: "/:sections/:filename.md"

params:
SlackInvite: "https://slack.cncf.io"
Expand Down

0 comments on commit 3b77969

Please sign in to comment.