Giter VIP home page Giter VIP logo

rabbitmq-website's Introduction

This repository contains source code for rabbitmq.com content.

All changes that need to be deployed right away need to be committed to the live branch.

Changes which should be deployed when the next patch release (a.k.a. stable) of RabbitMQ ships should be committed to the stable branch.

Changes which should be deployed when the next 3.6.x patch release of RabbitMQ ships should be committed to the 3.6.x branch.

Changes which should be deployed when the next minor release (a.k.a. master) of RabbitMQ ships should be committed to the master branch.

Branches

There are a few noteworthy and long-lived named branches in this repository:

Branch Description
live The current version of the website. This must represent whatever's deployed to www.rabbitmq.com.
stable Changes to the website that will correspond to the next point (maintenance) release of RabbitMQ. This gets merged into live when a 3.7.x release occurs.
master Changes to the website that will correspond to the next minor release of RabbitMQ. Periodically deployed to next.rabbitmq.com. This gets merged into stable and then live when a minor release occurs.

Development environment

Running a Local Copy

The site requires Python 3.6 or later, lxml and Markdown libraries for development. It also assumes Apache 2.x is used for deployment. pyenv can be used to install the appropriate Python version without affecting the system version(s).

When using OS native package managers be aware that Python packages can be out-of-date.

On MacOS

On a recent MacOS version with Homebrew it should be enough to run

make preview

to install the dependencies and run a local copy on localhost:8191

It is also possible to install the dependencies manually:

brew install python
pip install lxml markdown

Using the system Python, dependencies must be installed differently:

sudo easy_install pip
sudo pip install lxml markdown

To run a local copy manually on localhost:8191, use:

./driver.py [www|next|previous]

On Debian-based Linux

On Debian and Ubuntu dependencies can be installed via apt:

sudo apt-get install python3-lxml python3-markdown python3-pygments

To run a local copy manually on localhost:8191, use:

./driver.py [www|next|previous]

Limitations of Local Copy

Note that when running a local copy the site will not feature:

  • Any release artefacts (such as Web versions of the man pages)
  • The blog

Modes

The website also has the concept of being deployed in modes. The three modes are:

Mode Description
www This is the "normal" mode. You would normally deploy from the live branch with this mode.
next This is the mode for next.rabbitmq.com. This mode has the home page and download page chopped down, no blog or search, and a watermark. You would normally deploy from the master branch with this mode.
previous For previous.rabbitmq.com. The website is reduced in the same way as "next", but this mode is meant for previous releases rather than future releases.

You determine which mode you are using with an argument to the driver or deploy scripts. Modes are implemented with the <x:modal/> tag and the $page-mode variable in XSLT.

Tutorial Charts (Diagrams)

diagrams.py is a script generates PNGs from graph descriptions embedded in files. Generally you don't need to run this, since the generated PNGs are committed. To work on the diagrams please install Graphviz:

sudo apt-get install graphviz

Generating the Atom Feed

To generate the site/news.atom feed, run the following command:

xsltproc --novalid site/feed-atom.xsl site/news.xml > site/news.atom

Copyright and License

See NOTICE and LICENSE.

rabbitmq-website's People

Contributors

michaelklishin avatar acogoluegnes avatar dumbbell avatar lukebakken avatar gerhard avatar camelpunch avatar priviterag avatar hairyhum avatar jacksoncvm avatar kjnilsson avatar videlalvaro avatar essen avatar asbjornu avatar jeffweiss avatar dcorbacho avatar binarin avatar gotthardp avatar ayanda-d avatar deadtrickster avatar larrylv avatar dastergon avatar chengweiv5 avatar geryogam avatar livven avatar mavimo avatar mrbuk avatar monosoul avatar jdesilvio avatar cocowalla avatar thanakritlee avatar

Watchers

James Cloos avatar  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.