Redirect old *.md links to *.html in Firebase config
Since we now serve rendered HTML, the file extension has to change.
In addition, output files now use a flat directory structure; the
filenames in this change correspond to the "permalink" values at the top
of each Jekyll-ized.md file. Our tech writers recommend this flat
directory layout as it means we can rearrange documents in a
hierarchical site outline without having to maintain the hierarchy in
the file tree, avoiding the need to physically move the files.
Change-Id: I338752597c8d97e11fe291826bf5db4e7e794243
diff --git a/firebase.json b/firebase.json
index 587d9d4..839fb14 100644
--- a/firebase.json
+++ b/firebase.json
@@ -5,6 +5,113 @@
"firebase.json",
"**/.*",
"**/node_modules/**"
+ ],
+ "redirects": [
+ {
+ "source": "/about.md",
+ "destination": "/about.html",
+ "type": 301
+ },
+ {
+ "source": "/docs/MultiMaster.md",
+ "destination": "/multiMaster.html",
+ "type": 301
+ },
+ {
+ "source": "/docs/Notedb.md",
+ "destination": "/notedb.html",
+ "type": 301
+ },
+ {
+ "source": "/docs/OutstandingTopics.md",
+ "destination": "/outstandingtopics.html",
+ "type": 301
+ },
+ {
+ "source": "/docs/ReviewKungFu.md",
+ "destination": "/reviewkungfu.html",
+ "type": 301
+ },
+ {
+ "source": "/docs/RoadMap.md",
+ "destination": "/roadmap.html",
+ "type": 301
+ },
+ {
+ "source": "/docs/Scaling.md",
+ "destination": "/scaling.html",
+ "type": 301
+ },
+ {
+ "source": "/docs/ShowCases.md",
+ "destination": "/showcases.html",
+ "type": 301
+ },
+ {
+ "source": "/docs/SqlMergeUserAccounts.md",
+ "destination": "/sqlmergeuseraccounts.html",
+ "type": 301
+ },
+ {
+ "source": "/index.md",
+ "destination": "/index.html",
+ "type": 301
+ },
+ {
+ "source": "/issues.md",
+ "destination": "/issues.html",
+ "type": 301
+ },
+ {
+ "source": "/navbar.md",
+ "destination": "/navbar.html",
+ "type": 301
+ },
+ {
+ "source": "/README.md",
+ "destination": "/README.html",
+ "type": 301
+ },
+ {
+ "source": "/releases/2.11.md",
+ "destination": "/2.11.html",
+ "type": 301
+ },
+ {
+ "source": "/releases/2.12.md",
+ "destination": "/2.12.html",
+ "type": 301
+ },
+ {
+ "source": "/releases/2.13.md",
+ "destination": "/2.13.html",
+ "type": 301
+ },
+ {
+ "source": "/releases/2.14.md",
+ "destination": "/2.14.html",
+ "type": 301
+ },
+ {
+ "source": "/releases/2.15.md",
+ "destination": "/2.15.html",
+ "type": 301
+ },
+ {
+ "source": "/releases/2.16.md",
+ "destination": "/2.16.html",
+ "type": 301
+ },
+ {
+ "source": "/releases/public-keys.md",
+ "destination": "/public-keys.html",
+ "type": 301
+ },
+ {
+ "source": "/releases/README.md",
+ "destination": "/releases-readme.html",
+ "type": 301
+ }
]
}
}