mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Remove GitLab CI and redirect GitLab pages to api.minetest.net
This commit is contained in:
53
misc/make_redirects.sh
Executable file
53
misc/make_redirects.sh
Executable file
@@ -0,0 +1,53 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf public
|
||||
mkdir public
|
||||
|
||||
redirect() {
|
||||
dir=$(dirname "public$1")
|
||||
mkdir -p $dir
|
||||
cp misc/redirect.html "public$1"
|
||||
|
||||
url=${1/\/index.html/\/}
|
||||
sed -i "s|URL|$url|g" "public$1"
|
||||
}
|
||||
|
||||
redirect /inventory/index.html
|
||||
redirect /definition-tables/index.html
|
||||
redirect /aliases/index.html
|
||||
redirect /items/index.html
|
||||
redirect /registered-definitions/index.html
|
||||
redirect /colors/index.html
|
||||
redirect /decoration-types/index.html
|
||||
redirect /hud/index.html
|
||||
redirect /index.html
|
||||
redirect /spatial-vectors/index.html
|
||||
redirect /metadata/index.html
|
||||
redirect /perlin-noise/index.html
|
||||
redirect /translations/index.html
|
||||
redirect /tool-capabilities/index.html
|
||||
redirect /l-system-trees/index.html
|
||||
redirect /entity-damage-mechanism/index.html
|
||||
redirect /escape-sequences/index.html
|
||||
redirect /registered-entities/index.html
|
||||
redirect /flag-specifier-format/index.html
|
||||
redirect /minetest-namespace-reference/index.html
|
||||
redirect /ores/index.html
|
||||
redirect /search.html
|
||||
redirect /representations-of-simple-things/index.html
|
||||
redirect /nodes/index.html
|
||||
redirect /lua-voxel-manipulator/index.html
|
||||
redirect /helper-functions/index.html
|
||||
redirect /formspec/index.html
|
||||
redirect /games/index.html
|
||||
redirect /sounds/index.html
|
||||
redirect /textures/index.html
|
||||
redirect /map-terminology-and-coordinates/index.html
|
||||
redirect /schematics/index.html
|
||||
redirect /groups/index.html
|
||||
redirect /privileges/index.html
|
||||
redirect /class-reference/index.html
|
||||
redirect /mods/index.html
|
||||
redirect /mapgen-objects/index.html
|
14
misc/redirect.html
Normal file
14
misc/redirect.html
Normal file
@@ -0,0 +1,14 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Minetest API documentation</title>
|
||||
|
||||
<link rel="canonical" href="https://api.minetest.netURL">
|
||||
<meta http-equiv="refresh" content="0; url=https://api.minetest.netURL">
|
||||
</head>
|
||||
<body>
|
||||
<h1>Redirecting…</h1>
|
||||
<a href="https://api.minetest.netURL">Click here if you are not redirected.</a>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user