Skip to content
Snippets Groups Projects
Commit d53b95bd authored by Antoine Roy's avatar Antoine Roy
Browse files

Merge remote-tracking branch 'origin/main'

parents 09f04e96 addf134e
No related branches found
No related tags found
No related merge requests found
Pipeline #1564 passed
default: variables:
image: node:lts DART_SASS_VERSION: 1.64.1
cache: HUGO_VERSION: 0.115.4
paths: NODE_VERSION: 20.x
- node_modules/ GIT_DEPTH: 0
GIT_STRATEGY: clone
GIT_SUBMODULE_STRATEGY: recursive
TZ: America/Los_Angeles
image:
name: golang:1.20.6-bookworm
pages: pages:
script: script:
- export NODE_OPTIONS=--openssl-legacy-provider
# Install brotli # Install brotli
- apt-get update - apt-get update
- apt-get install -y brotli - apt-get install -y brotli
# Install Dart Sass # Install Dart Sass
- curl -LJO https://github.com/sass/dart-sass/releases/download/1.64.1/dart-sass-1.64.1-linux-x64.tar.gz - curl -LJO https://github.com/sass/dart-sass/releases/download/${DART_SASS_VERSION}/dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz
- tar -xf dart-sass-1.64.1-linux-x64.tar.gz - tar -xf dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz
- cp -r dart-sass/ /usr/local/bin - cp -r dart-sass/ /usr/local/bin
- rm -rf dart-sass* - rm -rf dart-sass*
- export PATH=/usr/local/bin/dart-sass:$PATH - export PATH=/usr/local/bin/dart-sass:$PATH
- npm ci # Install Hugo
#- npm test - curl -LJO https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb
- npm run build - apt-get install -y ./hugo_extended_${HUGO_VERSION}_linux-amd64.deb
- rm hugo_extended_${HUGO_VERSION}_linux-amd64.deb
# Install Node.js
- curl -fsSL https://deb.nodesource.com/setup_${NODE_VERSION} | bash -
- apt-get install -y nodejs
# Install Node.js dependencies
- "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
# Build
- hugo --gc --minify
# Compress
- find public -type f -regex '.*\.\(css\|html\|js\|txt\|xml\)$' -exec gzip -f -k {} \;
- find public -type f -regex '.*\.\(css\|html\|js\|txt\|xml\)$' -exec brotli -f -k {} \;
artifacts: artifacts:
paths: paths:
- public - public
title = "Tetras Doks" baseurl = "https://epogrebnyak.gitlab.io/doks-howto"
baseurl = "http://doks-test-antoine-perso-99736c269ce0ed108f0bd1283c834482b315ddd.pages.tetras-libre.fr/"
canonifyURLs = true
disableAliases = true disableAliases = true
disableHugoGeneratorInject = true disableHugoGeneratorInject = true
# disableKinds = ["taxonomy", "term"]
enableEmoji = true enableEmoji = true
enableGitInfo = false enableGitInfo = false
enableRobotsTXT = true enableRobotsTXT = true
languageCode = "fr-FR " #languageCode = "en-US"
paginate = 10 paginate = 7
rssLimit = 10 rssLimit = 10
summarylength = 20 # 70 (default)
# Multilingual
defaultContentLanguage = "en" defaultContentLanguage = "en"
disableLanguages = ["de", "nl"]
defaultContentLanguageInSubdir = false
copyRight = "Copyright (c) 2023 Hyas" [languages]
[languages.ru]
## Homepage
title = "Это суперсайт"
titleSeparator = "-"
titleAddition = "Modern Documentation Theme"
description = "Doks is a Hugo theme helping you build modern documentation websites that are secure, fast, and SEO-ready — by default."
weight = 2
[languages.en]
## Homepage
title = "Doks in Several Languages"
titleSeparator = "-"
titleAddition = "Modern Documentation Theme"
description = "Doks is a Hugo theme helping you build modern documentation websites that are secure, fast, and SEO-ready — by default."
weight = 1
[build.buildStats]
enable = true
[social]
twitter = "getdoks"
# add redirects/headers
[outputs] [outputs]
home = ["HTML", "RSS", "searchIndex"] home = ["HTML", "RSS", "REDIRECTS", "HEADERS"]
section = ["HTML", "RSS", "SITEMAP"] section = ["HTML", "RSS", "SITEMAP"]
[outputFormats.searchIndex] # remove .{ext} from text/netlify
mediaType = "application/json" [mediaTypes."text/netlify"]
baseName = "search-index" suffixes = [""]
delimiter = ""
# add output format for netlify _redirects
[outputFormats.REDIRECTS]
mediaType = "text/netlify"
baseName = "_redirects"
isPlainText = true
notAlternative = true
# add output format for netlify _headers
[outputFormats.HEADERS]
mediaType = "text/netlify"
baseName = "_headers"
isPlainText = true isPlainText = true
notAlternative = true notAlternative = true
# Add output format for section sitemap.xml # add output format for section sitemap.xml
[outputFormats.SITEMAP] [outputFormats.SITEMAP]
mediaType = "application/xml" mediaType = "application/xml"
baseName = "sitemap" baseName = "sitemap"
...@@ -44,46 +60,53 @@ isPlainText = true ...@@ -44,46 +60,53 @@ isPlainText = true
noUgly = true noUgly = true
rel = "sitemap" rel = "sitemap"
[markup]
[markup.goldmark]
[markup.goldmark.extensions]
linkify = false
[markup.goldmark.renderer]
unsafe = true
[markup.highlight]
codeFences = true
guessSyntax = false
hl_Lines = ""
lineNoStart = 1
lineNos = false
lineNumbersInTable = true
noClasses = false
style = "dracula"
tabWidth = 4
[sitemap] [sitemap]
changefreq = "monthly" changefreq = "weekly"
filename = "sitemap.xml" filename = "sitemap.xml"
priority = 0.5 priority = 0.5
[caches]
[caches.getjson]
dir = ":cacheDir/:project"
maxAge = "30m"
[taxonomies] [taxonomies]
contributor = "contributors" contributor = "contributors"
category = "categories"
tag = "tags"
[permalinks] [permalinks]
blog = "/blog/:slug/" blog = "/blog/:title/"
docs = "/docs/:sections[1:]/:slug/"
# docs = "/docs/1.0/:sections[1:]/:slug/"
[minify.tdewolff.html]
keepWhitespace = false
[related]
threshold = 80
includeNewer = true
toLower = false
[[related.indices]]
name = "categories"
weight = 100
[[related.indices]]
name = "tags"
weight = 80
[[related.indices]]
name = "date"
weight = 10
[imaging] [module]
anchor = "Smart" [[module.mounts]]
bgColor = "#ffffff" source = "assets"
hint = "photo" target = "assets"
quality = 75 [[module.mounts]]
resampleFilter = "Box" source = "static"
target = "static"
[[module.mounts]]
source = "node_modules/lazysizes"
target = "assets/js/vendor/lazysizes"
[[module.mounts]]
source = "node_modules/instant.page"
target = "assets/js/vendor/instant.page"
[[module.mounts]]
source = "node_modules/lazysizes"
target = "assets/js/vendor/lazysizes"
[[module.mounts]]
source = "node_modules/flexsearch"
target = "assets/js/vendor/flexsearch"
[[module.mounts]]
source = "node_modules/clipboard"
target = "assets/js/vendor/clipboard"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment