Eelis / cxxdraft-htmlgen

Generates https://eel.is/c++draft
Other
165 stars 12 forks source link

Introduction

cxxdraft-htmlgen parses the LaTeX sources of the draft, and generates static HTML pages from them.

Prerequisites

Usage

Do: git clone https://github.com/Eelis/cxxdraft-htmlgen.git cd cxxdraft-htmlgen cabal build dist/build/cxxdraft-htmlgen/cxxdraft-htmlgen path/to/draft [sectionfilestyle]

Or with stack: stack build stack exec cxxdraft-htmlgen path/to/draft [sectionfilestyle]

The sectionfilestyle parameter is one of:

Bare            (to generate e.g. intro.execution)
WithExtension   (to generate e.g. intro.execution.html)
InSubdir        (to generate e.g. intro.execution/index.html)

The default is WithExtension, since this is suitable for direct browsing on a filesystem without a web server.

Bare may be used in conjunction with web server configuration specifying a default text/html mime type for the directory containing the section pages, to get URLs such as:

temp.res#temp.dep
temp.dep#3

InSubdir only requires defaulting to index.html, to give:

temp.res/#temp.dep
temp.dep/#3

Custom draft branch

While cxxdraft-htmlgen works with the official draft sources as-is, better results can be obtained by using the following branch:

https://github.com/Eelis/draft/tree/cxxdraft-htmlgen-fixes

This branch tracks the official draft sources, but makes some changes to:

Output

The following will be created in ./14882/ :

Hidden links

On any page: