GithubHelp home page GithubHelp logo

countlurk / ubuntu-mate.org Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ubuntu-mate/ubuntu-mate.org

0.0 1.0 0.0 74.06 MB

The website to showcase Ubuntu MATE's features.

Home Page: https://ubuntu-mate.org

Python 25.54% CSS 5.87% JavaScript 24.89% HTML 40.57% Shell 3.13%

ubuntu-mate.org's Introduction

ubuntu-mate.org

The website for discovering and downloading the Ubuntu MATE operating system.

Powered by Nikola - a static page generator.

Build Status


Translations

The website is only in English at the moment. There is currently no way for translators yet, although Nikola has support for multilingual sites.


Setting up the Nikola Environment

First, install Nikola into an isolated Python environment, called a virtualenv. This is independent from the system's installation of Python.

source ~/Snakepit/nikola/bin/activate

You know when the Nikola environment is activated because (nikola) will be added to the bash prompt.

Clone the website

mkdir ~/Websites
cd ~/Websites
git clone [email protected]:ubuntu-mate/ubuntu-mate.org.git

Build Nikola

The first build will take a while. Subsequent builds are much faster.

cd ~/Websites/ubuntu-mate.org
nikola build

Serving the site

Nikola has a built in webserver, the serves the currently built site on port 8000.

cd ~/Websites/ubuntu-mate.org
nikola serve

Now point you web browser at localhost:8000 to test. CTRL+C to stop serving.

Cleaning Nikola

If you need to clean the Nikola build of the site do this following.

nikola clean

You'll need to build the site again now.


Deploying the site

The site is re-deployed on every commit via Travis CI. However, it a new Ubuntu MATE release is happening then the download page needs updating too.

Updating the dynamic download page

The download page is dynamic client-side, but is statically generated using these resouces.

  • Download information is stored in files/assets/downloads.json
  • The main presentation is taken from /pages/download.md and will need Alpha, Beta labels etc updating.
  • The LESS and CSS configuration is stored in /themes/United/less/download.less
  • The Javascript logic is in files/assets/js/downloads.js

When the torrents are published as part of the iso release run generate-magnet-urls.sh for each release architecture, for instance:

./scripts/helpers/generate-magnet-urls.sh http://cdimage.ubuntu.com/ubuntu-mate/releases/16.04.3/release/ubuntu-mate-16.04.3-desktop-i386.iso.torrent

Copy and paste the output to files/assets/downloads.json under the respective magnet-uri key.

ubuntu-mate.org's People

Contributors

countlurk avatar epgfm avatar flexiondotorg avatar foss-scribe avatar goinglinux avatar lah7 avatar onebitram avatar

Watchers

 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.