Skip to content

Commit

Permalink
Use relative links for docs pages
Browse files Browse the repository at this point in the history
  • Loading branch information
lfdebrux committed Nov 1, 2022
1 parent 7c96a9b commit 0ea1609
Show file tree
Hide file tree
Showing 13 changed files with 69 additions and 69 deletions.
2 changes: 1 addition & 1 deletion docs/v12/documentation/install/install-the-kit.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ caption: Installation guide for new users

## Download the kit as a zip

The simplest way to get the kit is to <a href="/docs/download" data-link="download">download it as a zip</a>.
The simplest way to get the kit is to <a href="./download" data-link="download">download it as a zip</a>.

You'll use a new copy of the kit for each new prototype you make. That way your prototypes don’t interfere with each other.

Expand Down
2 changes: 1 addition & 1 deletion docs/v12/views/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
items: [
{
text: "GOV.UK Prototype Kit",
href: "/docs"
href: "./"
}
]
}) }}
Expand Down
2 changes: 1 addition & 1 deletion docs/v12/views/cookies.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
items: [
{
text: "GOV.UK Prototype Kit",
href: "/docs"
href: "./"
}
]
}) }}
Expand Down
4 changes: 2 additions & 2 deletions docs/v12/views/documentation_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
items: [
{
text: "GOV.UK Prototype Kit",
href: "/docs"
href: "./"
},
{
text: "Tutorials and templates",
href: "/docs/tutorials-and-examples"
href: "./tutorials-and-examples"
}
]
}) }}
Expand Down
2 changes: 1 addition & 1 deletion docs/v12/views/examples/pass-data/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ <h1 class="govuk-heading-xl">
</p>

<p>
<a href="/docs/examples/pass-data/vehicle-registration">An example of what passing data looks like in a prototype.</a>
<a href="./examples/pass-data/vehicle-registration">An example of what passing data looks like in a prototype.</a>
</p>

<h2 class="govuk-heading-m">How to use</h2>
Expand Down
8 changes: 4 additions & 4 deletions docs/v12/views/examples/pass-data/vehicle-check-answers.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h2 class="govuk-heading-m">
{{ data['vehicle-registration'] }}
</dd>
<dd class="govuk-summary-list__actions">
<a class="govuk-link" href="/docs/examples/pass-data/vehicle-registration">
<a class="govuk-link" href="./examples/pass-data/vehicle-registration">
Change <span class="govuk-visually-hidden">registration number</span>
</a>
</dd>
Expand All @@ -38,7 +38,7 @@ <h2 class="govuk-heading-m">
{{ data['vehicle-type'] }}
</dd>
<dd class="govuk-summary-list__actions">
<a class="govuk-link" href="/docs/examples/pass-data/vehicle-type">
<a class="govuk-link" href="./examples/pass-data/vehicle-type">
Change <span class="govuk-visually-hidden">vehicle type</span>
</a>
</dd>
Expand All @@ -57,15 +57,15 @@ <h2 class="govuk-heading-m">
</ul>
</dd>
<dd class="govuk-summary-list__actions">
<a class="govuk-link" href="/docs/examples/pass-data/vehicle-features">
<a class="govuk-link" href="./examples/pass-data/vehicle-features">
Change <span class="govuk-visually-hidden">vehicle features</span>
</a>
</dd>
</div>
</dl>

<p>
<a href="/docs/tutorials-and-examples">
<a href="./tutorials-and-examples">
Return to tutorials and templates
</a>
</p>
Expand Down
4 changes: 2 additions & 2 deletions docs/v12/views/includes/breadcrumb_examples.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<div class="govuk-breadcrumbs">
<ol class="govuk-breadcrumbs__list">
<li class="govuk-breadcrumbs__list-item">
<a class="govuk-breadcrumbs__link" href="/docs">GOV.UK Prototype Kit</a>
<a class="govuk-breadcrumbs__link" href="./">GOV.UK Prototype Kit</a>
</li>
<li class="govuk-breadcrumbs__list-item">
<a class="govuk-breadcrumbs__link" href="/docs/tutorials-and-examples">Tutorials and templates</a>
<a class="govuk-breadcrumbs__link" href="./tutorials-and-examples">Tutorials and templates</a>
</li>
</ol>
</div>
6 changes: 3 additions & 3 deletions docs/v12/views/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,23 @@ <h1 class="govuk-heading-xl">GOV.UK Prototype Kit</h1>
<div class="govuk-grid-row">
<div class="govuk-grid-column-one-third govuk-!-margin-top-6">

<h2 class="govuk-heading-m"><a href="/docs/install" data-hinstall="Install">Install</a></h2>
<h2 class="govuk-heading-m"><a href="./install" data-hinstall="Install">Install</a></h2>
<p>
Download and installation instructions.
</p>

</div>
<div class="govuk-grid-column-one-third govuk-!-margin-top-6">

<h2 class="govuk-heading-m"><a href="/docs/tutorials-and-examples" data-htutorials="Tutorials and templates">Tutorials and templates</a></h2>
<h2 class="govuk-heading-m"><a href="./tutorials-and-examples" data-htutorials="Tutorials and templates">Tutorials and templates</a></h2>
<p>
Tutorials, examples and templates.
</p>

</div>
<div class="govuk-grid-column-one-third govuk-!-margin-top-6">

<h2 class="govuk-heading-m"><a href="/docs/about" data-habout="About">About</a></h2>
<h2 class="govuk-heading-m"><a href="./about" data-habout="About">About</a></h2>
<p>
Get support, Prototype Kit principles, privacy.
</p>
Expand Down
10 changes: 5 additions & 5 deletions docs/v12/views/install.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
items: [
{
text: "GOV.UK Prototype Kit",
href: "/docs"
href: "./"
}
]
}) }}
Expand All @@ -28,15 +28,15 @@ <h1 class="govuk-heading-xl">Install the Prototype Kit</h1>

<h2 class="govuk-heading-m">1. Download the kit</h2>
<p>
<a href="/docs/download" data-link="download">Download the Prototype Kit (zip file)</a>
<a href="./download" data-link="download">Download the Prototype Kit (zip file)</a>
</p>
<h2 class="govuk-heading-m">2. Install the kit</h2>

<p>Choose from:</p>
<ul class="govuk-list govuk-list--bullet">
<li><a href="/docs/install/introduction">guide for new users</a> covers Node.js, Git and the terminal</li>
<li><a href="/docs/install/developer-install-instructions">guide for advanced users</a> familiar with Node.js, Git and the terminal</li>
<li><a href="/docs/updating-the-kit">update your Prototype Kit</a> if you've installed an earlier version</li>
<li><a href="./install/introduction">guide for new users</a> covers Node.js, Git and the terminal</li>
<li><a href="./install/developer-install-instructions">guide for advanced users</a> familiar with Node.js, Git and the terminal</li>
<li><a href="./updating-the-kit">update your Prototype Kit</a> if you've installed an earlier version</li>
</ul>

</div>
Expand Down
4 changes: 2 additions & 2 deletions docs/v12/views/install_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
items: [
{
text: "GOV.UK Prototype Kit",
href: "/docs"
href: "./"
},
{
text: "Install",
href: "/docs/install"
href: "./install"
}
]
}) }}
Expand Down
12 changes: 6 additions & 6 deletions docs/v12/views/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,21 @@
serviceUrl: "/",
navigation: [
{
href: "/docs/install",
href: "./install",
text: "Install",
attributes: {
"data-install": "Install"
}
},
{
href: "/docs/tutorials-and-examples",
href: "./tutorials-and-examples",
text: "Tutorials and templates",
attributes: {
"data-tutorials": "Tutorials and templates"
}
},
{
href: "/docs/about",
href: "./about",
text: "About",
attributes: {
"data-about": "About"
Expand All @@ -68,15 +68,15 @@
meta: {
items: [
{
href: "/docs/accessibility",
href: "./accessibility",
text: "Accessibility"
},
{
href: "/docs/cookies",
href: "./cookies",
text: "Cookies"
},
{
href: "/docs/privacy-notice",
href: "./privacy-notice",
text: "Privacy notice"
}
]
Expand Down
2 changes: 1 addition & 1 deletion docs/v12/views/privacy-notice.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
items: [
{
text: "GOV.UK Prototype Kit",
href: "/docs"
href: "./"
}
]
}) }}
Expand Down
Loading

0 comments on commit 0ea1609

Please sign in to comment.