Giter Site home page Giter Site logo

ratlaf.github.io's Introduction

ZNET

How to build, maintain, publish ZNET

Dev work

The site is generated twice.

  1. gulp build-dev The first time it's generated, the various javascript and css files are injected into index.html and the image files are pulled out of raw-images and processed/optimized. All of this (especially the image processing) is slow and it isn't necessary unless you've added a new file.

  2. jekyll serve --incremental The second time it's generated, the Jekyll engine does its thing. Builds the content pages, links everything together and then serves the result up so that you can see it. It also rebuilds if any of the files it depends on changes, including scss and javascript.

Prod Time

The site is actually a github repo that is then actually served out of Cloudflare. As such, getting a new version published is a two-step process.

  1. gulp build-prod This will concatinate all the javascript and css, uglify it, compress it, all that. It will also swap in the prod config file and rebuild the images, just for good measure. Once that's done, the script will move the genreated site over to another folder zbnet.github.io where it will be ready to push to production.

  2. Push it to production. I used to have this automated as part of the gulp task, but then I started pushing stuff without having a second look and that was bad, so now you have to go over to the folder and manually git add . and git commit -a -m "" then git push the project up to its repo on github (and not bitbucket, which is where the actual repo lives).

Hosting and CDN

Page served out of zbnet.github.io, but is CDN'd via cloudflare. Both accounts are registered under [email protected]

Other Useful Notes

Gulp did not lend itself well to imagemagick because gulp is async and imagemagick is decidedly not. So the image resize/optimization happens in images.bat, which is in the folder misc_scripts.

To add a paragraph to a footnote, add @@ where you want the break. Works for multiple paragraphs.

ratlaf.github.io's People

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.