Skip to content

Commit

Permalink
Updated themes
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbrightwell committed Sep 2, 2024
1 parent d0f9be3 commit 5c0e185
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 5 deletions.
32 changes: 32 additions & 0 deletions .render/_local/_includes/specs_by_theme_table.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<table style="text-align: center">
<thead>
<tr>
<th>Id</th>
<th>Name</th>
<th>Spec Status</th>
{% if include.show_releases %}
<th>Release(s)</th>
{% endif %}
</tr>
</thead>
<tbody>
{% assign specs_to_show = site.data.specs | where_exp:"spec", "spec.themes contains include.filter_theme" | where: "show_in_index", true %}
{% for spec in specs_to_show %}
<tr>
<td><a href="{{ spec.url }}">{{ spec.amwa_id }}</a></td>
<td><a href="{{ spec.url }}">{{ spec.name }}</a></td>
<td>{{ spec.status }}</td>
{% if include.show_releases %}
<td>
{% for release in spec.releases %}
<div>
<a href="{{ spec.url }}/{{ release }}">{{ release }}</a>
<a href="{{ spec.repo_url }}/releases/tag/{{ release }}"></a>
</div>
{% endfor %}
</td>
{% endif %}
</tr>
{% endfor %}
</tbody>
</table>
1 change: 1 addition & 0 deletions .render/_local/_includes/themes_table.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<div>
<!-- <a href="{{ spec.url }}/{{ member }}">{{ member }}</a> -->
{{ member }}
{{ site.data.specs[0].amwa_id }}
</div>
{% endfor %}
</td>
Expand Down
22 changes: 20 additions & 2 deletions themes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# NMOS Specifications by Theme

Dear Reader, this is an exercise for you!
The tables below are organised by theme. To see them organised by id, click [here](index.html)

{% include themes_table.html %}
### Resource Management

{% include specs_by_theme_table.html filter_theme="RESOURCE" show_releases=true %}

### Connection Management

{% include specs_by_theme_table.html filter_theme="CONNECTION" show_releases=true %}

### Device Configuration

{% include specs_by_theme_table.html filter_theme="CONFIGURATION" show_releases=true %}

### Device Control & Monitoring

{% include specs_by_theme_table.html filter_theme="CONTROL" show_releases=true %}

### Security

{% include specs_by_theme_table.html filter_theme="SECURITY" show_releases=true %}
10 changes: 7 additions & 3 deletions themes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- name: CONNECTION
description: Connection Management
members:
- IS-04
- IS-05
- IS-08
- BCP-006-01
Expand All @@ -32,11 +33,14 @@
- IS-14

- name: SECURITY
description: Security specifications
description: Security Recommendatations
members:
- IS-10
- BCP-003-01
- BCP-003-02
- BCP-003-02
- BCP-003-03


- name: OTHER
description: Others (testing)
members:
- IS-04

0 comments on commit 5c0e185

Please sign in to comment.