2017 © Pedro Peláez
 

library bookdown-template

Bookdown.io With Bootswatch Styles And Prism Syntax Highlighting

image

prooph/bookdown-template

Bookdown.io With Bootswatch Styles And Prism Syntax Highlighting

  • Tuesday, August 22, 2017
  • by prooph
  • Repository
  • 3 Watchers
  • 3 Stars
  • 7,932 Installations
  • PHP
  • 23 Dependents
  • 0 Suggesters
  • 5 Forks
  • 0 Open issues
  • 7 Versions
  • 8 % Grown

The README.md

Bookdown.io With Bootswatch Styles And Prism Syntax Highlighting

If you generate your documentation with bookdown and want some nice styles and syntax highlighting for your code blocks, then this package come to the rescue :)., (*1)

Credits

This template is based on https://github.com/tobiju/bookdown-bootswatch-templates., (*2)

Installation

Installation of this library uses Composer. For Composer documentation, please refer to getcomposer.org., (*3)

Put the following into your composer.json or run composer require prooph/bookdown-template., (*4)

{
    "require-dev": {
        "prooph/bookdown-template": "^0.2.0"
    }
}

Put the following into your bookdown.json, (*5)

{
    ...
    "template": "../vendor/prooph/bookdown-template/templates/main.php"
}

Styles

Choose your preferred style by setting the CSS_BOOTSWATCH and CSS_PRISM environment variable before generating the book. The default Bootswatch style is cerulean and for Prism ghcolors. See the example below how to use another style., (*6)

Visit bootswatch.com to see how the style looks like., (*7)

  • cerulean
  • cosmo
  • cyborg
  • darkly
  • flatly
  • journal
  • lumen
  • paper
  • readable
  • sandstone
  • simplex
  • slate
  • spacelab
  • superhero
  • united
  • yeti

Visit prismjs.com / prism-styles to see how the Prism style looks like., (*8)

  • prism
  • dark
  • funky
  • okaidia
  • twilight
  • coy
  • atom-dark
  • base16-ateliersulphurpool.light
  • cb
  • ghcolors
  • hopscotch
  • pojoaque
  • xonokai

To add an individual logo instead of displaying Home you can set the environment variable MENU_LOGO which must be an absolute URI to an image., (*9)

Further Information

The Versions

22/08 2017

dev-master

9999999-dev http://getprooph.org/

Bookdown.io With Bootswatch Styles And Prism Syntax Highlighting

  Sources   Download

BSD-3-Clause

The Requires

 

documentation markdown syntax templates docs static site docbook highlighting manual bookdown

22/08 2017

v0.3.0

0.3.0.0 http://getprooph.org/

Bookdown.io With Bootswatch Styles And Prism Syntax Highlighting

  Sources   Download

BSD-3-Clause

The Requires

 

documentation markdown syntax templates docs static site docbook highlighting manual bookdown

18/12 2016

v0.2.3

0.2.3.0 http://getprooph.org/

Bookdown.io With Bootswatch Styles And Prism Syntax Highlighting

  Sources   Download

BSD-3-Clause

The Requires

 

documentation markdown syntax templates docs static site docbook highlighting manual bookdown

18/12 2016

v0.2.2

0.2.2.0 http://getprooph.org/

Bookdown.io With Bootswatch Styles And Prism Syntax Highlighting

  Sources   Download

BSD-3-Clause

The Requires

 

documentation markdown syntax templates docs static site docbook highlighting manual bookdown

16/12 2016

v0.2.1

0.2.1.0 http://getprooph.org/

Bookdown.io With Bootswatch Styles And Prism Syntax Highlighting

  Sources   Download

BSD-3-Clause

The Requires

 

documentation markdown syntax templates docs static site docbook highlighting manual bookdown

15/12 2016

v0.2.0

0.2.0.0 http://getprooph.org/

Bookdown.io With Bootswatch Styles And Prism Syntax Highlighting

  Sources   Download

BSD-3-Clause

The Requires

 

documentation markdown syntax templates docs static site docbook highlighting manual bookdown

15/12 2016

v0.1.0

0.1.0.0 http://getprooph.org/

Bookdown.io With Bootswatch Styles And Prism Syntax Highlighting

  Sources   Download

BSD-3-Clause

The Requires

 

documentation markdown syntax templates docs static site docbook highlighting manual bookdown