PHP Classes
elePHPant
Icontem

File: mk-html.sh

Recommend this page to a friend!
  Classes of Barton Phillips  >  PHP Site Class  >  mk-html.sh  >  Download  
File: mk-html.sh
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Site Class
Create database driven Web sites
Author: By
Last change: modified: docs/mk-html.sh
modified: includes/SiteClass.class.php
modified: includes/database-engines/dbSqlite.class.php
modified: mk-html.sh
Date: 6 months ago
Size: 570 bytes
 

Contents

Class file image Download
#!/bin/bash
# !!! You need pandoc: sudo apt-get install pandoc

css='
<style>
div.sourceCode {
  background-color: #EEF3E2;
  border-left: 10px solid gray;
  padding-left: 5px;
}
code {
  background-color: #EEF3E2;
}
</style>
';

# Make .html files from .md files
pagetitle="Main Readme file";
/usr/bin/pandoc -Vpagetitle="$pagetitle" -Vmath="$css" -s -f markdown_github -t html5 README.md -o README.html
pagetitle="Examples Document";
/usr/bin/pandoc -s -Vpagetitle="$pagetitle" -Vmath="$css" -o examples/EXAMPLES.html -f markdown_github -t html5 examples/EXAMPLES.md