Cross references and links
This page covers how to create links and cross references in CircleCI docs.
Cross references
-
Make cross references (links between docs pages) by using the resource ID of the destination page and section, in the following form:
xref:guides:integration:github-integration.adoc#user-keys-and-deploy-keys[User Keys and Deploy Keys]See the Resource ID coordinates page in the Antora docs for more information.
-
Use title case for cross reference link text. Vale enforces this.
-
Good:
Schedule Triggers -
Bad:
schedule triggers
-
-
Cross references should explicitly name the document or section to which they are linking.
-
Good: Refer to the Setting an Environment Variable in a Project section of the Environment Variables document.
-
Bad: For more information on adding project-level environment variables head here.
-
-
Heading IDs are the lowercase, kebab-case form of the heading text, so
== Install CircleCI agent skillsbecomes#install-circleci-agent-skills. Do not use the AsciiDoc default underscore IDs, such as#_install_circleci_agent_skills. Add an explicit[#custom-id]only when the hash must differ from the generated one.
Links
-
Link text must describe the destination. Do not use "click here", "here", or "this".
-
Use title case for link text on CircleCI-owned URLs, including the API reference. Link text for third-party sites matches the name or title on that site.
-
Links to third party sites should be in the following form in AsciiDoc content:
link:https://circleci.com[CircleCI]