Giter Site home page Giter Site logo

shailendrasingh117 / organicmaps.github Goto Github PK

View Code? Open in Web Editor NEW

This project forked from organicmaps/organicmaps.github.io

0.0 0.0 0.0 82.61 MB

Official Organic Maps website source code. Please contribute your translations!

License: Apache License 2.0

Shell 3.11% JavaScript 19.87% Python 6.97% HTML 54.91% SCSS 15.14%

organicmaps.github's Introduction

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-18T17:45:35+00:00
slug: "openstreetmap-login-was-fixed-in-google-play"
taxonomies:
  news: ["Releases"]

Taxonomy and F.A.Q. architecture

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

taxonomies:
  faq: ["Android"]

Zola collects all such taxonomies:

File Taxonomy key Taxonomy value
android-lags.md faq Android
android-logs.md faq Android
general-team.md faq General
general-bugreport.md faq General
ios-versions.md faq iOS
map-longtap.md faq Map
... ... ...

After that Zola gets all values for faq taxonomy: [General, Android, iOS, Map, ...]. And generates pages:

  • For key /faq/ with the list of values (see templates/faq/list.html)
  • For each value /faq/general, /faq/android, etc. 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 page
description: More detailed info with necessary keywords for better SEO
slug: the-url-of-the-page-that-can-be-localized-for-better-seo
taxonomies:
  faq: ["General"]
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: List of taxonomies at /faq/ page is always alphabetical. So 'Android' is always the first, 'Bookmarks' is the second, 'General' is the third and so on.

Limitation: Questions at any F.A.Q. sub-page are sorted by file name. An extra.order variable in .md content files is used for sorting articles.

Limitation: Each F.A.Q. sub-page has only a name. No description, no icon. Only name 'Android', or 'iOS', or 'Routing', etc.

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.

organicmaps.github's People

Contributors

biodranik avatar rtsisyk avatar weblate avatar metehanozyurek avatar fitojb avatar jean-baptistec avatar gpesquero avatar greenaloe avatar elhasnaouymed avatar grreby avatar lucaceccarini avatar lunarna-gh avatar laoshubaby avatar meenbeese avatar supaplextw avatar trendspotter avatar jaivsh avatar ferenc- avatar d4f5409d avatar matheusgomesms avatar linerly avatar gjwentink avatar amparo0 avatar dustdfg avatar proxygeek avatar ngocanhtve avatar rose-3000 avatar vitaly-zdanevich avatar osm-oc avatar strebski avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.