Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
415e0840
Commit
415e0840
authored
Mar 12, 2020
by
Evan Read
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'vale-update-config' into 'master'
Make vale use raw scope See merge request gitlab-org/gitlab!27044
parents
24250d31
bfde9707
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
doc/.linting/vale/styles/gitlab/RelativeLinks.yml
doc/.linting/vale/styles/gitlab/RelativeLinks.yml
+2
-3
scripts/lint-doc.sh
scripts/lint-doc.sh
+1
-1
No files found.
doc/.linting/vale/styles/gitlab/RelativeLinks.yml
View file @
415e0840
---
---
# Checks for the presence of absolute hyperlinks that should be relative.
# Checks for the presence of absolute hyperlinks that should be relative.
#
#
# Requires --ignore-syntax CLI flag to find matches.
#
# For a list of all options, see https://errata-ai.github.io/vale/styles/
# For a list of all options, see https://errata-ai.github.io/vale/styles/
extends
:
existence
extends
:
existence
message
:
URL '%s'
must be relative.
message
:
Link %s
must be relative.
link
:
https://docs.gitlab.com/ee/development/documentation/styleguide.html#links-to-internal-documentation
link
:
https://docs.gitlab.com/ee/development/documentation/styleguide.html#links-to-internal-documentation
level
:
error
level
:
error
scope
:
raw
raw
:
raw
:
-
'
\[.+\]\(https?:\/\/docs\.gitlab\.com\/ee.*\)'
-
'
\[.+\]\(https?:\/\/docs\.gitlab\.com\/ee.*\)'
scripts/lint-doc.sh
View file @
415e0840
...
@@ -80,7 +80,7 @@ echo '=> Linting markdown style...'
...
@@ -80,7 +80,7 @@ echo '=> Linting markdown style...'
run_locally_or_in_docker
'markdownlint'
"--config .markdownlint.json
${
MD_DOC_PATH
}
"
run_locally_or_in_docker
'markdownlint'
"--config .markdownlint.json
${
MD_DOC_PATH
}
"
echo
'=> Linting prose...'
echo
'=> Linting prose...'
run_locally_or_in_docker
'vale'
"--minAlertLevel error
--ignore-syntax
${
MD_DOC_PATH
}
"
run_locally_or_in_docker
'vale'
"--minAlertLevel error
${
MD_DOC_PATH
}
"
echo
"✔ Linting passed"
echo
"✔ Linting passed"
exit
0
exit
0
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment