17
0
Fork
You've already forked website-archive
0
ARCHIVE of the old Organic Maps website
This repository has been archived on 2025年05月02日. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
HTML 65.4%
JavaScript 14.7%
SCSS 12.4%
Python 5.2%
Shell 2.3%
Find a file
Konstantin Pastbin 947339d8af March 2025年03月02日 release
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2025年05月02日 17:28:51 +01:00
.github Bump checkout to v4 2023年11月09日 05:39:23 +01:00
content March 2025年03月02日 release 2025年05月02日 17:28:51 +01:00
po Update Macedonian translations 2025年02月22日 20:44:44 +01:00
sass Better margins between images in news 2024年08月19日 21:20:12 +02:00
static Synchronize the list of sponsors from README.md on GitHub 2025年01月26日 11:24:04 +03:00
templates Execute npm run format 2025年02月22日 17:05:17 +00:00
tools Update config.toml only for generated languages 2023年01月28日 19:13:26 +02:00
.gitignore [faq] 🇮🇹 Reworked page Text-to-Speech on Android ( #219 ) 2024年03月16日 17:44:06 +01:00
.jsbeautifyrc Add HTML formatter: js-beautify ( #12 ) 2021年07月06日 08:28:46 +02:00
.po4a.cfg Rename "Support us" to "Contribute" 2024年12月27日 21:19:51 +00:00
.stylelintrc.json Added stylelint for npm run format 2022年11月29日 12:42:13 +01:00
AUTHORS.md Migrate to Zola, add meta tags and dark theme support 2021年07月01日 18:03:30 +02:00
config.toml Fix issues and re-generate 2025年02月22日 17:06:32 +00:00
crowdin.yml Update Crowdin configuration file 2025年02月22日 17:03:53 +00:00
fix_news_translations.sh Script to fix missing _index files for news translations 2023年01月31日 09:43:00 +02:00
LICENSE Migrate to Zola, add meta tags and dark theme support 2021年07月01日 18:03:30 +02:00
package-lock.json npm audit fix 2024年12月27日 20:53:44 +00:00
package.json npm run upgrade 2024年12月27日 20:53:44 +00:00
README.md Execute npm run format 2025年02月22日 17:05:17 +00:00
TRANSLATIONS.md Switch German to Weblate 2023年02月09日 10:01:27 +02:00
update_news.js Fixed news script for zola 0.19 2024年06月22日 23:57:56 +02:00

Organic Maps Website

This static website is built with Zola and Cloudflare Pages.

Main Website

Development

Download the latest zola (version 0.17.2 at the time of writing) for your operating system and set up the necessary path variable.

Run zola serve for a local preview or zola build to generate static site in the public folder.

Run npm i && npm run format when you want to pretty-format the Markdown and SCSS files.

Upgrade npm dependencies with npm run upgrade, make sure that you have installed npm-check-updates package.

Deployment

Every PR deploys a preview version of the site at unique url.

Every merge into the master branch deploys changes into the production at https://organicmaps.app

Updating News

Run npm run news to automatically download news from our Telegram channel, then create a git commit and push it.

An example of a news post that is related to app updates/releases:

title:"OpenStreetMap login was fixed in Google Play"date:2024年03月18日T17:45:35+00:00slug:"openstreetmap-login-was-fixed-in-google-play"taxonomies:news:["Releases"]

For external links and press releases use this taxonomy:

taxonomies:news:["Press"]

Taxonomy and F.A.Q. architecture

Each MD page in /faq/ has one or more taxonomy defined in header. E.g.:

taxonomies:faq:["app"]

Zola collects all such taxonomies:

File Taxonomy key Taxonomy value
map/can-find-position/index.md faq Map
map/search-cannot-find-a-place/index.md faq Map
editing/map-errors/index.md faq Map Editing
app/crash/index.md faq App
text-to-speech-android-tts/index.md faq Voice Directions
... ... ...

After that Zola gets all values for faq taxonomy: [app, map, editing, tts, ...]. And generates pages:

  • For key /faq/ with the list of values (see templates/faq/list.html)
  • For each value /faq/app, /faq/map, etc. (including translated /es/faq/aplicacion, /de/faq/karte/) with the list of questions (see templates/faq/single.html)

If you want to add new question then create .md file with header:

title:A full question that is the title of the pagedescription:More detailed info with necessary keywords for better SEOtaxonomies:faq:["Bookmarks and tracks"]extra:order:40

Zola will add your question to specific F.A.Q. sub-page.

If you need to translate the FAQ to a new language please add next lines to config.toml:

[languages.XX]
taxonomies = [
 {name = "faq", feed = false},
]
[languages.XX.translations]
faq-menu-title = "{Translation of 'F.A.Q.' to a new language}"

Limitation: F.A.Q. categories (taxonomies) are sorted alphabetically: "app", "bookmarks", "editing", "map", "tts".

Limitation: Each F.A.Q. category has only a name. No description, no icon. Only name 'App', or 'Bookmarks and Tracks', or 'Map Editing', etc.

Embedded FAQ

A subset of FAQ questions is used to generate static single-page FAQ: /faq/embedded-faq/. This page should be used as an embedded offline help page in Organic Maps app on Android and iOS. To see how it looks in different languages use following links:

List of supported languages could be found in templates/faq/embedded-faq.html: en, de, es, fr, pt, pt-BR, pl, ru, tr, uk, zh.

To update embedded FAQ replace data/faq.html file with the latest version generate by Zola.

Contribution

Any good ideas and help with web site improvement are appreciated. And it's always better to discuss any improvement before implementing it to sync with our vision and plans.

Translations

Please help us with translating this web-site in your language. See TRANSLATIONS.md file for detailed instructions.