Skip to content

Commit b6b8f75

Browse files
Merge pull request #182 from circleci/DOCSS-1854-html-proofer
set up htmlproofer and fix links
2 parents 531998d + b741a0f commit b6b8f75

File tree

19 files changed

+35
-28
lines changed

19 files changed

+35
-28
lines changed

.circleci/config.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,14 @@ jobs:
9595
command: |
9696
set -e
9797
echo "[INFO] Validating built site with HTML Proofer..."
98-
htmlproofer ./build --checks html --ignore-urls "/#.*/" --ignore-empty-alt
98+
# Handle path prefix and ignore search template placeholders
99+
htmlproofer ./build \
100+
--ignore-empty-alt \
101+
--checks 'Links,Images' \
102+
--disable-external \
103+
--swap-urls '^/docs/:/' \
104+
--ignore-files './build/api/v1/index.html,./build/api/v2/index.html' \
105+
--ignore-urls '[url],[path]'
99106
- notify_error:
100107
message: "Validation job failed for branch ${CIRCLE_BRANCH}"
101108

api-v1/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2169,8 +2169,8 @@ <h2 id='list-ordering'>List Ordering</h2>
21692169
<p>There are two API endpoints where the list order is significant:</p>
21702170

21712171
<ul>
2172-
<li><a href="https://circleci.com/docs/api/v1-reference/#recent-builds">Recent jobs across all projects</a></li>
2173-
<li><a href="https://circleci.com/docs/api/v1-reference/#recent-builds-project">Recent jobs for a single project</a></li>
2172+
<li><a href="#recent-jobs-across-all-projects">Recent jobs across all projects</a></li>
2173+
<li><a href="#recent-jobs-for-a-single-project">Recent jobs for a single project</a></li>
21742174
</ul>
21752175

21762176
<p>In both cases, jobs are returned in the order that they were created. For all other endpoints, the order has no special significance.</p>

docs/guides/modules/ROOT/partials/runner/terms.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Your role within your org is determined differently depending on how you integra
2020
* If your code is integrated with CircleCI via the GitHub App, GitLab, or Bitbucket Data Center, you can check roles by navigating to menu:Organization Settings[People]. Full details on roles and permissions are available in the xref:guides:permissions-authentication:roles-and-permissions-overview.adoc[Roles and permissions overview].
2121
2222
****
23-
To find out which GitHub integration you are using, head to the link:https://circleci.com/app[CircleCI web app], select your org, select **Organization Home** from the sidebar, and inspect the URL in your browser:
23+
To find out which GitHub integration you are using, head to the link:https://app.circleci.com[CircleCI web app], select your org, select **Organization Home** from the sidebar, and inspect the URL in your browser:
2424
2525
* This style of URL indicates you authenticated with the **GitHub App**: `https://app.circleci.com/organization/circleci/UTxCZDiJ9MLGLC8hR1ZDmg`
2626
* This style of URL indicates you authenticated with the **GitHub OAuth app**: `https://app.circleci.com/pipelines/github/<your GitHub username/organization name>`

docs/guides/modules/about-circleci/pages/introduction-to-the-circleci-web-app.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ In terms of network and storage, usage can be tricky to understand, so it is sug
261261

262262
image::guides:ROOT:web_ui_plan_network.png[Network usage]
263263

264-
You can learn more about billing in the billing section of the xref:server-admin:operator:faq.adoc#billing[FAQ] page.
264+
You can learn more about billing in the billing section of the xref:reference:ROOT:faq.adoc#billing[FAQ] page.
265265

266266
[#usage-controls]
267267
=== Usage controls

docs/guides/modules/deploy/pages/deploys-overview.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ Some points to consider when manually configuring an automatically detected depl
301301
* If you change a component name that was originally autodetected by CircleCI, we create a new component and the history **will not** carry over. If you do not update the component name, the history **will** carry over.
302302

303303
* If your environment integration has an autogenerated name, you can edit the name as follows:
304-
. In the link:https://circleci.com/app/home[CircleCI web app], select your organization.
304+
. In the link:https://app.circleci.com[CircleCI web app], select your organization.
305305
. Select **Deploys** in the sidebar.
306306
. Select the **Environments** tab.
307307
. Find your environment and select cog icon image:guides:ROOT:icons/settings.svg[settings icon, role="no-border"] to enter the environment integration settings page.

docs/guides/modules/execution-managed/pages/custom-images.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ The example uses Docker Hub, but you can use different registries if you prefer.
145145
[#preparing-the-image-for-the-registry]
146146
=== 8. Prepare the image for the registry
147147
148-
. Log in to Docker Hub with your account and create a new repository on the https://hub.docker.com/add/repository/[add repository] page.
148+
. Log in to Docker Hub with your account and create a new repository on the Repositories page.
149149
It is best practice to use a pattern similar to `<project-name>-<container-name>` for a repository name (for example, `cci-demo-docker-primary`).
150150
151151
. Next, rebuild your image using your account and repository name:
@@ -199,7 +199,7 @@ NOTE: This section assumes you have already used Docker login locally.
199199
200200
This section demonstrates how to build a Ruby container to use on CircleCI.
201201
202-
The example starts with the link:https://hub.docker.com/_/ruby/[Ruby 2.1] image. However, instead of using FROM `ruby:2.1` as the base image it describes how the container is built. From the Ruby Docker Hub page, go to the link:https://raw.githubusercontent.com/docker-library/ruby/e32433a12099d96dc5a1b28a011b73af4f17cfff/2.1/Dockerfile10[2.1/Dockerfile].
202+
The example starts with the link:https://hub.docker.com/_/ruby/[Ruby 2.1] image. However, instead of using FROM `ruby:2.1` as the base image it describes how the container is built. From the Ruby Docker Hub page, go to the 2.1/Dockerfile.
203203

204204
Notice the environment variables that are used to pull in the correct versions.
205205

docs/guides/modules/integration/pages/new-relic-integration.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The link:https://newrelic.com/instant-observability/circleci[New Relic CircleCI
1313

1414
Complete the following steps to set up a CircleCI webhook to forward your logs to New Relic. For more information, refer to the New Relic CircleCI link:https://docs.newrelic.com/docs/logs/forward-logs/circleci-logs/[installation docs].
1515

16-
. Log in to the link:https://app.circleci.com/projects)[CircleCI web app].
16+
. Log in to the link:https://app.circleci.com)[CircleCI web app].
1717

1818
. Access one of your CircleCI projects.
1919

@@ -27,7 +27,7 @@ Complete the following steps to set up a CircleCI webhook to forward your logs t
2727
** **Webhook name**: give your webhook an identifiable name, for example, `New Relic CI Visibility`
2828
** **Receiver URL**: Use New Relic's **Logs endpoint**. Use the region you set for your New Relic account.
2929
+
30-
Replace `YOUR_LICENSE_KEY` with your New Relic license key, which you can link:https://docs.newrelic.com/docs/apis/intro-apis/new-relic-api-keys/#manage-license-key)[retrieve from the UI or API].
30+
Replace `YOUR_LICENSE_KEY` with your New Relic license key, which you can link:https://docs.newrelic.com/docs/apis/intro-apis/new-relic-api-keys/#manage-license-key[retrieve from the UI or API].
3131
+
3232
**US**: `https://log-api.newrelic.com/log/v1?Api-Key=YOUR_LICENSE_KEY`
3333
+

docs/guides/modules/optimize/pages/artifacts.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ curl --silent --request GET --url https://circleci.com/api/v2/workflow/:workflow
181181
| wget --verbose --header "Circle-Token: $CIRCLE_TOKEN" --no-verbose --input-file -
182182
----
183183
184-
You can read more about using CircleCI's API to interact with artifacts in our link:../api/v1/index.html#artifacts[API reference guide].
184+
You can read more about using CircleCI's API to interact with artifacts in our link:../../api/v1/index.html#artifacts[API reference guide].
185185
186186
[cols="1,2", options="header"]
187187
|===

docs/guides/modules/optimize/pages/caching.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ During step execution, the templates above are replaced by runtime values and us
335335
| The number of seconds that have elapsed since 00:00:00 Coordinated Universal Time (UTC), also known as POSIX or UNIX epoch. This cache key is a good option if you need to ensure a new cache is always stored for each run.
336336
337337
| `{{ arch }}`
338-
| Captures OS and CPU (architecture, family, model) information. Useful when caching compiled binaries that depend on OS and CPU architecture, for example, `darwin-amd64-6_58` versus `linux-amd64-6_62`. See xref:server-admin:operator:faq.adoc#cpu-architecture-circleci-support[supported CPU architectures].
338+
| Captures OS and CPU (architecture, family, model) information. Useful when caching compiled binaries that depend on OS and CPU architecture, for example, `darwin-amd64-6_58` versus `linux-amd64-6_62`. See xref:reference:ROOT:faq.adoc#cpu-architecture-circleci-support[supported CPU architectures].
339339
|===
340340
341341
[#further-notes-on-using-keys-and-templates]
@@ -455,7 +455,7 @@ If your source code changes frequently, we recommend using fewer, more specific
455455
456456
Even with the narrowest `restore_cache` option (`source-v1-{{ .Branch }}-{{ .Revision }}`), source caching can be greatly beneficial, for example:
457457
458-
* Running repeated builds against the same git revision (for example, with link:../api/v1/index.html#trigger-a-new-build-by-project-preview[API-triggered builds])
458+
* Running repeated builds against the same git revision (for example, with link:../../api/v2/index.html#tag/Pipeline/operation/triggerPipelineRun[API-triggered builds])
459459
* When using workflows, where you might otherwise need to `checkout` the same repository once per workflow job.
460460
461461
However, it is worth comparing build times with and without source caching. `git clone` is often faster than `restore_cache`.

docs/guides/modules/optimize/pages/persist-data.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,9 @@ Network charges apply when an organization has runner network egress beyond the
154154

155155
Storage charges apply when you retain artifacts, workspaces, and caches beyond the included storage GB allotment.
156156

157-
You can find out how much network and storage usage is available on your plan by visiting the features section of the link:https://circleci.com/pricing/[Pricing] page. If you would like more details about credit usage, and how to calculate your potential network and storage costs, visit the billing section on the xref:server-admin:operator:faq.adoc#calculate-monthly-storage-and-network-costs[FAQ] page.
157+
You can find out how much network and storage usage is available on your plan by visiting the features section of the link:https://circleci.com/pricing/[Pricing] page. If you would like more details about credit usage, and how to calculate your potential network and storage costs, visit the billing section on the xref:reference:ROOT:faq.adoc#calculate-monthly-storage-and-network-costs[FAQ] page.
158158

159-
For questions on data usage for the IP ranges feature, visit the xref:server-admin:operator:faq.adoc#calculate-monthly-IP-ranges-costs[FAQ] page.
159+
For questions on data usage for the IP ranges feature, visit the xref:reference:ROOT:faq.adoc#calculate-monthly-IP-ranges-costs[FAQ] page.
160160

161161
[#reducing-excess-use-of-network-egress-and-storage]
162162
=== Reducing excess use of network egress and storage

0 commit comments

Comments
 (0)