Code Monkey home page Code Monkey logo

books-v2's Introduction

senseBox version 2 Books

This repository contains the gitbook sources for the documentation and OER regarding the second version of senseBox (for first version of senseBox see here).

There are seperate branches for editing each book inside this repository. There are four books until now:

There is also a gh-pages branch, where all the builded gitbooks are stored 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.

Contribution

Development environment

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

Command line

To live-preview or render a book, you need the npm package gitbook-cli. Install it by running npm i -g gitbook-cli. If that does not work or you do not have npm, have a look at the official documentation. 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

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 far 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 triggers 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 mpfeil avatar thiemann96 avatar wpatrycja0 avatar

Stargazers

 avatar

Watchers

 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.