Skip to content

transpect/transpect.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

transpect.github.io

Author: Martin Kraetke

The HTML pages of transpect.github.io are generated automatically with XSLT/XProc-based scripts from a source DocBook file where the content is stored. The DocBook XML is splitted into chunks and converted into HTML. Each HTML chunk is inserted into an HTML template, which use the Materialize CSS framework, an implementation of Googles Material Design.

prerequisites

  • Java 1.7 or later
  • XML Calabash

edit the content

The content is stored as DocBook XML file in the source directory. You have to follow some markup conventions in DocBook.

  • Each part represents an main nav entry in the left nav bar.
  • Every part must contain at least one chapter element representing a single web page. The chapter element must include an @xml:base attribute indicating the filename of the HTML page.
<part>
  <title>About</title>
  <chapter xml:base="index.html">
    <title>transpect</title>
    <subtitle>A open source framework for converting and checking data</subtitle>
    <!-- (…) --> 
  </chapter>
</part>
  • If a 'part' contains multiple chapter elements, then a dropdown with the corresponding entries is generated. The dropdown title is the part title and the subentries are the chapter titles.
  • section elements below a chapter are automatically connected witht the left mini-toc.

build the website

  • Checkout the repository with Git and change into the directory.
$ git clone https://github.com/transpect/transpect.github.io.git website
$ cd website

Execute the XProc build script with XML Calabash

$ ./calabash/calabash.sh xpl/build.xpl

If you want to request GitHub for updated transpect modules, you have to add the option sync=yes. Unfortunately, GitHub limits API requests to 60 per hour. To bypass this limitation, you can obtain a personal access token from your GitHub personal settings and add the value to the option named token.

$ ./calabash/calabash.sh xpl/build.xpl sync=yes token=123456

Commit HTML and DocBook with Git.

$ git add *.html source/source.dbk
$ git commit -m 'update website'
$ git push