GithubHelp home page GithubHelp logo

hacktivity-kit's Introduction

This is the content for the hackasaurus.org hacktivity kit.

Prerequisites

Conversion toolchain

Prince does not offer as full-featured support for JavaScript as modern browsers do. To allow the use of libraries like jQuery (which Prince currently cannot handle) the files get "compiled" into static HTML before feeding them to Prince.

jsdom

vandegraaff.js is a node.js script that uses jsdom to load the page, allow any initial JavaScript to run, and dump a static HTML version out. This gets sent to...

Prince

You need Prince 8.0 to generate the PDF version of the kit. The free version is fine.

Sample command

cat kit.html | node vandegraaff.js | prince -s stylesheets/print.css -o kit.pdf -

This creates kit.pdf that you can open with your favorite PDF viewer.

With -v, Prince may report errors like:

prince: kit.html:9: error: Tag section invalid<

These don't affect processing and should disappear with upcoming releases of Prince.

Testing

Ideally, all tests should be viewed in both a browser and converted to PDF to ensure compatability in both scenarios. The strategy above should work for QUnit pages, which can be compiled to static HTML and viewed in a browser for pass/fail status.

hacktivity-kit's People

Contributors

stenington avatar toolness avatar

Stargazers

Jess Klein avatar  avatar  avatar

Watchers

 avatar James Cloos avatar

Forkers

toolness

hacktivity-kit's Issues

Table of Contents

Is there a way to remove the ordered list in the table of contents on the page 1 of the pdf?
Additionally, there should be a title (h1?) on the page as well- so that should read "Table of Contents"

Resources

The current resources section is empty. Figure out how each resource is going to be included in the web and pdf versions of the kit.

Tips

The tips should be italicized- and called out a little.

Some of this will be addressed when we do a deeper dive into design, but I think for now we can just keep it simple and italicize any "Tip" in the document.

Add learning rubric

Build the learning rubric from pg 27-28 of the hacktivity kit into the web/prince version.

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.