Sfoglia il codice sorgente

update the makefile & head template

Fengda HUANG 10 anni fa
parent
commit
a7f85e14f9
3 ha cambiato i file con 19 aggiunte e 7 eliminazioni
  1. 7 5
      Makefile
  2. 6 1
      index.html
  3. 6 1
      template/head.html

+ 7 - 5
Makefile

@@ -1,9 +1,11 @@
-all: 
-	pandoc -s -V geometry:margin=1in --number-sections --highlight-style pygments -S --toc -c css/vendor.css -B template/headpdf.html src/pre/*.md src/*.md -o build/pdf.html
+all:
 	pandoc -s -V geometry:margin=1in --number-sections --highlight-style pygments -S --toc -c css/vendor.css -B template/head.html src/pre/*.md src/*.md -o index.html
+
+iot:
+	pandoc -s -V geometry:margin=1in --number-sections --highlight-style pygments -S --toc -c css/vendor.css -B template/head.html end/iot.md -o iot.html 
+
+release:
+	pandoc -s -V geometry:margin=1in --number-sections --highlight-style pygments -S --toc -c css/vendor.css -B template/headpdf.html src/pre/*.md src/*.md -o build/pdf.html
 	pandoc --template=template/template.tex build/pdf.html -o build/iot.pdf --latex-engine=xelatex
 	pandoc index.html -o build/designiot.epub
 	pandoc index.html -o build/designiot.mobi
-	
-iot:
-	pandoc -s -V geometry:margin=1in --number-sections --highlight-style pygments -S --toc -c css/vendor.css -B template/head.html end/iot.md -o iot.html 

+ 6 - 1
index.html

@@ -51,7 +51,12 @@ code > span.er { color: #ff0000; font-weight: bold; }
 				</td>
 			</tr>
 		</table>
-		其他:<a href="http://designiot.phodal.com/iot.html" title="基于REST服务的最小物联网系统设计">基于REST服务的最小物联网系统设计</a>
+		毕业论文:<a href="http://designiot.phodal.com/iot.html" title="基于REST服务的最小物联网系统设计">基于REST服务的最小物联网系统设计</a>
+<p><strong>下载PDF版</strong>:<a href="http://designiot.phodal.com/build/iot.pdf">http://designiot.phodal.com/build/iot.pdf</a></p>
+
+<p><strong>下载EPUB版</strong>:<a href="http://designiot.phodal.com/build/designiot.epub">http://designiot.phodal.com/build/designiot.epub</a></p>
+<p><strong>下载MOBI版</strong>:<a href="http://designiot.phodal.com/build/designiot.mobi">http://designiot.phodal.com/build/designiot.mobi</a></p>
+
 		<h2>一步步搭建物联网系统</h2>
 		<script>
 		(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){

+ 6 - 1
template/head.html

@@ -21,7 +21,12 @@
 				</td>
 			</tr>
 		</table>
-		其他:<a href="http://designiot.phodal.com/iot.html" title="基于REST服务的最小物联网系统设计">基于REST服务的最小物联网系统设计</a>
+		毕业论文:<a href="http://designiot.phodal.com/iot.html" title="基于REST服务的最小物联网系统设计">基于REST服务的最小物联网系统设计</a>
+<p><strong>下载PDF版</strong>:<a href="http://designiot.phodal.com/build/iot.pdf">http://designiot.phodal.com/build/iot.pdf</a></p>
+
+<p><strong>下载EPUB版</strong>:<a href="http://designiot.phodal.com/build/designiot.epub">http://designiot.phodal.com/build/designiot.epub</a></p>
+<p><strong>下载MOBI版</strong>:<a href="http://designiot.phodal.com/build/designiot.mobi">http://designiot.phodal.com/build/designiot.mobi</a></p>
+
 		<h2>一步步搭建物联网系统</h2>
 		<script>
 		(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){