organicmaps / organicmaps.github.io

Official Organic Maps website source code. Please contribute your translations!
Apache License 2.0
35 stars 34 forks source link

Embedded faq #246

Closed strump closed 1 month ago

strump commented 1 month ago

Added Zola template to generate FAQ simmilar to https://github.com/organicmaps/organicmaps/blob/master/data/faq.html

See /faq/embedded-faq?lang=en, or /faq/embedded-faq?lang=pl, or /faq/embedded-faq?lang=ru, etc.

Problem 1: there are no questions "How to create a route and start navigation" and "I can't hear voice instructions" in https://organicmaps.app/faq/

Added two more questions to master branch and to embedded FAQ page.

Problem 2: New strings "For more information please visit our web-site" and "Go to Top" should be translated in config.toml but I just put HTML code with translations into embedded-faq.html.

Added two strings more-info-om and go-to-top to translations list.

FAQ looks and works good in Android and iOS:

biodranik commented 1 month ago

There is a non-matching p tag:

выява
cloudflare-pages[bot] commented 1 month ago

Deploying organicmaps with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1eaea3d
Status: ✅  Deploy successful!
Preview URL: https://5c804780.organicmaps.pages.dev
Branch Preview URL: https://embedded-faq.organicmaps.pages.dev

View logs

strump commented 1 month ago

@biodranik this error is caused by <ul> tag within <p> tag. So I removed outer <p> tag. Anyway Markdown-to-HTML convertor adds those tags automatically

biodranik commented 1 month ago

@strump can you please double-check if it's ready to merge and if the produced html works on iOS and Android?

strump commented 1 month ago

@biodranik ready to merge