Archipelago icon indicating copy to clipboard operation
Archipelago copied to clipboard

Webhost tutorial naming problem

Open black-sliver opened this issue 3 years ago • 0 comments
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:

  1. look up game/document/lang in the json and request the correct url - this adds 1 fetch because json is not required currently
  2. when deploying the MDs to static/generated/*, rename them to match what js expects and remove filename from tutorials.json to avoid confusion
  3. have jinja fill in the filename into the DOM instead of game + document + lang - this moves the lookup to python
  4. completely get rid of tutorials.json, have the list be generated from jinja and fill in the .md link from python

black-sliver avatar Jul 06 '22 23:07 black-sliver