2972869e0b9def94c3a29e8b6dced119bbd5e5b3
Go by Example
Content and toolchain source for the Go by Example site.
Overview
This repo contains:
src: Go and Bash source code for the sitemeta: metadata used to generate the sitetool: toolchain used to generate the sitetemplate: HTML templates and CSS for the site
The site is built by extracting the code & comments from
the .go and .sh source files in src and rendering
that data according to meta and templates via programs
in tool.
Usage
To validate the source, generate the site, and open the home page in your browser:
$ tool/build
$ open site/index.html
To build continuously in a loop:
$ tool/build-loop
Generation requires the pygmentize
binary for syntax highlighting.
Serving
The site is served by the gobyexample-server tool. To export to this tool:
$ SITEDIR = ../gobyexample-server/public tool/build
License
This work is licensed under a Creative Commons Attribution 3.0 Unported License.
Description
Languages
Go
59.8%
CSS
31.6%
Shell
8.6%