Skip to content
This repository has been archived by the owner on Dec 8, 2021. It is now read-only.

Latest commit

 

History

History
47 lines (39 loc) · 1.52 KB

README.md

File metadata and controls

47 lines (39 loc) · 1.52 KB

Python 101: for biologists, by biologists

Backend for course given in 2012 at the University of Lisbon.

Purpose

Get markdown files from Dropbox and/or Github and render them to HTML5 presentations with interactive Python code examples.

Course repo

Technologies

How to print slides

Hacked way

  1. Disable Deck.js scale In: views/tmpl/base.dust Replace: $(function() {$.deck('.slide'); With: $(function() {$.deck('.slide'); $.deck('disableScale');});
  2. Disable all font color black (for syntax higlight) and :after :before none (optional) In: public/pkg/deck.js/deck.core.css Comment: @media print { * {}}
  3. Fix CodeMirror2 box size In: public/css/style.css AddTo: .deck-container .CodeMirror {} Line: font-size: 18pt !important;

Correct way (TODO)

  1. Implement everything in a print button
  2. Avoid using CSS transform, footer after, print only classes, etc in favor of something like @page { @top-left {content: element(footer)}}
  3. Disable Deck.js scale and resize CodeMirror2 font before print with button

Copyright

© 2012 Bruno Vieira