Git Product home page Git Product logo

books-v2's Introduction

senseBox version 2 Books

This repository contains the gitbook sources for the documentation and OER regarding only the second version of senseBox that comes with the senseBox MCU instead of Arduino/Genuino Uno.

senseBox v2 uses sensebox MCU

There are seperate branches for each book inside this repository. These books are gitbooks consisting of markdown files. There are four books until now:

Additionally, there is a gh-pages branch. This is where all the builded gitbooks are stored as static html files and hosted from.

To avoid redundant data all pictures used in all senseBox books are stored in one single pictures-folder in the gh-pages branch instead of directly inside each book branch.

Contribution

Development environment

We use the node.js-based tool GitBook for rendering of the content.

Setup of Gitbook

To live-preview or render a book, you need the npm package gitbook-cli. Follow these instructions or have a look at the official documentation.

  1. Install node.js and npm package.
 # Mac OSX.
 $ brew install node npm

 # Ubuntu.
 $ sudo apt-get install nodejs npm
  1. Install n with npm.
 $ sudo npm install n -g
  1. Downgrade node.js to v5.12.0. (see Build error with node v6 · Issue #1)
 $ n 5.12.0        
  1. Install gitbook-cli package.
 $ sudo npm install -g gitbook-cli

Clone this repository with the following command:

$ git clone https://github.com/sensebox/books-v2.git

to your computer. Change into the created folder with:

$ cd books-v2

Live preview

To get a live preview of a books website-output, run:

gitbook install   # only required once
gitbook serve

Export as PDF

To get a PDF version of a book you need to follow these instructions in addition to the setup of github (see above):

  1. Install necessary package with npm.
 $ gitbook install
  1. Check version.
 $ gitbook -V
CLI version: 2.3.0
GitBook version: 3.1.1
  1. Install calibre for build pdf, epub and mobi.

  2. Link calibre command line tool.

 # neccessary in Mac OSX only
 $ ln -s /Applications/calibre.app/Contents/MacOS/ebook-convert /usr/local/bin/
  1. Run the following commands:
git checkout <BRANCH_NAME> # use either `home` or `edu` as branch_name
gitbook ./ <BOOK_NAME>.pdf  # choose your pdf name here

Render to disk

GitBook provides the output formats website, pdf and ebook. To render a book run:

gitbook install   # only required once

gitbook build     # build the website
gitbook pdf       # build the pdf
gitbook epub      # build the ebook

Repository structure

Each (multilingual) book resides on its own branch. Currently these are edu,home, osem and blockly, each containing a de and en language book.

The german versions have more content, while the english versions are steadily supplemented from there.

Files that are parsed specially by GitBook have a filename in caps:

  • LANGS.md: defines the languages of a multilingual book
  • README.md: the landingpage of a book, eg an introduction
  • SUMMARY.md: the table of contents, rendered as the left navbar
  • GLOSSARY.md: a glossary, whose terms are referenced on all other book pages
  • FOOTER.md: the page footer on any page

Stylesheets applied on all books are in ./styles, and are symlinked into each book (unix only).

Deployment

Currently the books are built and hosted by gitbook.com. A commit on each of the branches does not automatically trigger a new build of the book there. Instead the builds of a book will be renewed by senseBox staff. Please keep in mind, to store all pictures in the gh-pages branch and not in the book's branch itself.

The pdf builds however are built on travis to support custom cover pages. These builds are autocommited into the gh-pages branch.

License

See LICENSE file.

books-v2's People

Contributors

bkari02 avatar mariopesch avatar mpfeil avatar thiemann96 avatar wpatrycja0 avatar yhallowiegeht avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

books-v2's Issues

Intelligente Strassenbelechtung Unterrichtseinheit

Unterrichtseinheit fuer das Futurium erstellen. Direkt in die Books integrieren als Beispiel, Thomas nimmt dann aus den Books den Content und passt es an das Design vom Futurium an und schickt es denen.

Deadline: Ende August

Mit Hilfe des Temperatursensors eine Klimaanlage steuern

Unterrichtseinheit fuer das Futurium erstellen. Direkt in die Books integrieren als Beispiel, Thomas nimmt dann aus den Books den Content und passt es an das Design vom Futurium an und schickt es denen.

Deadline: Ende August

Feinstaubmessung Unterrichtseinheit

Unterrichtseinheit fuer das Futurium erstellen. Direkt in die Books integrieren als Beispiel, Thomas nimmt dann aus den Books den Content und passt es an das Design vom Futurium an und schickt es denen.

Deadline: Ende August

:home-Buch Registrierung per LAN-Bee

In Schritt 6 im senseBox:Home Buch wird im Abschnitt "Arduino-Code auf die senseBox laden" erklärt wie mit den verschiedenen Bees vorzugehen ist. Hier fehlt die Lora Erklärung und die Erklärung fürs LAN-Bee / Ethernet-Bee ist falsch (ist einfach copy+paste vom WiFi-Bee übernommen worden). Hier muss korrigiert/ergänzt werden.

Korrekturlesen

Ab und zu drüber schauen und Korrekturen einpflegen / Rückfragen und Issues schreiben.

Umweltmessstation Unterrichtseinheit

Unterrichtseinheit fuer das Futurium erstellen. Direkt in die Books integrieren als Beispiel, Thomas nimmt dann aus den Books den Content und passt es an das Design vom Futurium an und schickt es denen.

Deadline: Ende August

Schrittzaehler Unterrichtseinheit

Unterrichtseinheit fuer das Futurium erstellen. Direkt in die Books integrieren als Beispiel, Thomas nimmt dann aus den Books den Content und passt es an das Design vom Futurium an und schickt es denen.

Deadline: Ende August

Wortliste erstellen

Jeder verwendet unterschiedliche Begriffe. Eine Wortliste muss eingeführt und gepflegt werden.

Verkerhszaehler Unterrichtseinheit

Unterrichtseinheit fuer das Futurium erstellen. Direkt in die Books integrieren als Beispiel, Thomas nimmt dann aus den Books den Content und passt es an das Design vom Futurium an und schickt es denen.

Deadline: Ende August

Changing Values on Display for :home

Jemand kann für den Display dokumentieren wie man baut, dass der die Werte hintereinander angezeigt werden. Es gibt doch einige die n Display zur home kaufen. Den Code gibts auch schon, bei mir Nachfragen.

Erste Schritte 4: Anschluss und Verkabelung (:edu)

  • Einfache Grundlagen, wo stecke ich das USB-Kabel rein, wie stecke ich Sensoren auf, wie stecke ich Bees auf (mit Bilder), was macht der Reset Knopf, warum gibt es verschiedene Buchsen und was sonst noch einfällt. (am besten mit vielen Bildern)

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.