Git Product home page Git Product logo

coapp.org's Introduction

CoApp Website Source Code

This is the soruce code to the new CoApp website, which is statically generated using a fork of DocPad.

Everything you need to rebuild and test the content is including in the repository, so you should be able to just check this out and run:

    server.cmd

And it will start the website test server that will regenerate the static content every time you save a file (anywhere in ./src)

The website itself will be generated into the ./out directory as a completely static website.

You can also manually generate the static content by running the

    generate.cmd

script. This does the same thing, except doesn't actually run a mini-http server (or watch for changes)

Understanding the layout of the website

+ src
   | 
   |-- dynamic           -- All the dynamic content of the website is in here
   |-- includes          -- These are snippets of ejs/md/html code that 
   |                        can be included in multiple pages. (ie, sideboxes) 
   |-- layouts           -- The layout files allow us to abstract page layout 
   |                        into common files where the dynamic content can 
   |                        reference them
   |-- static            -- any content that can be just copied verbaitm into 
                            the website 
     

The workflow of generating content.

Files in the dynamic section of the website can get transformed from one format to another, and can pass thru multiple formats before generating the final static file.

Each file has one or more extensions, and reading from the end towards the beginning, you will see the transformations that the page will go thru:

Some Examples:

  foo.css.less          -- a .less file that gets transformed into a .css file
  
  foo.html.md           -- a markdown file that gets transformed into html
  
  foo.html.md.ejs       -- an Embedded Javascript file that transforms into a markdown 
                           and then into a html file.

At generation time, the dynamic content is transformed and copied along with the static content into the output directory.

coapp.org's People

Contributors

fearthecowboy avatar hanrahat avatar jpf avatar mloskot avatar riverar avatar virmitio avatar voltagex avatar wwahammy avatar yaauie 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.