Skip to content

my-gitty/website

 
 

Repository files navigation

This is the Open Dylan website.

It is built using Sphinx. All content is written using ReStructured Text with Sphinx extensions.

Preparation

Installing system dependencies

Some system dependencies need to be satisfied first:

  • Python 3 and its package manager pip3. (It may also be installed as just "pip", but check whether that installs Python 2 packages.)
  • Git
  • Make

On a Debian-derivative, they're quite easy to fetch:

sudo apt install python3 python3-pip git make

Getting the source

The next step is fetching the repository and its submodule:

git clone https://github.com/dylan-lang/website.git  # or your fork
git submodule update --init --recursive

Installing Sphinx

Now you need the Python dependencies. The easiest way to do this is to use pip3:

sudo pip3 install -U Sphinx

You may also need python-dateutil.

sudo pip3 install python-dateutil

Building

Building the website is easy on a system with make:

make

If you are on Windows, there is a make.bat as well. It currently requires that you run it with an argument:

make.bat html

The generated site will be in build/html. For the stylesheets and JavaScript to load correctly, we suggest running a local webserver pointing to this directory:

cd build/html
python3 -m http.server

Link Validation

Sphinx also makes it easy to check that all of the links to external sites are valid. You can run the link checker by:

make linkcheck

Site Maintenance

New Binary Release

  1. Update the appropriate info on the download page.
  2. Add a recent news entry. (See below for notes on that.)

Updating Documentation

The update-opendylan.org.sh script is run by cron to update the documentation in various repositories by essentially doing a git pull and make html. These are the docs linked from the main Documentation page.

New News Entry

  1. Create an article about it (even if very short) in the appropriate date hierarchy in source/news. The hierarchy should be year/month/day. This article must have 2 metadata fields in it:

    :Author: Hannes Mehnert
    :Date: 2001-08-11 09:00:00
    
  2. Add it to source/news/recent.rst.inc

  3. If there are too many entries in that file, move some to source/news/index.rst.

  4. Confirm that the site's main page and news page both look good / correct.

About

Open Dylan project website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 30.3%
  • HTML 25.8%
  • Shell 17.8%
  • CSS 8.1%
  • Batchfile 7.8%
  • Makefile 7.2%
  • C++ 3.0%