Skip to content

Commit

Permalink
Repositories as a collection
Browse files Browse the repository at this point in the history
  • Loading branch information
RossBugginsNHS committed May 23, 2024
1 parent 4756099 commit 686cba6
Show file tree
Hide file tree
Showing 7 changed files with 77 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/_collections/_notify-repos/nhs-notify-dns.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
repo-name: nhs-notify-dns
owners: ["rossbugginsnhs"]
name: Notify Dns
description: Notify DNS infrastructure
layout: notify-repo
author: "Ross Buggins"
order: 2
---

# Something

Core repos.
13 changes: 13 additions & 0 deletions docs/_collections/_notify-repos/nhs-notify.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
repo-name: nhs-notify
owners: ["rossbugginsnhs"]
name: NHS Core Developer Home
description: The home for Notify Developers
layout: notify-repo
author: "Ross Buggins"
order: 1
---

# Something

Core repos.
7 changes: 7 additions & 0 deletions docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ description: >- # this means to ignore newlines until "baseurl:"
baseurl: "/nhs-notify" # the subpath of your site, e.g. /blog
url: "https://nhsdigital.github.io" # the base hostname & protocol for your site, e.g. http://example.com

collections_dir: _collections

collections:
notify-repos:
output: true
sort_by: order

# Build settings
theme: just-the-docs
plugins:
Expand Down
11 changes: 11 additions & 0 deletions docs/_includes/notify-repo-list.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<h2>Repository List</h2>

<ul>
{% for repo in site.notify-repos %}
<li>
<a href="https://www.github.com/NHSDigital/{{repo.repo-name}}">
{{ repo.name }} - {{ repo.description }}
</a>
</li>
{% endfor %}
</ul>
23 changes: 23 additions & 0 deletions docs/_layouts/notify-repo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
layout: default
---

<h1>{{page.name}} Repository</h1>

{{page.description}}

<h2>Authors</h2>

<ul>
{% for owner in page.owners %}
<li> <a href="http://github.com/{{owner}}">{{owner}}</a> </li>
{% endfor %}
</ul>

<p>{{ page.date }} - Written by {{ page.author }}</p>

<h2>Content</h2>

{{ content }}

{% include notify-repo-list.html %}
2 changes: 2 additions & 0 deletions docs/goals.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ nav_order: 5
has_children: true
---

## Development Goals

## Goals for ways of working

- A new developer should be able to start working and release code on day 1
Expand Down
8 changes: 8 additions & 0 deletions docs/notify-repos.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
layout: default
title: Repositories
nav_order: 6
has_children: false
---

{% include notify-repo-list.html %}

0 comments on commit 686cba6

Please sign in to comment.