Giter Site home page Giter Site logo

tgraham-antenna / transpect.github.io Goto Github PK

View Code? Open in Web Editor NEW

This project forked from transpect/transpect.github.io

0.0 0.0 0.0 3.99 MB

transpect github.io page

Home Page: http://transpect.io

HTML 98.65% CSS 0.99% JavaScript 0.03% XProc 0.09% XSLT 0.25%

transpect.github.io's Introduction

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

transpect.github.io's People

Contributors

mkraetke avatar gimsieke avatar pidugusundeep avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.