Coder Social home page Coder Social logo

www.docker.io's Introduction

This is the www.docker.io website repository

It intends to be small, simple and straightforward.

Builds on

  • Django 1.5
  • Twitter Bootstrap
  • Includes tracking options such as from Google Analytics and Intercom.io

Making simple changes

This project uses a simplified Django structure, and has the notable feature that all major text contained on this website can be maintained by changing the markdown files contained in /_pages/. There is a good chance this will be the only part you need to touch.

Files which can be easily be edited are in the _pages directory and have the .md extension.

Simple installation

  • Clone this repository
  • pip install -r requirements.txt
  • run ./local_setup.sh to setup everything related to the database.
  • Done!

To preview the website run: ./manage.py runserver. It will pick the local settings by default, which are based on a local mysqlite database. Please note the tweets are now cached in the Database.

To load some data into the news, team page and events python manage.py loaddata base/migrations/[datafiles]

Secrets

Because this repository is in a public repository, we keep our secrets in environment variables. If you do not set these keys, running the app might fail.

Most notable:

  • SECRET_KEY
  • MAILCHIMP_API_KEY

About the .md files

Using markdown-formatted text allows separation of content (tekst) and markup (html). Depending on your setup you might want to setup your editor to show the content with either markdown highlighting or jinja shortcuts.

Building CSS from LESS

We build our css from less, and we (heavily) customize bootstrap. The goal is to always have a working .css file in the repository, so when you check it out you should not need to build the css. If, however you want to make changes to it:

  • Make changes to main.less (preferred over changing bootstrap's .less files
  • Compile this using your favorite tool like recess or LiveReload

If you do make changes to the Bootstrap variables which should be reflected in the bootstrap-custom

  • Find the makefile in the sources dir
  • In that directory run npm install to install the required build libraries
  • Run 'make docker-css' to compile the styles to bootsrap-custom

OR, if it mysteriously fails

lessc sources/less/bootstrap.less > bootstrap-custom.css

www.docker.io's People

Contributors

dhrp avatar jbarbier avatar samalba avatar rogaha avatar metaliveblog avatar kencochrane avatar keeb avatar radicalzephyr avatar dudebout avatar logikal avatar tianon avatar unclejack 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.