-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathmake_redirects.py
More file actions
28 lines (24 loc) · 848 Bytes
/
make_redirects.py
File metadata and controls
28 lines (24 loc) · 848 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
files = {
"common-protos.html": "docs/common-protos",
"contact.html": "docs/contact",
"customizations.html": "docs/customizations",
"faq.html": "docs/faq",
"generated-code.html": "docs/generated-code",
"getting-started.html": "docs/getting-started",
"grpc.html": "docs/grpc",
"installation.html": "docs/installation",
"json.html": "docs/json",
"migrating.html": "docs/upgrading",
"sbt-settings.html": "docs/sbt-settings",
"scala.js.html": "docs/scala.js",
"scalapbc.html": "docs/scalapbc",
"sealed-oneofs.html": "docs/sealed-oneofs",
"sparksql.html": "docs/sparksql",
"third-party-protos.html": "docs/third-party-protos",
"user_defined_options.html": "docs/user_defined_options",
}
tmpl = open('redir.html').read()
for k, v in files.items():
out = open(k, 'w')
out.write(tmpl % {'new': v})
out.close()