Unverified Commit 3be59bcc authored by Henk Verlinde's avatar Henk Verlinde Committed by GitHub
Browse files

Merge pull request #454 from h-enk/doks-multilingual

feat: add multilingual support
parents 1b995d66 a549526f
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -75,9 +75,11 @@ $navbar-dark-active-color: $link-color-dark;
  background: $body-overlay-dark;
}

/*
[data-dark-mode] body .dropdown-menu {
  @extend .dropdown-menu-dark;
}
*/

[data-dark-mode] body .navbar,
[data-dark-mode] body .doks-subnavbar {
@@ -468,6 +470,10 @@ $navbar-dark-active-color: $link-color-dark;
}
*/

[data-dark-mode] .dropdown-item {
  color: $body-bg-dark;
}

[data-dark-mode] body hr.text-black-50 {
  color: $gray-600 !important;
}
+9 −0
Original line number Diff line number Diff line
@@ -209,3 +209,12 @@ pre {
.offcanvas-header .btn-close {
  margin-right: 0 !important;
}

.dropdown-toggle::after {
  display: none;
}

.dropdown-caret {
  margin-left: -0.1875rem;
  margin-right: -0.3125rem;
}
+12 −0
Original line number Diff line number Diff line
@@ -431,3 +431,15 @@ button#doks-versions {
.navbar-light .navbar-nav .active .nav-link {
  color: $primary;
}

.dropdown-divider {
  border-top: 1px dashed $gray-200;
}

.dropdown-item:hover {
  background: $gray-100;
}

.dropdown-item:active {
  color: inherit;
}
+5 −23
Original line number Diff line number Diff line
@@ -9,6 +9,11 @@ languageCode = "en-US"
paginate = 7
rssLimit = 10

# Multilingual
defaultContentLanguage = "en"
disableLanguages = ["de", "nl"]
# defaultContentLanguageInSubdir = true

# add redirects/headers
[outputs]
home = ["HTML", "RSS", "REDIRECTS", "HEADERS"]
@@ -47,29 +52,6 @@ rel = "sitemap"
    dir = ":cacheDir/:project"
    maxAge = "10s"

[markup]
  [markup.goldmark]
    [markup.goldmark.extensions]
      linkify = false
    [markup.goldmark.parser]
      autoHeadingID = true
      autoHeadingIDType = "github"
      [markup.goldmark.parser.attribute]
        block = true
        title = true
    [markup.goldmark.renderer]
      unsafe = true
  [markup.highlight]
    codeFences = false
    guessSyntax = false
    hl_Lines = ""
    lineNoStart = 1
    lineNos = false
    lineNumbersInTable = true
    noClasses = false
    style = "dracula"
    tabWidth = 4

[sitemap]
  changefreq = "weekly"
  filename = "sitemap.xml"
+25 −0
Original line number Diff line number Diff line
[en]
  languageName = "English"
  contentDir = "content/en"
  weight = 10
  [en.params]
    languageISO = "EN"

[de]
  languageName = "German"
  contentDir = "content/de"
  weight = 15
  [de.params]
    languageISO = "DE"

[nl]
  languageName = "Nederlands"
  contentDir = "content/nl"
  weight = 20
  [nl.params]
    languageISO = "NL"
    titleAddition = "Modern documentatie-thema"
    description = "Doks is een Hugo-thema waarmee je moderne documentatie-websites kunt bouwen die veilig, snel en klaar voor SEO zijn — standaard."
    titleHome = "Doks thema"
    footer = "Mogelijk gemaakt door <a href=\"https://www.netlify.com/\">Netlify</a>, <a href=\"https://gohugo.io/\">Hugo</a>, en <a href=\"https://getdoks.org/\">Doks</a>"
    alertText = "Introductie van het Doks-kinderthema, verschillende DX + UX-updates en meer! <a class=\"alert-link stretched-link\" href=\"https://getdoks.org/blog/doks-v0.2/\">Bekijk Doks v0.2</a>"
Loading