Skip to content

Commit 7ac3143

Browse files
authored
Surface available Dev Container Templates (#46)
* surface templates * Update templates.html * Update templates.html
1 parent 45a8cf0 commit 7ac3143

File tree

5 files changed

+49
-2
lines changed

5 files changed

+49
-2
lines changed

.devcontainer/fetch-index.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
pushd /tmp
4+
curl -LO https://github.com/oras-project/oras/releases/download/v0.13.0/oras_0.13.0_linux_amd64.tar.gz
5+
mkdir -p oras-install/
6+
tar -zxf oras_0.13.0_*.tar.gz -C oras-install/
7+
mv oras-install/oras /usr/local/bin/
8+
rm -rf oras_0.13.0_*.tar.gz oras-install/
9+
popd
10+
11+
cd /workspaces/devcontainers.github.io/_data
12+
oras pull ghcr.io/devcontainers/index:latest
13+
cp devcontainer-index.json ../static/

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,4 +228,4 @@ RUBY VERSION
228228
ruby 2.7.6p219
229229

230230
BUNDLED WITH
231-
2.3.20
231+
2.3.23

_data/collection-index.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@
2525
ociReference: ghcr.io/meaningful-ooo/devcontainer-features
2626
- name: Legacy Community Templates
2727
maintainer: Deprecated (No longer maintained)
28-
contact: Community member listed in README files
28+
contact: https://github.com/microsoft/vscode-dev-containers/issues/1589
2929
repository: https://github.com/microsoft/vscode-dev-containers
3030
ociReference: ghcr.io/microsoft/vscode-dev-containers

_includes/topnav.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ <h1>Development Containers</h1>
2626
<li {% if page.sectionid=='features' %} class="nav-item active" {% else %} class="nav-item" {% endif %}>
2727
<a class="nav-link" href='{{ "/features" | prepend: site.baseurl }}'>Available Features</a>
2828
</li>
29+
<li {% if page.sectionid=='features' %} class="nav-item active" {% else %} class="nav-item" {% endif %}>
30+
<a class="nav-link" href='{{ "/templates" | prepend: site.baseurl }}'>Available Templates</a>
31+
</li>
2932
<li {% if page.sectionid=='collections' %} class="nav-item active" {% else %} class="nav-item" {% endif %}>
3033
<a class="nav-link" href='{{ "/collections" | prepend: site.baseurl }}'>Collections</a>
3134
</li>

templates.html

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
title: Templates
3+
layout: table
4+
sectionid: collection-index-templates
5+
---
6+
7+
<h1 style="margin-left: auto;margin-right: auto;">Available Templates</h1>
8+
<p style="margin-left: auto;margin-right: auto;">
9+
This table contains all official and community-supported <a href="implementors/templates/">Dev Container Templates</a>
10+
known at the time of crawling <a href="collections">each registered collection</a>. This list is continuously
11+
updated with the latest available Template information.
12+
<br><br>
13+
Templates listed here will be presenting in the UX of <a href="supporting">supporting tools</a>.
14+
</p>
15+
16+
<p>
17+
</p>
18+
<tr>
19+
<td class="tg-0lax"><b>Template Name</b></b></td>
20+
<td class="tg-0lax"><b>Maintainer</b></td>
21+
</tr>
22+
23+
{% for c in site.data.devcontainer-index.collections %}
24+
{% for f in c.templates %}
25+
<tr>
26+
<td class="tg-0lax"><a rel="nofollow" href="{{ f.documentationURL | strip_html }}">{{ f.name | strip_html }}</a></td>
27+
<td class="tg-0lax">{{ c.sourceInformation.maintainer | strip_html }}</td>
28+
</tr>
29+
{% endfor %}
30+
31+
{% endfor %}

0 commit comments

Comments
 (0)