From fb0274fe2c93e4dcb44a6b82b8e9fd6bf483c982 Mon Sep 17 00:00:00 2001 From: Michael Beckerle Date: Wed, 15 Oct 2025 19:20:55 -0400 Subject: [PATCH 01/10] Checkpoint on getting pandoc to work Pandoc will convert markdown to pdf. By some cleverness we can get the same markdown file to both create the daffodil-site HTML page via jekyl, and create PDF doc via pandoc. Requires a make command in the _pandoc directory. It then searches for markdown files with `pdf: true` and converts those to pdf in the site/pdf directory. DAFFODIL-3044 --- site/_data/footer.yml | 8 + site/_includes/themes/apache/footer.html | 18 +- site/_pandoc/Makefile | 59 +++++ site/_pandoc/README.md | 223 ++++++++++++++++++ site/_pandoc/basic.yaml | 6 + site/_pandoc/list-pdf-sources.awk | 59 +++++ site/_pandoc/template_basic.tex | 138 +++++++++++ site/_pandoc/unwrap-pandoc.awk | 36 +++ .../themes/apache/img/asf_logo_wide.png | Bin 0 -> 43223 bytes site/dfdl-extensions.md | 22 +- site/example-for-pdf.md | 98 ++++++++ 11 files changed, 646 insertions(+), 21 deletions(-) create mode 100644 site/_data/footer.yml create mode 100644 site/_pandoc/Makefile create mode 100755 site/_pandoc/README.md create mode 100644 site/_pandoc/basic.yaml create mode 100644 site/_pandoc/list-pdf-sources.awk create mode 100755 site/_pandoc/template_basic.tex create mode 100644 site/_pandoc/unwrap-pandoc.awk create mode 100644 site/assets/themes/apache/img/asf_logo_wide.png create mode 100755 site/example-for-pdf.md diff --git a/site/_data/footer.yml b/site/_data/footer.yml new file mode 100644 index 00000000..52c64ae8 --- /dev/null +++ b/site/_data/footer.yml @@ -0,0 +1,8 @@ +org_name: "The Apache Software Foundation" +org_url: "https://www.apache.org" +license_name: "Apache License, Version 2.0" +copyright_year: "2025" +license_url: "https://www.apache.org/licenses/LICENSE-2.0" +trademark_text: "Apache, Apache Daffodil, Daffodil, and the Apache Daffodil logo are trademarks of The Apache Software Foundation." +daffodil_logo: ../assets/themes/apache/img/apache-daffodil-logo.png +asf_logo: ../assets/themes/apache/img/asf_logo_wide.png diff --git a/site/_includes/themes/apache/footer.html b/site/_includes/themes/apache/footer.html index 2a0b2ed1..ef003e0b 100644 --- a/site/_includes/themes/apache/footer.html +++ b/site/_includes/themes/apache/footer.html @@ -1,16 +1,14 @@