From 4cf7cc1a49fd979d70652ff68be3191e1a2fff6b Mon Sep 17 00:00:00 2001 From: Kerby Martino Date: Tue, 29 Apr 2025 08:22:57 +0800 Subject: [PATCH] Remove standalone HTML file and refactor formatting doc integration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replaced the static `formatdoc.html` with a modular approach using Liquid templates (`_includes/format_doc.liquid`) and Markdown configuration (`pages/formatdoc.md`). This improves maintainability and aligns with the site’s templating system. --- _includes/format_doc.liquid | 7 +++++++ formatdoc.html | 33 --------------------------------- pages/formatdoc.md | 6 ++++++ 3 files changed, 13 insertions(+), 33 deletions(-) create mode 100644 _includes/format_doc.liquid delete mode 100644 formatdoc.html create mode 100644 pages/formatdoc.md diff --git a/_includes/format_doc.liquid b/_includes/format_doc.liquid new file mode 100644 index 0000000..9428207 --- /dev/null +++ b/_includes/format_doc.liquid @@ -0,0 +1,7 @@ +

+ Blank lines separate paragraphs.

+ Text surrounded by asterisks is italicized. To get a literal asterisk, use \* or **.

+ Text after a blank line that is indented by two or more spaces is reproduced verbatim. (This is intended for code.)

+ Urls become links, except in the text field of a submission.

+ If your url gets linked incorrectly, put it in <angle brackets> and it should work. +

\ No newline at end of file diff --git a/formatdoc.html b/formatdoc.html deleted file mode 100644 index 2f641d9..0000000 --- a/formatdoc.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - Formatting Options - Behind the Desk - - - -
-
-

- Blank lines separate paragraphs.

- Text surrounded by asterisks is italicized. To get a literal asterisk, use \* or **.

- Text after a blank line that is indented by two or more spaces is reproduced verbatim. (This is intended for code.)

- Urls become links, except in the text field of a submission.

- If your url gets linked incorrectly, put it in <angle brackets> and it should work. -

-
-
- - diff --git a/pages/formatdoc.md b/pages/formatdoc.md new file mode 100644 index 0000000..4a80e79 --- /dev/null +++ b/pages/formatdoc.md @@ -0,0 +1,6 @@ +--- +layout: simple +title: Formatting Options +permalink: /formatdoc/ +--- +{% include format_doc.liquid %} \ No newline at end of file