|
5 years ago | |
---|---|---|
bin | 5 years ago | |
etc | 5 years ago | |
locales | 5 years ago | |
source | 5 years ago | |
.gitignore | 5 years ago | |
DESIGN.org | 5 years ago | |
Gemfile | 5 years ago | |
Gemfile.lock | 5 years ago | |
README.md | 5 years ago | |
VERSION | 5 years ago | |
config.rb.dist | 5 years ago |
This is the source code for beta.devuan.org.
Version 0.9.0. We’re using Semantic Versioning.
The source code is free software distributed under the GNU Affero General Public License, version 3, or, at your option, any later version. (See COPYING.)
The website contents are creative commons released under CC-BY-ND-4.0-International.
This is a static Web made with Middleman.
| Directory | File | Description |
|---------------------+------------------------+---------------------------|
| ./ | config.rb | Middleman configuration |
| etc/ | | Extra configuration files |
| | nginx-development.conf | To run the site locally |
| | nginx-production.conf | To deploy publicly |
| | crontab | To automate site updates |
| locales/ | :lang.yml | Localized strings |
| source/ | | Web contents |
| source/layouts | *.erb | Layout templates |
| source/pages | *.:lang.html.md.erb | Localized pages |
| source/partials | | Partial files (includes) |
| source/ui | | User interface files |
| source/ui/css | | Stylesheets |
| source/ui/css/fonts | | Embedded Web fonts |
| source/ui/img | | Image files |
| source/ui/js | | Javascript files |
Most pages go under source/pages/os/
. This is to enable local mirrors to
add their own custom contents for their local community.
To deploy the site locally:
You need Ruby (and ruby-dev
) and a couple of ruby packages (gems
):
~$ sudo gem install middleman bundler
~$ mkdir -p ~/src/devuan/www && cd $_
www$ git clone https://git.devuan.org/devuan-editors/devuan-www.git beta.devuan.org
www$ cd beta.devuan.org
beta.devuan.org$ export DIR=$PWD
The source code now lives at ~/src/devuan/www/beta.devuan.org
.
We keep track of this path using the variable DIR
.
beta.devuan.org$ echo '127.0.0.1 beta.devuan.org' | sudo tee -a /etc/hosts
beta.devuan.org$ cd /etc/nginx/sites-available
sites-available$ sudo ln -s $DIR/etc/nginx-development.conf beta.devuan.org
sites-available$ cd ../sites-enabled
sites-enabled$ sudo ln -s ../sites-available/beta.devuan.org
sites-enabled$ sudo /etc/init.d/nginx reload
beta.devuan
instead.sites-enabled$ cd $DIR
beta.devuan.org$ bundle exec middleman build
This generates the static files in $DIR/webroot
.
You can fallback to the backend for non-built files if you run the local middleman server:
beta.devuan.org$ bundle exec middleman server -p 4569
Open your browser to http://beta.devuan.org
(or beta.devuan
, YMMV)
The main site (beta.devuan.org
) is in English by default.
Mirrors should change the default language to set theirs in config.rb
.
Do commit the change, so that it will be kept during updates, but DO NOT PUSH
it! If you need to push, you should use another working directory than the
deployed one.
Once your mirror is deployed, please send its URL, language, location, and person responsible to the relevant topic on Devuan Discourse, so it can be added to the list. E.g., a mirror in France can be accessed via fr.devuan.org.