Archipelago
Archipelago copied to clipboard
Webhost tutorial naming problem
trafficstars
JS will ignore the filename given in tutorials.json when requesting a tutorial's markdown and instead request a file based on the url (game/document/lang will request game/document_lang.md),
Multiple possible solutions:
- look up game/document/lang in the json and request the correct url - this adds 1 fetch because json is not required currently
- when deploying the MDs to static/generated/*, rename them to match what js expects and remove filename from tutorials.json to avoid confusion
- have jinja fill in the filename into the DOM instead of game + document + lang - this moves the lookup to python
- completely get rid of tutorials.json, have the list be generated from jinja and fill in the .md link from python