Skip to content

Commit

Permalink
add some redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
gtfierro committed Jul 9, 2024
1 parent 89900c0 commit 9cd6c6c
Show file tree
Hide file tree
Showing 13 changed files with 66 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
build-site:
bash scripts/prepare-schemata.sh
#bash scripts/prepare-schemata.sh
bash scripts/redirects.sh
4 changes: 4 additions & 0 deletions content/schema/1.0.2/Brick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<html>
<meta http-equiv="content-type" content="text/turtle; charset=UTF-8">
<meta http-equiv="refresh" content="0; url=../../static/schema/1.0.2/Brick.ttl">
</html>
4 changes: 4 additions & 0 deletions content/schema/1.0.3/Brick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<html>
<meta http-equiv="content-type" content="text/turtle; charset=UTF-8">
<meta http-equiv="refresh" content="0; url=../../static/schema/1.0.3/Brick.ttl">
</html>
4 changes: 4 additions & 0 deletions content/schema/1.1.1/Brick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<html>
<meta http-equiv="content-type" content="text/turtle; charset=UTF-8">
<meta http-equiv="refresh" content="0; url=../../static/schema/1.1.1/Brick.ttl">
</html>
4 changes: 4 additions & 0 deletions content/schema/1.1/Brick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<html>
<meta http-equiv="content-type" content="text/turtle; charset=UTF-8">
<meta http-equiv="refresh" content="0; url=../../static/schema/1.1/Brick.ttl">
</html>
4 changes: 4 additions & 0 deletions content/schema/1.2.0/Brick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<html>
<meta http-equiv="content-type" content="text/turtle; charset=UTF-8">
<meta http-equiv="refresh" content="0; url=../../static/schema/1.2.0/Brick.ttl">
</html>
4 changes: 4 additions & 0 deletions content/schema/1.2.1/Brick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<html>
<meta http-equiv="content-type" content="text/turtle; charset=UTF-8">
<meta http-equiv="refresh" content="0; url=../../static/schema/1.2.1/Brick.ttl">
</html>
4 changes: 4 additions & 0 deletions content/schema/1.2/Brick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<html>
<meta http-equiv="content-type" content="text/turtle; charset=UTF-8">
<meta http-equiv="refresh" content="0; url=../../static/schema/1.2/Brick.ttl">
</html>
4 changes: 4 additions & 0 deletions content/schema/1.3.0/Brick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<html>
<meta http-equiv="content-type" content="text/turtle; charset=UTF-8">
<meta http-equiv="refresh" content="0; url=../../static/schema/1.3.0/Brick.ttl">
</html>
4 changes: 4 additions & 0 deletions content/schema/1.3/Brick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<html>
<meta http-equiv="content-type" content="text/turtle; charset=UTF-8">
<meta http-equiv="refresh" content="0; url=../../static/schema/1.3/Brick.ttl">
</html>
4 changes: 4 additions & 0 deletions content/schema/1.4.0/Brick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<html>
<meta http-equiv="content-type" content="text/turtle; charset=UTF-8">
<meta http-equiv="refresh" content="0; url=../../static/schema/1.4.0/Brick.ttl">
</html>
4 changes: 4 additions & 0 deletions content/schema/1.4/Brick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<html>
<meta http-equiv="content-type" content="text/turtle; charset=UTF-8">
<meta http-equiv="refresh" content="0; url=../../static/schema/1.4/Brick.ttl">
</html>
20 changes: 20 additions & 0 deletions scripts/redirects.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

mkdir -p content/static/schema

# for each .ttl file in static/schema/<version>/Brick.ttl, create a
# blank .md file in content/static/schema/<version>/Brick.md

for file in static/schema/*/Brick.ttl; do
version=$(dirname $file | xargs basename)
echo "Creating content/schema/$version/Brick.md"
mkdir -p content/schema/$version
# create an alias for the .ttl file
cat <<EOF > content/schema/$version/Brick.md
<html>
<meta http-equiv="content-type" content="text/turtle; charset=UTF-8">
<meta http-equiv="refresh" content="0; url=../../$file">
</html>
EOF

done

0 comments on commit 9cd6c6c

Please sign in to comment.