generated from NHSDigital/nhs-notify-repository-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from NHSDigital/rossbugginsnhs/test-sonar
Rossbugginsnhs/test sonar
- Loading branch information
Showing
25 changed files
with
514 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -119,6 +119,7 @@ just_the_docs: | |
theme: just-the-docs | ||
plugins: | ||
- jekyll-feed | ||
- jemoji | ||
|
||
color_scheme: nhs | ||
mermaid: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<button type="button" name="fullScreenButton" id="fullScreenButton" class="btn" onclick="fullScreenToggle()"> | ||
Full Screen View | ||
</button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<script src="{{ '/assets/js/nhs-notify.js' | relative_url }}"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,58 @@ | ||
{% if page.is_not_draft %}{% else %} {% assign is_draft = true %} {% endif %} {% | ||
assign wordWarning = 200 %} {% assign wordCount = content | number_of_words%} {% | ||
assign readTime = wordCount | divided_by: 100.0 | ceil %} {% if page.sub_title | ||
%} | ||
<h1>{{ page.title }}</h1> | ||
<p class="text-medium text-grey-dk-300 mb-0">{{ page.summary }}</p> | ||
{% else %} | ||
<h1>{{ page.title }}</h1> | ||
{% endif %} | ||
assign wordWarning = 200 %} {% assign wordCount = content | number_of_words%} {% | ||
assign readTime = wordCount | divided_by: 100.0 | ceil %} {% if page.sub_title | ||
%} | ||
<h1>{{ page.title }}</h1> | ||
<p class="text-medium text-grey-dk-300 mb-0">{{ page.summary }}</p> | ||
{% else %} | ||
<h1>{{ page.title }}</h1> | ||
{% endif %} | ||
|
||
<div class="page-info"> | ||
<p class="text-small text-grey-dk-300 mb-0"> | ||
{% if page.last_modified_date %} {{ page.last_modified_date | date: | ||
"%Y-%m-%d"}} | {% else %} 2022-07-01 | {% endif %} 📑 {{ wordCount }} words | ||
| ⏱ {{readTime}} mins {% if site.gh_edit_link and site.gh_edit_link_text and | ||
site.gh_edit_repository and site.gh_edit_branch and site.gh_edit_view_mode | ||
%} | | ||
<a | ||
href="{{ site.gh_edit_repository }}/commits/{{ site.gh_edit_branch }}{% if site.gh_edit_source %}/{{ site.gh_edit_source }}{% endif %}/{{ page.path }}" | ||
id="edit-this-page" | ||
>🧾 History</a | ||
> | ||
<div class="page-info"> | ||
<p class="text-small text-grey-dk-300 mb-0"> | ||
{% if page.last_modified_date %} {{ page.last_modified_date | date: | ||
"%Y-%m-%d"}} | {% else %} 2022-07-01 | {% endif %} 📑 {{ wordCount }} words | ||
| ⏱ {{readTime}} mins {% if site.gh_edit_link and site.gh_edit_link_text and | ||
site.gh_edit_repository and site.gh_edit_branch and site.gh_edit_view_mode | ||
%} | | ||
<a | ||
href="{{ site.gh_edit_repository }}/commits/{{ site.gh_edit_branch }}{% if site.gh_edit_source %}/{{ site.gh_edit_source }}{% endif %}/{{ page.path }}" | ||
id="edit-this-page" | ||
>🧾 History</a | ||
> | ||
|
||
{% endif %} | {% if page.author %} ✍ {{page.author}} {% else %} ✍ Ross | ||
Buggins {% endif %} | {% if page.owner %} 🔑 {{page.owner}} {% else %} 🔑 | ||
Ross Buggins {% endif %} | ||
</p> | ||
{% endif %} | {% if page.author %} ✍ {{page.author}} {% else %} ✍ Ross | ||
Buggins {% endif %} | {% if page.owner %} 🔑 {{page.owner}} {% else %} 🔑 | ||
Ross Buggins {% endif %} | ||
|
||
<p class="text-small text-grey-dk-300 mb-0"> | ||
{% for tag in page.tags %}<a class="text-small" href="/tags/{{tag}}.html" | ||
>{{tag}}</a | ||
>,{% endfor %} | ||
</p> | ||
<p class="text-small text-grey-dk-300 mb-0"> | ||
{% for tag in page.tags %}<a class="text-small" href="/tags/{{tag}}.html" | ||
>{{tag}}</a | ||
>,{% endfor %} | ||
</p> | ||
|
||
{% if wordCount < wordWarning %} | ||
<p class="text-small text-grey-dk-300 mb-0"> | ||
🚧 This page has less that {{wordWarning}} words. So it looks like this page | ||
is still under construction. | ||
</p> | ||
{% endif %} {% if page.description %} | ||
<p class="text-grey-dk-300 mb-0"><i>{{page.description}}</i></p> | ||
{% endif %} {% if page.todo or is_draft %} | ||
<p class="text-small text-grey-dk-300 mb-0"><b>Known Issues / Todo</b></p> | ||
{% if wordCount < wordWarning %} | ||
<p class="text-small text-grey-dk-300 mb-0"> | ||
🚧 This page has less that {{wordWarning}} words. So it looks like this page | ||
is still under construction. | ||
</p> | ||
{% endif %} {% if page.description %} | ||
<p class="text-grey-dk-300 mb-0"><i>{{page.description}}</i></p> | ||
{% endif %} {% if page.todo or is_draft %} | ||
<p class="text-small text-grey-dk-300 mb-0"><b>Known Issues / Todo</b></p> | ||
|
||
<ul> | ||
{% if page.is_not_draft %}{% else %} | ||
<li class="text-small text-grey-dk-300 mb-0"> | ||
⛅ <b>This page is draft</b> and is subject to rapid change, and may not | ||
be fully accurate or complete | ||
</li> | ||
{% endif %} {% for todo in page.todo %} | ||
<li class="text-small text-grey-dk-300 mb-0">{{todo}}</li> | ||
{% endfor %} | ||
</ul> | ||
{% endif %} | ||
</div> | ||
<ul> | ||
{% if page.is_not_draft %}{% else %} | ||
<li class="text-small text-grey-dk-300 mb-0"> | ||
⛅ <b>This page is draft</b> and is subject to rapid change, and may not | ||
be fully accurate or complete | ||
</li> | ||
{% endif %} {% for todo in page.todo %} | ||
<li class="text-small text-grey-dk-300 mb-0">{{todo}}</li> | ||
{% endfor %} | ||
</ul> | ||
{% endif %} | ||
</div> | ||
{% include fullscreen.html %} | ||
</p> | ||
<div></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
Oops, something went wrong.