Skip to content

Commit 686cba6

Browse files
Repositories as a collection
1 parent 4756099 commit 686cba6

File tree

7 files changed

+77
-0
lines changed

7 files changed

+77
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
repo-name: nhs-notify-dns
3+
owners: ["rossbugginsnhs"]
4+
name: Notify Dns
5+
description: Notify DNS infrastructure
6+
layout: notify-repo
7+
author: "Ross Buggins"
8+
order: 2
9+
---
10+
11+
# Something
12+
13+
Core repos.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
repo-name: nhs-notify
3+
owners: ["rossbugginsnhs"]
4+
name: NHS Core Developer Home
5+
description: The home for Notify Developers
6+
layout: notify-repo
7+
author: "Ross Buggins"
8+
order: 1
9+
---
10+
11+
# Something
12+
13+
Core repos.

docs/_config.yml

+7
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ description: >- # this means to ignore newlines until "baseurl:"
2525
baseurl: "/nhs-notify" # the subpath of your site, e.g. /blog
2626
url: "https://nhsdigital.github.io" # the base hostname & protocol for your site, e.g. http://example.com
2727

28+
collections_dir: _collections
29+
30+
collections:
31+
notify-repos:
32+
output: true
33+
sort_by: order
34+
2835
# Build settings
2936
theme: just-the-docs
3037
plugins:

docs/_includes/notify-repo-list.html

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<h2>Repository List</h2>
2+
3+
<ul>
4+
{% for repo in site.notify-repos %}
5+
<li>
6+
<a href="https://www.github.com/NHSDigital/{{repo.repo-name}}">
7+
{{ repo.name }} - {{ repo.description }}
8+
</a>
9+
</li>
10+
{% endfor %}
11+
</ul>

docs/_layouts/notify-repo.md

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
layout: default
3+
---
4+
5+
<h1>{{page.name}} Repository</h1>
6+
7+
{{page.description}}
8+
9+
<h2>Authors</h2>
10+
11+
<ul>
12+
{% for owner in page.owners %}
13+
<li> <a href="http://github.com/{{owner}}">{{owner}}</a> </li>
14+
{% endfor %}
15+
</ul>
16+
17+
<p>{{ page.date }} - Written by {{ page.author }}</p>
18+
19+
<h2>Content</h2>
20+
21+
{{ content }}
22+
23+
{% include notify-repo-list.html %}

docs/goals.md

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ nav_order: 5
55
has_children: true
66
---
77

8+
## Development Goals
9+
810
## Goals for ways of working
911

1012
- A new developer should be able to start working and release code on day 1

docs/notify-repos.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
layout: default
3+
title: Repositories
4+
nav_order: 6
5+
has_children: false
6+
---
7+
8+
{% include notify-repo-list.html %}

0 commit comments

Comments
 (0)