Skip to content

tobiju/Bookdown.Bookdown

 
 

Repository files navigation

Bookdown

WARNING: This project is incomplete and still under heavy development. Use at your own risk.

Scrutinizer Code Quality Code Coverage Build Status

Bookdown generates DocBook-like HTML output using Markdown and JSON files instead of XML.

Bookdown is especially well-suited for publishing project documentation to GitHub Pages.

Read more about it at http://bookdown.io.

Tests

Bookdown has 100% test coverage. To run the tests, install PHPUnit, then issue phpunit at the repository root.

Todo

(In no particular order.)

  • new bookdown.json elements

    • "tocdepth": indicates how many levels to show on the table of contents

    • "numbering": indicates how to number the pages at this level (decimal, upper-alpha, lower-alpha, upper-roman, lower-roman)

    • "authors": name, note, email, and website of book authors

    • "editors": name, note, email, and website of book editors

    • "copyright": year and holder

    • "beforeToc": indicates a Markdown file to place on the index page before the TOC

    • "afterToc": indicates a Markdown file to place on the index page after the TOC

    • "subtitle": indicates a subtitle on an index page

  • navigational elements

    • sidebar of siblings at the current level

    • breadcrumb-trail of parents leading to the current page

  • features

    • Automatically add a "date/time generated" value to the root config object and display on the root page

    • Display authors, editors, etc. on root page

    • A command to take a PHPDocumentor structure.xml file and convert it to a Bookdown origin structure (Markdown files + bookdown.json files)

    • A process to rewrite links on generated pages (this is for books collected from multiple different sources, and for changing origin *.md links to target *.html links)

    • A process to copying images and other resources from the origin to the target directory

    • Pre-process and post-process behavior to copy and/or remove site files

    • Treat the root page as different from other indexes, allow it to be a nice "front page" for sites

About

Core libraries for Bookdown generation.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%