Giter VIP home page Giter VIP logo

stdio-ghana.github.io's Introduction

#stdio-ghana

view course site

apply to participate

##Instructor Guidance

To edit / create sessions:

  1. go the the sessions/YYYY/$session folder
  2. the index.html or index.md (html vs markdown; markdown will supersede html, and is necessary to have the content parsed as markdown) file is the main session slides
  3. the yaml header material (the content between the ---s) specifies all the necessary header and footer material for the slides (e.g., the doctype, opening html/head/body elements, closing elements) via the layout value
  4. so to add / edit slides, just add / edit the section elements.
  5. slide demo here; more directions here
  6. for non-slide content (e.g., if you need the students to download some prepared content for an exercise), add it to this directory as well.
  7. for markdown slides: we are using the kramdown engine; detailed documentation in the link

To run the site locally, install jekyll according to GH instructions, then clone the repository. In the root of the clone, call

jekyll serve -w --config=_config.yml,_locconfig.yml

This causes jekyll to serve the site on localhost:4000, and reload (-w option) whenever content files are updated (changes to yml files will trigger the process to indicate it is reloading, but will not actually cause those changes to be reflected). The --config flag uses the global site config data, but overrides the relevant url variables with the _locconfig.yml file.

If on a system with bash scripting available (typical *nix system, Windows with Powerbash or the like installed), you may simply use the script ./run.sh to serve the site.

Notes on making session slides:

  • if you use <section markdown="block"> for slides + .md instead of .html extension, markdown syntax should just work.
  • may need to wary of mixing that with code highlighting
  • if you use <aside class="notes"> ... </aside>, you can write notes
  • the notes may also use markdown, if you add the markdown="block" attribute to the aside element.

##Kramdown Reference available here

##Integrated "Theme" Reference available here

##Doing Site Editing w/ Atom The atom.io editor is pretty great. You can use atom for jekyll development in a convenient way:

  1. open a terminal, navigate to the project root, and then ./run.sh to start the jekyll process.
  2. open atom, then open that root directory (clover-O on OSX).
  3. [one time]: install package that will do html previews (i.e., watch the html file and reload it if it changes, also render it as it appears in a web browser). @pearsonca uses "Atom Html Preview" package.
  4. open _site/index.html in atom, then activate preview of that page. You may close the editing tab for index.html
  5. restrictions: html preview may not support all browser capabilities (e.g., no back button)

As you develop, jekyll will update the rendered files, and the preview plugin will reload them. @pearsonca : I expect that there will soon be a plugin that also addresses the jekyll startup + provides the terminal output (e.g., when regens occur) in-editor.

stdio-ghana.github.io's People

Contributors

pearsonca avatar seifu avatar dbmcpherson avatar arkerpay avatar jamrootz avatar tjhladish avatar xixis avatar skillfulfranco avatar alorwu avatar boadu avatar mzarlington avatar gadawusu avatar gafar-yahaya avatar knoxygash avatar raymoej avatar alfredafutu avatar daakyehemaa avatar stevandoh avatar onyekam avatar amoateng avatar joenzy avatar

Watchers

James Cloos avatar  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.