Giter Site home page Giter Site logo

lnitram / website Goto Github PK

View Code? Open in Web Editor NEW

This project forked from periph/website

0.0 1.0 0.0 1.49 MB

Content of https://periph.io; automatically updated on commit

License: Apache License 2.0

Shell 16.88% Python 7.30% HTML 49.44% CSS 26.37%

website's Introduction

periph.io website

Contains all the code necessary to generate https://periph.io via Hugo and serve via Caddy.

The web pages content is located at site/content/. Please send PR as per contributing guidelines.

Running locally

  • ./gen.sh generates the web site in ./www.
  • ./serve.sh serves the website over port 3131.

This requires docker to be installed.

Setup

  • caddy to serve over https
  • docker to be functional and callable from caddy.

The github webhook handler leverages hub.docker.com/r/marcaruel/hugo-tidy/ to do the processing whenever a new commit happens.

hugo-tidy leverages:

  • pygment to generate the syntax highlighting: pip install --user Pygments
  • hugo to generate the html
  • minify to reduce the size: go get -u -v github.com/tdewolff/minify/cmd/minify

The syntax styles was generated with pygmentize -f html -S colorful -a .syntax >> site/static/css/style.css and small modifications.

Latency

The time between a PR being merged and the web site being live is generally <5 seconds. One second due to github's latency itself, 2 seconds to regenerate the web site. The author doesn't like waiting.

website's People

Contributors

c1tt1 avatar fd0 avatar jdortiz avatar maruel avatar mattetti avatar moncho avatar neuralspaz avatar

Watchers

 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.