Skip to content

Commit

Permalink
fix some more issues from pandoc#19 (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisfenner authored Sep 17, 2022
1 parent 7818899 commit c2bc8e5
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 58 deletions.
52 changes: 0 additions & 52 deletions Dockerfile

This file was deleted.

10 changes: 8 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ runs:
's/^---$/\\newpage/g;1s/\\newpage/---/g'
${{ inputs.input-md }}
shell: sh
# Transform sections before the table of contents into addsec, which does not number them.
# While we're doing this, transform the case to all-caps.
- run: >
sed -i
'/0/,/\\tableofcontents/s/^# \(.*\)/\\addsec\{\U\1\}/g'
${{ inputs.input-md }}
shell: sh
# Grab the date from the front matter and generate the full date and year.
- run: |
DATE=$(grep date: ${{ inputs.input-md }} | head -n 1 | cut -d ' ' -f 2)
Expand All @@ -63,7 +70,7 @@ runs:
--filter=pandoc-crossref
--resource-path=.:/resources
--data-dir=/resources
--toc
--top-level-division=section
--variable=block-headings
--variable=numbersections
--variable=table-use-row-colors
Expand All @@ -74,7 +81,6 @@ runs:
--metadata=logo:/resources/img/tcg.png
--metadata=titlepage-rule-height:0
--metadata=colorlinks:true
--metadata=toc-own-page:true
--metadata=contact:[email protected]
--from=markdown+implicit_figures
--to=pdf
Expand Down
11 changes: 9 additions & 2 deletions sample1.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ title: "Lorem Ipsum Platform Dolor Sit Amet Profile for TPM 2.0"
version: 0.1
revision: 196
date: 2022/8/2
type: SPECIFICATION
type: REFERENCE
status: DRAFT
lot: true
...

---
Expand Down Expand Up @@ -46,6 +45,14 @@ and brands contained herein are the property of their respective owners.

---

\tableofcontents

\listoftables

\listoffigures

---

# Introduction

Draft specification, with a list of tables.
Expand Down
11 changes: 9 additions & 2 deletions sample2.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ title: "Important TCG Document"
version: 1.0
revision: 3
date: 8/11/2022
type: SPECIFICATION
type: REFERENCE
status: PUBLISHED
lof: true
...

---
Expand Down Expand Up @@ -46,6 +45,14 @@ and brands contained herein are the property of their respective owners.

---

\tableofcontents

\listoftables

\listoffigures

---

# Introduction

Published specification with a list of figures.
Expand Down

0 comments on commit c2bc8e5

Please sign in to comment.