From 2745fd9e88279b38480639f0b969705f3e0f29d5 Mon Sep 17 00:00:00 2001 From: othree Date: Sat, 4 Aug 2018 00:03:36 +0800 Subject: [PATCH] Reorganize Makefile --- .gitmodules | 3 - Makefile | 18 +- footer.html | 47 -- general_footer.html | 25 - index.html | 647 +++++------------ js/han.js | 1269 ---------------------------------- js/jquery-2.0.3.min.js | 6 - resources.html | 91 +-- header.html => template.html | 26 + 9 files changed, 230 insertions(+), 1902 deletions(-) delete mode 100644 .gitmodules delete mode 100644 footer.html delete mode 100644 general_footer.html delete mode 100644 js/han.js delete mode 100644 js/jquery-2.0.3.min.js rename header.html => template.html (61%) diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index 7e554d9..0000000 --- a/.gitmodules +++ /dev/null @@ -1,3 +0,0 @@ -[submodule "Han"] - path = Han - url = git://github.com/ethantw/Han.git diff --git a/Makefile b/Makefile index bee312c..40cbef5 100644 --- a/Makefile +++ b/Makefile @@ -1,17 +1,9 @@ all: index.html resources.html +.PHONY: all -index.html: header.html footer.html content.html - cat header.html content.html footer.html > index.html +index.html: template.html syntax.md + cat template.html | perl -pe 's/\{\{\ *CONTENT\ *\}\}/`pandoc syntax.md`/ge' > index.html -resources.html: header.html general_footer.html resources_content.html - cat header.html resources_content.html general_footer.html > resources.html - -content.html: syntax.md - perl Markdown_1.0.1/Markdown.pl syntax.md > content.html - -resources_content.html: resources.md - perl Markdown_1.0.1/Markdown.pl resources.md > resources_content.html - -clean: - rm index.html resources.html content.html resources_content.html +resources.html: template.html resources.md + cat template.html | perl -pe 's/\{\{\ *CONTENT\ *\}\}/`pandoc resources.md`/ge' > resources.html diff --git a/footer.html b/footer.html deleted file mode 100644 index 74fe9da..0000000 --- a/footer.html +++ /dev/null @@ -1,47 +0,0 @@ - - - - -
- -
- - - -
- - - - - - - - - - diff --git a/general_footer.html b/general_footer.html deleted file mode 100644 index c18db3b..0000000 --- a/general_footer.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - diff --git a/index.html b/index.html index 2664f20..d28129a 100644 --- a/index.html +++ b/index.html @@ -22,16 +22,13 @@
-

Markdown文件

- -

Markdown

- -

NOTE: This is Traditional Chinese Edition Document of -Markdown Syntax. If you are seeking for English Edition -Document. Please refer to Markdown: Syntax.

- -

Markdown: Syntax

+

Markdown文件

+
+Markdown
Markdown
+
+

NOTE: This is Traditional Chinese Edition Document of Markdown Syntax. If you are seeking for English Edition Document. Please refer to Markdown: Syntax.

+

Markdown: Syntax

- -
- -
- - -