Verified Commit 64b74b09 authored by Aral Balkan's avatar Aral Balkan
Browse files

Prepare for multilingual usage/internationalisation

parent 9336fc29
......@@ -5,8 +5,9 @@
#
baseURL = "/"
languageCode = "en-us"
# languageCode = "en-us"
DefaultContentLanguage = "en"
defaultContentLanguageInSubdir = "false"
title = "Indienet"
theme = "docdock"
......@@ -29,14 +30,23 @@ disableNavChevron = false # set true to hide next/prev chevron, default is false
[outputs]
home = [ "HTML", "RSS", "JSON"]
[[menu.shortcuts]]
#
# You may add other languages here.
#
[languages]
[languages.en]
weight = 1
languageName = "English"
[[languages.en.menu.shortcuts]]
pre = "<h3>More</h3>"
name = "<i class='fa fa-heart'></i> Indienet"
identifier = "indienet"
url = "https://source.ind.ie/indienet"
weight = 10
[[menu.shortcuts]]
[[languages.en.menu.shortcuts]]
name = "<i class='fa fa-git-square'></i> View source"
identifier = "ds"
url = "https://source.ind.ie/indienet/docs"
......
......@@ -41,3 +41,11 @@ git push deploy master
This will push to the deployment mirror repository on GitHub which will trigger [Netlify](https://gohugo.io/hosting-and-deployment/hosting-on-netlify/) to build it via Hugo and deploy it to [indienet.info](https://indienet.info).
See [netlify.toml](https://source.ind.ie/indienet/docs/blob/master/netlify.toml) for the deployment configuration.
## Multilanguage support
The docs are currently only in English.
This should change shortly as our team in Ghent joins the project.
Both Hugo and this theme support [multilingual development](https://gohugo.io/content-management/multilingual/). The configuration has been set up so that adding support for new languages is seamless and trivial. (Also see the docs for [multilingual development and internationalisation for the Learn Theme](https://learn.netlify.com/en/cont/i18n/) – the DocDock theme is forked from it.)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment