Skip to content
forked from LCAV/dsp-labs

GitBook for COM-303 Practical Sessions at EPFL.

License

Notifications You must be signed in to change notification settings

isdabelle/dsp-labs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DSP labs

Viewing material from GitHub

Go here. Note that plug-in material won't render properly, e.g. equations.

Building/viewing gitbook locally

You'll need npm.

Install the gitbook client if you haven't already:

$ npm install gitbook-cli -g

Copy the repository and run the following commands from the top directory:

$ gitbook install
$ gitbook serve

Go to: http://localhost:4000

GitBook instructions (from scratch)

Installation instructions.

$ npm install gitbook-cli -g

Create new directory

$ mkdir my-book
$ cd my-book
$ gitbook init

To preview the book and make live edits:

$ gitbook serve

To build static website:

$ gitbook build

To have separate documentation and code, create a book.json file with the following content:

{
    "root": "./docs"
}

and place all files inside a folder called 'docs'.

Adding math

Add the following line to your book.json file:

{
    "plugins": ["mathjax"]
}

If you are exporting to PDF, you will find a bug when using this version of mathjax (as of 11 Dec 2018). This fix consists of using a forked version of mathjax, namely:

{
    "plugins": ["mathjax@https://github.com/OrgVue/gitbook-plugin-mathjax.git#speech-fix"]
}

and installing the following package:

$ npm install svgexport -g

Install the plugin from within your gitbook directory

$ gitbook install

More info.

Converting LaTeX to Markdown

Pandoc is a great tool for this. For small sections, the online tool is generally sufficient.

Adding drop-down menu for sidebar

Add the following plug-in to your book.json file:

{
    "plugins": ["expandable-chapters"]
}

Install the plug-in by running:

$ gitbook install

More info.

Highlighted boxes (for tasks)

See here.

Adding Disqus commands

You'll need to make a Disqus account if you don't already have one.

Edit the book.json file as described here.

Install the plug-in by running:

$ gitbook install

Adding custom favicon

See here.

Adding TOC to page

See here.

About

GitBook for COM-303 Practical Sessions at EPFL.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%