Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
executable file 26 lines (22 sloc) 1.04 KB
#!/bin/bash
pages=( tech_intro manifest app_repo web_or_native mobile verification security integration )
titles=( "Introduction" "Application Manifests" "Application Repositories" "Web vs. Browser Repositories" "Mobile Platforms" "Registered and Paid Apps" "Security and Privacy" "Integration Between Apps" )
count=0
for page in ${pages[@]}
do
echo "<html><head><title>Open Web Applications: " > $page.html
echo ${titles[${count}]} >> $page.html
echo "</title>" >> $page.html
cat techSiteHeader.html >> $page.html
echo "<style>.nav$page {font-weight:bold}</style>" >> $page.html
markdown `echo $page | tr "[:lower:]" "[:upper:]"`.md >> $page.html
cat techSiteFooter.html >> $page.html
count=$count+1
done
echo "<html><head><title>Installable Web Applications</title>" > oneFile.html
echo "<link href='techsite.css' media='screen' rel='stylesheet' type='text/css' /></head><body><div class='docs'>" >> oneFile.html
for page in ${pages[@]}
do
markdown `echo $page | tr "[:lower:]" "[:upper:]"`.md >> oneFile.html
done
cat techSiteFooter.html >> oneFile.html
Something went wrong with that request. Please try again.