Skip to content
代码片段 群组 项目
未验证 提交 bd8589ce 编辑于 作者: Achilleas Pipinellis's avatar Achilleas Pipinellis 提交者: GitLab
浏览文件

Merge branch 'sarahgerman-docs-site-hugo-tests' into 'master'

No related branches found
No related tags found
无相关合并请求
......@@ -76,7 +76,7 @@ review-docs-hugo-cleanup:
.docs-markdown-lint-image:
# When updating the image version here, update it in /scripts/lint-doc.sh too.
image: ${REGISTRY_HOST}/${REGISTRY_GROUP}/gitlab-docs/lint-markdown:alpine-3.20-vale-3.9.3-markdownlint2-0.17.1-lychee-0.18.0
image: ${REGISTRY_HOST}/${REGISTRY_GROUP}/technical-writing/docs-gitlab-com/lint-markdown:alpine-3.21-vale-3.9.3-markdownlint2-0.17.1-lychee-0.18.0
docs-lint markdown:
extends:
......@@ -111,6 +111,28 @@ docs code_quality:
expire_in: 2 weeks
when: always
docs hugo_build:
image: hugomods/hugo:exts-0.142.0
extends:
- .default-retry
- .docs:rules:docs-lint
stage: lint
needs: []
dependencies: []
before_script:
- apk add --no-cache git make nodejs npm bash
- git clone --depth 1 --filter=tree:0 https://gitlab.com/gitlab-org/technical-writing/docs-gitlab-com.git
- cd docs-gitlab-com
- make add-latest-icons
# Copy the current project's docs to the appropriate location in the docs website
- cp -r ../doc/* content/
script:
# Test that Hugo will build
- hugo --gc --printPathWarnings --panicOnWarning
# Test for invalid index pages
# See https://gitlab.com/gitlab-org/technical-writing/docs-gitlab-com/-/blob/main/scripts/check-index-filenames.sh
- make check-index-pages SEARCH_DIR="../doc"
docs-lint links:
extends:
- .docs:rules:docs-lint
......
......@@ -87,7 +87,7 @@ For the change to appear in:
- `docs.gitlab.com`, the release manager only has to merge the MR to the stable branch,
and the technical writer needs to [deploy the backport changes](#deploy-the-backport-changes).
- `gitlab.com/help`, the change needs to be part of a GitLab release. The release
manager can include the change in the next release they create. This is an optional step.
manager can include the change in the next release they create. This step is optional.
### Deploy the backport changes
......
......@@ -188,7 +188,7 @@ function run_locally_or_in_container() {
local cmd=$1
local args=$2
local files=$3
local registry_url="registry.gitlab.com/gitlab-org/gitlab-docs/lint-markdown:alpine-3.20-vale-3.9.3-markdownlint2-0.17.1-lychee-0.18.0"
local registry_url="registry.gitlab.com/gitlab-org/technical-writing/docs-gitlab-com/lint-markdown:alpine-3.20-vale-3.9.3-markdownlint2-0.17.1-lychee-0.15.1"
if hash "${cmd}" 2>/dev/null
then
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册