Skip to content

Commit eb96c3c

Browse files
respencer-nclclaude
andcommitted
Add redirect site for riddl.tech to ossum.tech migration
Creates a simple static redirect site that forwards all riddl.tech traffic to ossum.tech/riddl. Replaces the Hugo documentation build with a minimal redirect deployment. Redirect pages created for: - / -> ossum.tech/riddl/ - /introduction/ -> ossum.tech/riddl/introduction/ - /concepts/ -> ossum.tech/riddl/concepts/ - /guides/ -> ossum.tech/riddl/guides/ - /tooling/ -> ossum.tech/riddl/tools/ - /tooling/riddlc/ -> ossum.tech/riddl/tools/riddlc/ - /tutorial/ -> ossum.tech/riddl/tutorials/ - /tutorial/rbbq/ -> ossum.tech/riddl/tutorials/rbbq/ The 404.html catches any unmapped paths and redirects to the main documentation page. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent c616c41 commit eb96c3c

10 files changed

Lines changed: 170 additions & 87 deletions

File tree

.github/workflows/hugo.yml

Lines changed: 15 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
# Sample workflow for building and deploying a Hugo site to GitHub Pages
2-
name: Deploy Documentation Site to Pages
1+
# Deploy redirect site to GitHub Pages
2+
# This workflow deploys a simple static site that redirects all traffic
3+
# to ossum.tech/riddl where the documentation now lives.
4+
name: Deploy Redirect Site to Pages
35

46
on:
57
# Allows you to run this workflow manually from the Actions tab
@@ -8,12 +10,10 @@ on:
810
push:
911
branches: ["main"]
1012
paths:
11-
- 'doc/src/main/hugo/**'
13+
- 'doc/redirect-site/**'
1214
- '.github/workflows/hugo.yml'
1315

14-
15-
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
16-
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
16+
# Allow only one concurrent deployment
1717
concurrency:
1818
group: "pages"
1919
cancel-in-progress: false
@@ -24,101 +24,29 @@ defaults:
2424
shell: bash
2525

2626
jobs:
27-
# Build job
28-
build:
29-
timeout-minutes: 30
27+
# Build and deploy redirect site
28+
deploy:
29+
timeout-minutes: 10
3030
runs-on: ubuntu-latest
3131
permissions:
3232
contents: read
33-
env:
34-
HUGO_VERSION: 0.112.0
35-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
pages: write
34+
id-token: write
35+
environment:
36+
name: github-pages
37+
url: ${{ steps.deployment.outputs.page_url }}
3638
steps:
3739
- name: Checkout
3840
uses: actions/checkout@v4
39-
with:
40-
submodules: recursive
41-
42-
- name: Set Up JDK 25
43-
uses: actions/setup-java@v4
44-
with:
45-
java-version: '25'
46-
distribution: 'temurin'
47-
cache: sbt
48-
49-
- name: Set Up SBT
50-
uses: sbt/setup-sbt@7e33f738678e47369c83dcb4b1d9c65d66eb3cdd # v1
51-
52-
- name: Coursier Caching
53-
uses: coursier/cache-action@2addd381bd2c931f42d4b734b9d0c9b73aac16fb # v6
54-
55-
- name: Configure sbt GitHub Packages credentials
56-
run: |
57-
mkdir -p ~/.sbt/1.0
58-
cat > ~/.sbt/1.0/github.sbt << 'EOF'
59-
credentials += Credentials(
60-
"GitHub Package Registry",
61-
"maven.pkg.github.com",
62-
"x-access-token",
63-
sys.env.getOrElse("GITHUB_TOKEN", "")
64-
)
65-
EOF
66-
67-
- name: Cache ScalaDoc Output
68-
uses: actions/cache@v4
69-
with:
70-
path: |
71-
**/target/scala-3.4.3/api
72-
**/target/scala-3.4.3/unidoc
73-
key: ${{ runner.os }}-scaladoc-${{ hashFiles('**/*.scala') }}
74-
restore-keys: |
75-
${{ runner.os }}-scaladoc-
76-
77-
- name: Setup Hugo
78-
uses: peaceiris/actions-hugo@e3b661c523413d13d642651a5ba5fc0d2b344c0d # v3
79-
with:
80-
hugo-version: '0.112.0'
81-
extended: true
82-
83-
- name: Install Dart Sass
84-
run: sudo snap install dart-sass
8541

8642
- name: Setup Pages
87-
id: pages
8843
uses: actions/configure-pages@v4
8944

90-
- name: Generate ScalaDoc
91-
run: |
92-
sbt doc/test doc/unidoc
93-
94-
- name: Build with Hugo
95-
env:
96-
# For maximum backward compatibility with Hugo modules
97-
HUGO_ENVIRONMENT: production
98-
HUGO_ENV: production
99-
run: |
100-
cd doc/src/main/hugo ; \
101-
hugo --minify --baseURL "https://riddl.tech" \
102-
--printMemoryUsage --noBuildLock --cleanDestinationDir \
103-
--enableGitInfo --noBuildLock --printPathWarnings --printMemoryUsage
104-
10545
- name: Upload artifact
10646
uses: actions/upload-pages-artifact@v3
10747
with:
108-
path: ./doc/src/main/hugo/public
48+
path: ./doc/redirect-site
10949

110-
# Deployment job
111-
deploy:
112-
timeout-minutes: 10
113-
permissions:
114-
pages: write
115-
id-token: write
116-
environment:
117-
name: github-pages
118-
url: ${{ steps.deployment.outputs.page_url }}
119-
runs-on: ubuntu-latest
120-
needs: build
121-
steps:
12250
- name: Deploy to GitHub Pages
12351
id: deployment
12452
uses: actions/deploy-pages@v4

doc/redirect-site/404.html

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>RIDDL Documentation - Moved to ossum.tech</title>
7+
<meta http-equiv="refresh" content="0; url=https://ossum.tech/riddl/">
8+
<link rel="canonical" href="https://ossum.tech/riddl/">
9+
<script>window.location.replace('https://ossum.tech/riddl/');</script>
10+
<style>
11+
body {
12+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
13+
display: flex;
14+
justify-content: center;
15+
align-items: center;
16+
height: 100vh;
17+
margin: 0;
18+
background: #1a1a2e;
19+
color: #eee;
20+
}
21+
.container { text-align: center; padding: 2rem; }
22+
h1 { color: #fa8b61; }
23+
a { color: #19c4bf; }
24+
</style>
25+
</head>
26+
<body>
27+
<div class="container">
28+
<h1>RIDDL Documentation Has Moved</h1>
29+
<p>Redirecting to <a href="https://ossum.tech/riddl/">ossum.tech/riddl</a>...</p>
30+
</div>
31+
</body>
32+
</html>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Redirecting to ossum.tech</title>
6+
<meta http-equiv="refresh" content="0; url=https://ossum.tech/riddl/concepts/">
7+
<link rel="canonical" href="https://ossum.tech/riddl/concepts/">
8+
<script>window.location.replace('https://ossum.tech/riddl/concepts/');</script>
9+
</head>
10+
<body>
11+
<p>Redirecting to <a href="https://ossum.tech/riddl/concepts/">ossum.tech/riddl/concepts/</a>...</p>
12+
</body>
13+
</html>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Redirecting to ossum.tech</title>
6+
<meta http-equiv="refresh" content="0; url=https://ossum.tech/riddl/guides/">
7+
<link rel="canonical" href="https://ossum.tech/riddl/guides/">
8+
<script>window.location.replace('https://ossum.tech/riddl/guides/');</script>
9+
</head>
10+
<body>
11+
<p>Redirecting to <a href="https://ossum.tech/riddl/guides/">ossum.tech/riddl/guides/</a>...</p>
12+
</body>
13+
</html>

doc/redirect-site/index.html

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>RIDDL Documentation - Moved to ossum.tech</title>
7+
<meta http-equiv="refresh" content="0; url=https://ossum.tech/riddl/">
8+
<link rel="canonical" href="https://ossum.tech/riddl/">
9+
<script>window.location.replace('https://ossum.tech/riddl/');</script>
10+
<style>
11+
body {
12+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
13+
display: flex;
14+
justify-content: center;
15+
align-items: center;
16+
height: 100vh;
17+
margin: 0;
18+
background: #1a1a2e;
19+
color: #eee;
20+
}
21+
.container { text-align: center; padding: 2rem; }
22+
h1 { color: #fa8b61; }
23+
a { color: #19c4bf; }
24+
</style>
25+
</head>
26+
<body>
27+
<div class="container">
28+
<h1>RIDDL Documentation Has Moved</h1>
29+
<p>Redirecting to <a href="https://ossum.tech/riddl/">ossum.tech/riddl</a>...</p>
30+
</div>
31+
</body>
32+
</html>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Redirecting to ossum.tech</title>
6+
<meta http-equiv="refresh" content="0; url=https://ossum.tech/riddl/introduction/">
7+
<link rel="canonical" href="https://ossum.tech/riddl/introduction/">
8+
<script>window.location.replace('https://ossum.tech/riddl/introduction/');</script>
9+
</head>
10+
<body>
11+
<p>Redirecting to <a href="https://ossum.tech/riddl/introduction/">ossum.tech/riddl/introduction/</a>...</p>
12+
</body>
13+
</html>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Redirecting to ossum.tech</title>
6+
<meta http-equiv="refresh" content="0; url=https://ossum.tech/riddl/tools/">
7+
<link rel="canonical" href="https://ossum.tech/riddl/tools/">
8+
<script>window.location.replace('https://ossum.tech/riddl/tools/');</script>
9+
</head>
10+
<body>
11+
<p>Redirecting to <a href="https://ossum.tech/riddl/tools/">ossum.tech/riddl/tools/</a>...</p>
12+
</body>
13+
</html>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Redirecting to ossum.tech</title>
6+
<meta http-equiv="refresh" content="0; url=https://ossum.tech/riddl/tools/riddlc/">
7+
<link rel="canonical" href="https://ossum.tech/riddl/tools/riddlc/">
8+
<script>window.location.replace('https://ossum.tech/riddl/tools/riddlc/');</script>
9+
</head>
10+
<body>
11+
<p>Redirecting to <a href="https://ossum.tech/riddl/tools/riddlc/">ossum.tech/riddl/tools/riddlc/</a>...</p>
12+
</body>
13+
</html>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Redirecting to ossum.tech</title>
6+
<meta http-equiv="refresh" content="0; url=https://ossum.tech/riddl/tutorials/">
7+
<link rel="canonical" href="https://ossum.tech/riddl/tutorials/">
8+
<script>window.location.replace('https://ossum.tech/riddl/tutorials/');</script>
9+
</head>
10+
<body>
11+
<p>Redirecting to <a href="https://ossum.tech/riddl/tutorials/">ossum.tech/riddl/tutorials/</a>...</p>
12+
</body>
13+
</html>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Redirecting to ossum.tech</title>
6+
<meta http-equiv="refresh" content="0; url=https://ossum.tech/riddl/tutorials/rbbq/">
7+
<link rel="canonical" href="https://ossum.tech/riddl/tutorials/rbbq/">
8+
<script>window.location.replace('https://ossum.tech/riddl/tutorials/rbbq/');</script>
9+
</head>
10+
<body>
11+
<p>Redirecting to <a href="https://ossum.tech/riddl/tutorials/rbbq/">ossum.tech/riddl/tutorials/rbbq/</a>...</p>
12+
</body>
13+
</html>

0 commit comments

Comments
 (0)