Skip to content

Commit 1b518e1

Browse files
committed
Add all_graphs table based on MANIFEST
1 parent 7583434 commit 1b518e1

File tree

6 files changed

+16760
-5
lines changed

6 files changed

+16760
-5
lines changed

docs/MANIFEST.yaml

+8,351
Large diffs are not rendered by default.

docs/_config.yml

+8,352-1
Large diffs are not rendered by default.

docs/_includes/manifest_table.html

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<table class="table">
2+
<tbody>
3+
<tr>
4+
<th>ID</th>
5+
<th>Title</th>
6+
<th>Description</th>
7+
<th>Version</th>
8+
</tr>
9+
{% for product in site.manifest %}
10+
<tr>
11+
<td>
12+
<a href= {{ product.id }} > {{ product.id }} </a>
13+
</td>
14+
<td>
15+
{{ product.title }}
16+
</td>
17+
<td>
18+
{{ product.description }}
19+
</td>
20+
<td>
21+
{{ product.version }}
22+
</td>
23+
</tr>
24+
{% endfor %}
25+
</tbody>
26+
</table>

docs/all_graphs.html

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
layout: page
3+
title: All Graphs
4+
permalink: /all_graphs/
5+
---
6+
<div class="content">
7+
<div class="col-md-12">
8+
<h3>All Graphs on KG-Hub</h3>
9+
10+
<li><a href="https://kg-hub.berkeleybop.io/MANIFEST.yaml">See the list of all graphs</a></li>
11+
<li><a href="https://kg-hub.berkeleybop.io/">Browse all files on KG-Hub</a></li>
12+
<br>
13+
14+
<p>The table below lists all graphs on KG-Hub, including both full KGs and intermediate products.</p>
15+
</div>
16+
17+
<div class="col-md-12">
18+
<div class="row">
19+
<div class="col-md-12">
20+
{% include manifest_table.html %}
21+
</div>
22+
</div>
23+
</div>
24+
</div>

docs/build_site.sh

+6-3
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,13 @@ JEKYLL_CONFIG_HEADER_FILE="_config_header.yml"
66
JEKYLL_CONFIG_FILE="_config.yml"
77
PROJECT_FILE="../utils/projects.yaml"
88
MANIFEST_URL="https://kg-hub.berkeleybop.io/MANIFEST.yaml"
9+
MANIFEST_FILE="MANIFEST.yaml"
910

10-
# Retrieve most recent MANIFEST
11+
# Retrieve most recent MANIFEST and do some format prep
1112
wget -N $MANIFEST_URL
13+
sed -i -e 's/^/ /' $MANIFEST_FILE
14+
sed -i '1s/^/manifest:\n /' $MANIFEST_FILE
1215

1316
# Append projects list
14-
echo "Adding project list to Jekyll config."
15-
cat $JEKYLL_CONFIG_HEADER_FILE $PROJECT_FILE > $JEKYLL_CONFIG_FILE
17+
echo "Adding all lists to Jekyll config."
18+
cat $JEKYLL_CONFIG_HEADER_FILE $PROJECT_FILE $MANIFEST_FILE > $JEKYLL_CONFIG_FILE

utils/projects.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ projects:
2626
- id: kg-ontoml
2727
description: "Graph representation of Monarch ontologies."
2828
url: "https://kg-hub.berkeleybop.io/kg-ontoml/"
29-
repository: "https://github.com/Knowledge-Graph-Hub/kg-ontoml"
29+
repository: "https://github.com/Knowledge-Graph-Hub/kg-ontoml"

0 commit comments

Comments
 (0)