Skip to content

Commit

Permalink
Fix links by using Hugo modules tag
Browse files Browse the repository at this point in the history
The link is broken as the config.toml is not using module.mounts.

To fix this need to add [module] section to point to the deploy/
folder as the README.md files are inside that folder

Put the different directory as separate module.mount and upgrade
hugo version to 0.59.0
  • Loading branch information
nanikjava committed Oct 26, 2019
1 parent 989dc02 commit bd3956b
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 6 deletions.
5 changes: 5 additions & 0 deletions deploy/addons/layouts/gvisor/single.html
@@ -0,0 +1,5 @@
{{ define "main" }}
<div style="padding-top:20px">
{{ .Render "content" }}
</div>
{{ end }}
5 changes: 5 additions & 0 deletions deploy/addons/layouts/helm-tiller/single.html
@@ -0,0 +1,5 @@
{{ define "main" }}
<div style="padding-top:20px">
{{ .Render "content" }}
</div>
{{ end }}
5 changes: 5 additions & 0 deletions deploy/addons/layouts/ingress-dns/single.html
@@ -0,0 +1,5 @@
{{ define "main" }}
<div style="padding-top:60px">
{{ .Render "content" }}
</div>
{{ end }}
5 changes: 5 additions & 0 deletions deploy/addons/layouts/storage-provisioner-gluster/single.html
@@ -0,0 +1,5 @@
{{ define "main" }}
<div style="padding-top:20px">
{{ .Render "content" }}
</div>
{{ end }}
2 changes: 1 addition & 1 deletion netlify.toml
Expand Up @@ -4,7 +4,7 @@ publish = "site/public/"
command = "pwd && cd themes/docsy && git submodule update -f --init && cd ../.. && hugo"

[build.environment]
HUGO_VERSION = "0.55.6"
HUGO_VERSION = "0.59.0"

[context.production.environment]
HUGO_ENV = "production"
Expand Down
26 changes: 25 additions & 1 deletion site/config.toml
Expand Up @@ -9,7 +9,7 @@ theme = ["docsy"]
enableGitInfo = true

# Language settings
contentDir = "content/en"
contentDir = "content/en"
defaultContentLanguage = "en"
defaultContentLanguageInSubdir = false
# Useful when translating.
Expand All @@ -33,6 +33,30 @@ pygmentsStyle = "tango"
[permalinks]
blog = "/:section/:year/:month/:day/:slug/"

[module]
[[module.mounts]]
source = "../deploy/addons/gvisor/"
target = "content/gvisor/"
[[module.mounts]]
source = "../deploy/addons/helm-tiller/"
target = "content/helm-tiller/"
[[module.mounts]]
source = "../deploy/addons/ingress-dns/"
target = "content/ingress-dns/"
[[module.mounts]]
source = "../deploy/addons/storage-provisioner-gluster/"
target = "content/storage-provisioner-gluster/"
[[module.mounts]]
source = "../deploy/addons/layouts/"
target = "layouts"

[[module.mounts]]
source = "content/en"
target = "content"
[[module.mounts]]
source = "layouts"
target = "layouts"

## Configuration for BlackFriday markdown parser: https://github.com/russross/blackfriday
[blackfriday]
plainIDAnchors = true
Expand Down
8 changes: 4 additions & 4 deletions site/content/en/docs/Tasks/addons.md
Expand Up @@ -20,10 +20,10 @@ minikube has a set of built-in addons that, when enabled, can be used within Kub
* [nvidia-driver-installer](https://github.com/GoogleCloudPlatform/container-engine-accelerators/tree/master/nvidia-driver-installer/minikube)
* [nvidia-gpu-device-plugin](https://github.com/GoogleCloudPlatform/container-engine-accelerators/tree/master/cmd/nvidia_gpu)
* [logviewer](https://github.com/ivans3/minikube-log-viewer)
* [gvisor](../deploy/addons/gvisor/README.md)
* [storage-provisioner-gluster](../deploy/addons/storage-provisioner-gluster/README.md)
* [helm-tiller](../deploy/addons/helm-tiller/README.md)
* [ingress-dns](../deploy/addons/ingress-dns/README.md)
* [gvisor](../../../gvisor/readme/)
* [storage-provisioner-gluster](../../../storage-provisioner-gluster/readme)
* [helm-tiller](../../../helm-tiller/readme)
* [ingress-dns](../../../ingress-dns/readme)

## Listing available addons

Expand Down

0 comments on commit bd3956b

Please sign in to comment.