Skip to content

Commit

Permalink
Redirect autogenerated to data (#555)
Browse files Browse the repository at this point in the history
* Redirect autogenerated files to the _data directory

* Redirect autogenerated files to the _data directory

* Redirect to the related JSON file inside the _data directory

* Redirect autogenerated files to the _data directory

* Redirect to the related JSON file inside the _data directory

* Change redirect logic for autogenerated pages

* Add hyperlink for Pangeanic

* Fix redirect for auto generated language pages after merge

---------

Co-authored-by: Tovmas <[email protected]>
  • Loading branch information
tovmasharrison and Tovmas authored Oct 24, 2023
1 parent 8fcd474 commit 0bb421b
Show file tree
Hide file tree
Showing 307 changed files with 263 additions and 44 deletions.
1 change: 1 addition & 0 deletions generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,7 @@ def normalize(code):

frontmatter = {
'autogenerated': True,
'autogenerated_from': 'languages.json',
'nav_order': 1000 - len(supported_apis),
'nav_exclude': True,
'parent': 'Languages',
Expand Down
1 change: 1 addition & 0 deletions languages/acr.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
autogenerated: true
autogenerated_from: languages.json
nav_order: 999
nav_exclude: true
parent: Languages
Expand Down
1 change: 1 addition & 0 deletions languages/acu.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
autogenerated: true
autogenerated_from: languages.json
nav_order: 999
nav_exclude: true
parent: Languages
Expand Down
1 change: 1 addition & 0 deletions languages/ada.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
autogenerated: true
autogenerated_from: languages.json
nav_order: 999
nav_exclude: true
parent: Languages
Expand Down
1 change: 1 addition & 0 deletions languages/adh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
autogenerated: true
autogenerated_from: languages.json
nav_order: 999
nav_exclude: true
parent: Languages
Expand Down
1 change: 0 additions & 1 deletion languages/afro-asiatic.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
autogenerated: true
autogenerated_from: language_families.json
nav_exclude: true
nav_order: 987
parent: Language families
Expand Down
1 change: 1 addition & 0 deletions languages/agr.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
autogenerated: true
autogenerated_from: languages.json
nav_order: 999
nav_exclude: true
parent: Languages
Expand Down
1 change: 1 addition & 0 deletions languages/ake.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
autogenerated: true
autogenerated_from: languages.json
nav_order: 999
nav_exclude: true
parent: Languages
Expand Down
1 change: 0 additions & 1 deletion languages/albanian.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,4 @@ seo:
type: Language

---

The language code `als` is the ISO 639-3 code for Tosk Albanian, but it is used by Wikipedia for [Alemannic](/languages/alemannic.md).
1 change: 0 additions & 1 deletion languages/alemannic.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,4 @@ seo:
type: Language

---

Wikipedia uses the language code `als` for Alemannic, but it is actually the ISO 639-3 code for [Tosk Albanian](/languages/albanian.md).
1 change: 1 addition & 0 deletions languages/amk.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
autogenerated: true
autogenerated_from: languages.json
nav_order: 999
nav_exclude: true
parent: Languages
Expand Down
1 change: 1 addition & 0 deletions languages/amu.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
autogenerated: true
autogenerated_from: languages.json
nav_order: 999
nav_exclude: true
parent: Languages
Expand Down
1 change: 1 addition & 0 deletions languages/ang.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
autogenerated: true
autogenerated_from: languages.json
nav_order: 999
nav_exclude: true
parent: Languages
Expand Down
1 change: 1 addition & 0 deletions languages/any.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
autogenerated: true
autogenerated_from: languages.json
nav_order: 999
nav_exclude: true
parent: Languages
Expand Down
1 change: 1 addition & 0 deletions languages/arn.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
autogenerated: true
autogenerated_from: languages.json
nav_order: 999
nav_exclude: true
parent: Languages
Expand Down
1 change: 1 addition & 0 deletions languages/ata.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
autogenerated: true
autogenerated_from: languages.json
nav_order: 999
nav_exclude: true
parent: Languages
Expand Down
1 change: 0 additions & 1 deletion languages/austroasiatic.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
autogenerated: true
autogenerated_from: language_families.json
nav_exclude: true
nav_order: 997
parent: Language families
Expand Down
1 change: 0 additions & 1 deletion languages/austronesian.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
autogenerated: true
autogenerated_from: language_families.json
nav_exclude: true
nav_order: 976
parent: Language families
Expand Down
1 change: 0 additions & 1 deletion languages/aymaran.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
autogenerated: true
autogenerated_from: language_families.json
nav_exclude: true
nav_order: 999
parent: Language families
Expand Down
1 change: 0 additions & 1 deletion languages/baltic.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
autogenerated: true
autogenerated_from: language_families.json
nav_exclude: true
nav_order: 997
parent: Language families
Expand Down
1 change: 0 additions & 1 deletion languages/bantu.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
autogenerated: true
autogenerated_from: language_families.json
nav_exclude: true
nav_order: 977
parent: Language families
Expand Down
1 change: 1 addition & 0 deletions languages/bba.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
autogenerated: true
autogenerated_from: languages.json
nav_order: 999
nav_exclude: true
parent: Languages
Expand Down
1 change: 1 addition & 0 deletions languages/bch.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
autogenerated: true
autogenerated_from: languages.json
nav_order: 999
nav_exclude: true
parent: Languages
Expand Down
1 change: 1 addition & 0 deletions languages/bci.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
autogenerated: true
autogenerated_from: languages.json
nav_order: 999
nav_exclude: true
parent: Languages
Expand Down
1 change: 1 addition & 0 deletions languages/bcl.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
autogenerated: true
autogenerated_from: languages.json
nav_order: 999
nav_exclude: true
parent: Languages
Expand Down
1 change: 1 addition & 0 deletions languages/bdh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
autogenerated: true
autogenerated_from: languages.json
nav_order: 999
nav_exclude: true
parent: Languages
Expand Down
1 change: 1 addition & 0 deletions languages/bdu.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
autogenerated: true
autogenerated_from: languages.json
nav_order: 999
nav_exclude: true
parent: Languages
Expand Down
1 change: 1 addition & 0 deletions languages/bfa.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
autogenerated: true
autogenerated_from: languages.json
nav_order: 999
nav_exclude: true
parent: Languages
Expand Down
1 change: 1 addition & 0 deletions languages/bhw.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
autogenerated: true
autogenerated_from: languages.json
nav_order: 999
nav_exclude: true
parent: Languages
Expand Down
1 change: 1 addition & 0 deletions languages/bin.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
autogenerated: true
autogenerated_from: languages.json
nav_order: 999
nav_exclude: true
parent: Languages
Expand Down
1 change: 1 addition & 0 deletions languages/bno.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
autogenerated: true
autogenerated_from: languages.json
nav_order: 999
nav_exclude: true
parent: Languages
Expand Down
1 change: 1 addition & 0 deletions languages/bnp.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
autogenerated: true
autogenerated_from: languages.json
nav_order: 999
nav_exclude: true
parent: Languages
Expand Down
1 change: 1 addition & 0 deletions languages/bqj.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
autogenerated: true
autogenerated_from: languages.json
nav_order: 999
nav_exclude: true
parent: Languages
Expand Down
1 change: 1 addition & 0 deletions languages/bqp.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
autogenerated: true
autogenerated_from: languages.json
nav_order: 999
nav_exclude: true
parent: Languages
Expand Down
1 change: 1 addition & 0 deletions languages/bsn.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
autogenerated: true
autogenerated_from: languages.json
nav_order: 999
nav_exclude: true
parent: Languages
Expand Down
1 change: 1 addition & 0 deletions languages/btx.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
autogenerated: true
autogenerated_from: languages.json
nav_order: 999
nav_exclude: true
parent: Languages
Expand Down
1 change: 1 addition & 0 deletions languages/bum.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
autogenerated: true
autogenerated_from: languages.json
nav_order: 999
nav_exclude: true
parent: Languages
Expand Down
1 change: 1 addition & 0 deletions languages/bus.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
autogenerated: true
autogenerated_from: languages.json
nav_order: 999
nav_exclude: true
parent: Languages
Expand Down
1 change: 1 addition & 0 deletions languages/byn.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
autogenerated: true
autogenerated_from: languages.json
nav_order: 999
nav_exclude: true
parent: Languages
Expand Down
1 change: 1 addition & 0 deletions languages/byr.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
autogenerated: true
autogenerated_from: languages.json
nav_order: 999
nav_exclude: true
parent: Languages
Expand Down
1 change: 1 addition & 0 deletions languages/bzj.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
autogenerated: true
autogenerated_from: languages.json
nav_order: 999
nav_exclude: true
parent: Languages
Expand Down
1 change: 1 addition & 0 deletions languages/cab.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
autogenerated: true
autogenerated_from: languages.json
nav_order: 999
nav_exclude: true
parent: Languages
Expand Down
1 change: 1 addition & 0 deletions languages/cak.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
autogenerated: true
autogenerated_from: languages.json
nav_order: 999
nav_exclude: true
parent: Languages
Expand Down
1 change: 1 addition & 0 deletions languages/cas.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
autogenerated: true
autogenerated_from: languages.json
nav_order: 999
nav_exclude: true
parent: Languages
Expand Down
1 change: 1 addition & 0 deletions languages/cbk.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
autogenerated: true
autogenerated_from: languages.json
nav_order: 999
nav_exclude: true
parent: Languages
Expand Down
1 change: 1 addition & 0 deletions languages/cbl.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
autogenerated: true
autogenerated_from: languages.json
nav_order: 999
nav_exclude: true
parent: Languages
Expand Down
1 change: 1 addition & 0 deletions languages/cce.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
autogenerated: true
autogenerated_from: languages.json
nav_order: 999
nav_exclude: true
parent: Languages
Expand Down
1 change: 1 addition & 0 deletions languages/ccp.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
autogenerated: true
autogenerated_from: languages.json
nav_order: 999
nav_exclude: true
parent: Languages
Expand Down
1 change: 1 addition & 0 deletions languages/cdf.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
autogenerated: true
autogenerated_from: languages.json
nav_order: 999
nav_exclude: true
parent: Languages
Expand Down
1 change: 0 additions & 1 deletion languages/celtic.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
autogenerated: true
autogenerated_from: language_families.json
nav_exclude: true
nav_order: 994
parent: Language families
Expand Down
1 change: 1 addition & 0 deletions languages/cfm.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
autogenerated: true
autogenerated_from: languages.json
nav_order: 999
nav_exclude: true
parent: Languages
Expand Down
1 change: 1 addition & 0 deletions languages/ch.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
autogenerated: true
autogenerated_from: languages.json
nav_order: 998
nav_exclude: true
parent: Languages
Expand Down
1 change: 1 addition & 0 deletions languages/cha.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
autogenerated: true
autogenerated_from: languages.json
nav_order: 1000
nav_exclude: true
parent: Languages
Expand Down
1 change: 0 additions & 1 deletion languages/chadic.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
autogenerated: true
autogenerated_from: language_families.json
nav_exclude: true
nav_order: 999
parent: Language families
Expand Down
1 change: 1 addition & 0 deletions languages/chk.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
autogenerated: true
autogenerated_from: languages.json
nav_order: 999
nav_exclude: true
parent: Languages
Expand Down
1 change: 1 addition & 0 deletions languages/chm.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
autogenerated: true
autogenerated_from: languages.json
nav_order: 999
nav_exclude: true
parent: Languages
Expand Down
1 change: 1 addition & 0 deletions languages/chq.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
autogenerated: true
autogenerated_from: languages.json
nav_order: 999
nav_exclude: true
parent: Languages
Expand Down
Loading

0 comments on commit 0bb421b

Please sign in to comment.