mate-desktop / mate-desktop.org

New mate-desktop.org website
http://www.mate-desktop.org
Other
40 stars 43 forks source link

mate-desktop.org

This repository contains the Nikola configuration and content for https://mate-desktop.org.

Contributing content

If you want to add or edit the content on https://mate-desktop.org, please submit a pull request.

Contributing a new post

Contributing a new blog post to the mate-desktop.org website is simple.

If you prefer ReStructuredText to Markdown, then follow the same process as above, but use blog/20991231rest-template.rst as the template file.

Embedding images

Markdown and reStructured Test both have markup for embedding images. To embed an image, just drop your correctly sized image into the files/assets/img/blog/ directory and then link to it. When linking to an image assets you drop the 'files prefix from the Markdown and reStructured Text markup.

Markdown image example

![MATE](/assets/mate-128.png)

reStructured Text image example

.. image:: /assets/mate-128.png
    :align: center

Submitting posts for future publication

The date field in the metadata also controls when a post will be published. If you have created a post that should be published at a specific date or time, set the date/time accordingly and that post will not be published until that time.

The mate-desktop.org website is redeployed every 10 minutes, so the actual publication time will be accurate to the nearest 10 minutes.

Preventing a post from being published

If you have a post you are working on but do not wish to publish, just add draft to the list of tags in the metadata. Posts tagged as draft will not be published.

Contributing a translation

To contribute a translated page or blog post to the mate-desktop.org website do the following:

Nikola supported languages are, the one in bold are already in the site navigation::

Markdown vs. ReStructured Text

mate-desktop.org converts Markdown or reStructured Text into HTML. In general we recommend Markdown, but some of the Nikola advanced features are only exposed via reStructured Text extension.

Markdown

Nikola follows the syntax rules of the original markdown.pl with the following extensions enabled:

reStructured Text

See the Nikola reStructuredText Primer and the reStructured Text extensions.

Creating a Nikola stack

For the MATE Desktop core team, if you need to create a Nikola stack for testing/deployment, the installation process is documentation for Ubuntu (also works in Debian Jessie) here:

Fedora, Debian, Ubuntu

STEP 1: Install the following packages on your system

On Ubuntu/Debian:

sudo apt-get install python3 python3-pip asciidoctor virtualenv

On Fedora:

sudo dnf install python3 python3-pip asciidoctor optipng yuicompressor jpegoptim virtualenv

STEP 2: Create a new virtual environment named nikola in ~/MyVirtualEnvs folder

mkdir -p ~/MyVirtualEnvs
cd ~/MyVirtualEnvs
virtualenv -p $(which python3) nikola

STEP 3: Activate the virtual environment created in STEP 2

source nikola/bin/activate

STEP 4: Install the following python packages in the virtual environment

(nikola) pip install --upgrade pip
(nikola) pip install --upgrade "Nikola[extras]"
(nikola) pip install --upgrade python-Levenshtein
(nikola) pip install --upgrade pathlib
(nikola) pip install --upgrade beautifulsoup4
(nikola) pip install --upgrade webassets

(nikola) is part of your shell prompt for the virtualenv named nikola, not part of the command.

STEP 5: Build and test the web site

(nikola) cd ~/mate-desktop.org
(nikola) nikola build -c
(nikola) nikola serve

STEP 6: Open the site in a web browser

Open the URI displayed in the previous step using your favorite web browser.

STEP 7: Exit virtual environment

Press ^C to close nikola serve

(nikola) deactivate

TODO