Skip to content

Commit

Permalink
Fix markdown link check
Browse files Browse the repository at this point in the history
  • Loading branch information
YakDriver committed Sep 12, 2023
1 parent 79602f6 commit e6aef37
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 366 deletions.
12 changes: 2 additions & 10 deletions .ci/.markdownlinkcheck.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,11 @@
},
{
"pattern": "^(custom-service-endpoints|resource-tagging|version-2-upgrade|version-3-upgrade).html.markdown(#.*)?$",
"replacement": "file:///github/workspace/website/docs/guides/$1.html.md$2"
"replacement": "file:///github/workspace/website/docs/guides/$1.html.markdown$2"
},
{
"pattern": "^file:///github/workspace/website/docs/guides/(.*)\\.markdown(#.*)?$",
"replacement": "file:///github/workspace/website/docs/guides/$1.md$2"
},
{
"pattern": "^file:///github/workspace/website/docs/d/(cognito_user_pools)\\.html\\.markdown(#.*)?$",
"replacement": "file:///github/workspace/website/docs/d/$1.markdown$2"
},
{
"pattern": "^file:///github/workspace/website/docs/r/(cognito_identity_pool|iam_user_policy_attachment|network_interface|ram_principal_association|ram_resource_share|ram_resource_share_accepter)\\.html\\.markdown(#.*)?$",
"replacement": "file:///github/workspace/website/docs/r/$1.markdown$2"
"replacement": "file:///github/workspace/website/docs/guides/$1.markdown$2"
}
]
}
2 changes: 1 addition & 1 deletion .ci/scripts/markdown-link-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ docker run --rm -i -t \
-w /github/workspace \
--entrypoint /usr/bin/find \
"${link_check_container}" \
website \( -type f -name "*.md" -or -name "*.markdown" \) -exec /src/markdown-link-check --config .ci/.markdownlinkcheck.json --quiet --verbose {} \; \
website \( -type f -name "*.md" -or -name "*.markdown" \) -not -path "website/docs/cdktf/*" -exec /src/markdown-link-check --config .ci/.markdownlinkcheck.json --quiet --verbose {} \; \
| tee -a "${output_file}"

touch "${error_file}"
Expand Down
2 changes: 1 addition & 1 deletion internal/generate/customends/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type TemplateData struct {

func main() {
const (
filename = `../../../website/docs/guides/custom-service-endpoints.html.md`
filename = `../../../website/docs/guides/custom-service-endpoints.html.markdown`
namesDataFile = "../../../names/names_data.csv"
)
g := common.NewGenerator()
Expand Down
2 changes: 1 addition & 1 deletion website/docs/guides/custom-service-endpoints.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ provider "aws" {
<li><code>lakeformation</code></li>
<li><code>lambda</code></li>
<li><code>lexmodels</code> (or <code>lexmodelbuilding</code> or <code>lexmodelbuildingservice</code> or <code>lex</code>)</li>
<li><code>lexmodelsv2</code> (or <code>lexv2models</code>)</li>
<li><code>lexv2models</code> (or <code>lexmodelsv2</code>)</li>
<li><code>licensemanager</code></li>
<li><code>lightsail</code></li>
<li><code>location</code> (or <code>locationservice</code>)</li>
Expand Down
Loading

0 comments on commit e6aef37

Please sign in to comment.