mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-24 15:44:59 +08:00
Changes to website:
+ Makefile: rebuild examples if 'demos' changes + New syntax for docbook2odf example + New --toc examples for HTML and RST git-svn-id: https://pandoc.googlecode.com/svn/trunk@674 788f1e2b-df1e-0410-8736-df70ead52e1b
This commit is contained in:
+1
-1
@@ -10,7 +10,7 @@ clean:
|
||||
for file in $(ALL); do rm $$file; done; \
|
||||
rm -r example*;
|
||||
|
||||
examples.txt : $(PANDOC_DEPS) mkdemos.pl config.xsl S5DEMO README
|
||||
examples.txt : $(PANDOC_DEPS) mkdemos.pl config.xsl S5DEMO README demos
|
||||
PATH=$(PANDOC_PATH):$$PATH ./mkdemos.pl demos $@
|
||||
perl -pi -e 's!(href="(main|(my)?header|footer|example\d+)\.(html|tex|xml|css))"!\1.html"!g' $@
|
||||
for file in $$(ls | egrep '(main|(my)?header|footer|example[0-9]+)\.(html|tex|xml|css)$$'); \
|
||||
|
||||
@@ -7,9 +7,9 @@ click on the name of the output file:
|
||||
|
||||
@ pandoc README -o example1.html
|
||||
|
||||
2. Standalone HTML file:
|
||||
2. Standalone HTML file with table of contents:
|
||||
|
||||
@ pandoc -s -S README -o example2.html
|
||||
@ pandoc -s --toc README -o example2.html
|
||||
|
||||
3. HTML with smart quotes, CSS, and custom header and footer:
|
||||
|
||||
@@ -25,7 +25,7 @@ click on the name of the output file:
|
||||
|
||||
6. reStructuredText:
|
||||
|
||||
@ pandoc -s -w rst README -o example6.text
|
||||
@ pandoc -s -w rst --toc README -o example6.text
|
||||
|
||||
7. Rich text format (RTF):
|
||||
|
||||
@@ -45,7 +45,7 @@ click on the name of the output file:
|
||||
|
||||
11. ODF (open document format) via DocBook and [docbook2odf]:
|
||||
|
||||
@ docbook2odf --input-file example9.db --output-file example11.odf
|
||||
@ docbook2odf example9.db --output-file example11.odf
|
||||
|
||||
12. Man page:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user