Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
doks-test
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Antoine-perso
doks-test
Commits
d53b95bd
Commit
d53b95bd
authored
1 year ago
by
Antoine Roy
Browse files
Options
Downloads
Plain Diff
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
1 year ago
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+28
-12
28 additions, 12 deletions
.gitlab-ci.yml
config/_default/hugo.toml
+84
-61
84 additions, 61 deletions
config/_default/hugo.toml
with
112 additions
and
73 deletions
.gitlab-ci.yml
+
28
−
12
View file @
d53b95bd
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
This diff is collapsed.
Click to expand it.
config/_default/hugo.toml
+
84
−
61
View file @
d53b95bd
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
#
A
dd output format for section sitemap.xml
#
a
dd 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
=
"
month
ly"
changefreq
=
"
week
ly"
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"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment