PHP Classes
elePHPant
Icontem

File: docs/mk-html.sh

Recommend this page to a friend!
  Classes of Barton Phillips  >  PHP Site Class  >  docs/mk-html.sh  >  Download  
File: docs/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: 4 months ago
Size: 1,097 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="dbTables";
/usr/bin/pandoc -f markdown_github -t html5 -Vpagetitle="$pagetitle" -Vmath="$css" -s dbTables.md -o dbTables.html
pagetitle="Examples";
/usr/bin/pandoc -f markdown_github -t html5 -Vpagetitle="$pagetitle" -Vmath="$css" -s examples.md -o examples.html
pagetitle="SiteClass Methods";
/usr/bin/pandoc -f markdown_github -t html5 -Vpagetitle="$pagetitle" -Vmath="$css" -s siteclass.md -o siteclass.html
pagetitle="Additional Files";
/usr/bin/pandoc -f markdown_github -t html5 -Vpagetitle="$pagetitle" -Vmath="$css" -s files.md -o files.html
pagetitle="Analysis";
/usr/bin/pandoc -f markdown_github -t html5 -Vpagetitle="$pagetitle" -Vmath="$css" -s analysis.md -o analysis.html
pagetitle="Testing";
/usr/bin/pandoc -f markdown_github -t html5 -Vpagetitle="$pagetitle" -Vmath="$css" -s testing.md -o testing.html