Code Monkey home page Code Monkey logo

cs4hs's Introduction

This project has been replaced by the cs4teachers system, and has been archived.


CS4HS Website Generator

This project generates the website for the CS4HS workshops held at the University of Canterbury, New Zealand located at cosc.canterbury.ac.nz/cs4hs.

Overview

Running generate.py will produce all the necessary files for the website, that can be copied and placed on the appropriate web server. The script will generate HTML pages using Jinja2, and copy all images, files, css, and js into the output folder as well. This program is not as efficient in generation as the CSFG project, however it does get the job done.

cs4hs/
├── css/
│   └── Files to style the website output
├── files/
│   └── Files available for users to download through the website
├── img/
│   └── Images to display on the website
├── js/
│   └── JavaScript used in the website output
├── output/
│   └── Files and folders produced by the website generator (ignored by Git)
├── templates/
│   └── HTML files used by the template engine Jinja2
├── text/
│   └── HTML files used to create pages by the template engine Jinja2
├── .gitignore
├── generate.py
├── LICENSE
└── README.md

Why use a template engine?

Over the past few years the CS4HS website has been created with 'hard coded' pages (created in the amazing Brackets). We now want to use a template engine to manage repetitive code, and this small Python script using Jinja2 achieves this. This project prepared us for the website creation aspect of the CSFG project.

Future plans

  • Switch to an existing static site generator (Middleman, Jekyll, etc)

Usage

Run generate.py and the website will be located within the the output folder.

Requirements

  • Python 3.4 or higher
  • Jinja2 2.7.3 or higher (this is installed by the generate.py script if not installed already)

Found a problem?

If you notice a problem, raise an issue here.

Contributing

Forks and pull requests are welcome. We use Vincent Driessen's Git Branching Model for managing development.

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.