Tutorials
This has been on my plate for some time. It was essentially finished several months ago, but was help up at the last hurdle because there was problems with translating the titles of the tutorial pages.
Spec from carrie
Implementation details
I've pushed a copy to my master
and it is available at http://pserwylo.gitlab.io/fdroid-website/en/tutorials/.
Translation
Due to the more complex nature of the HTML markup on these pages, it wasn't suitable to write them as .md
files and let the translation scripts rip them apart to convert into .po
files. Instead, they are each a single .html
file, where every English string is actually pulled from _data/tutorials.json
. This will need to be setup in Weblate, exactly the same way that the website chrome (_data/strings.json
) is setup.
Pagination
Any new tutorial will automatically be added to the list of tutorials at /tutorials
. If in some distant future time we have too many tutorials, then we can paginate properly. Pagination also automatically takes care of showing the "Next" and "Previous" buttons at the bottom of the tutorial (including the title of the next/previous tutorial).