Stellarium / stellarium.github.io

Stellarium website.

Home Page:https://stellarium.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

stellarium.github.io

Jekyll-based website for Stellarium project

Pages

Each page has a stub .md file in the top-level directory which must only include a corresponding layout from the _layouts directory. For example for the screenshots page, we need a /screenshots.md and a /_layouts/screenshots.html files.

Posts

Use the regular Jekyll way to add posts, as described there. An Atom feed is available at /feed.xml adress.

Internationalization

We use a hack allowing to get Jekyll to perform static translation of the website using gettext .po and .pot files. For this to work, you need to:

  • add the following at the top of your html file: {% include i18n.html %}
  • mark strings to translate in the .html file this way: {% include tr.html s="String to translate" %}

The po/stellarium-website.pot file can be re-generated by running the utils/update_pot.py script.

Once translation is done, copy the *.po files into the po/ directory and run the utils/update_po.py script.

Local testing

Before pushing changes on github, which immediately reflects on the public page, it is better to test the changes locally:

To run Jekyll on your local computer, read the following guide: Setting up your GitHub Pages site locally with Jekyll

About

Stellarium website.

https://stellarium.org


Languages

Language:HTML 90.8%Language:CSS 9.1%Language:JavaScript 0.1%Language:TeX 0.0%Language:Python 0.0%Language:Shell 0.0%Language:Ruby 0.0%