Skip to content

Commit ad5b9d7

Browse files
committed
Use DocBook
1 parent e72a15a commit ad5b9d7

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

.github/workflows/generate-release-notes.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,36 +27,39 @@ jobs:
2727
- name: Install Asciidoctor
2828
run: gem install asciidoctor
2929

30-
- name: Install Pandoc
30+
- name: Install latest Pandoc
3131
uses: r-lib/actions/setup-pandoc@v2
32+
with:
33+
pandoc-version: 'latest'
3234

3335
- name: Create release notes build directory
3436
run: mkdir release-notes-build
3537

36-
- name: Convert AsciiDoc to HTML
38+
- name: Convert AsciiDoc to DocBook
3739
run: |
3840
VERSION=${{ inputs.version }}
3941
INPUT_FILE="versions/${VERSION}/modules/en/pages/release-notes/${VERSION}.adoc"
40-
OUTPUT_FILE="release-notes-build/${VERSION}.html"
42+
OUTPUT_FILE="release-notes-build/${VERSION}.xml"
4143
4244
if [ ! -f "$INPUT_FILE" ]; then
4345
echo "Error: Input file $INPUT_FILE not found."
4446
exit 1
4547
fi
4648
47-
asciidoctor -o "$OUTPUT_FILE" "$INPUT_FILE"
49+
asciidoctor -b docbook5 -o "$OUTPUT_FILE" "$INPUT_FILE"
4850
49-
- name: Convert HTML to GitHub-Flavored Markdown
51+
- name: Convert DocBook to GitHub-Flavored Markdown
5052
run: |
5153
VERSION=${{ inputs.version }}
52-
HTML_FILE="release-notes-build/${VERSION}.html"
54+
XML_FILE="release-notes-build/${VERSION}.xml"
5355
MARKDOWN_FILE="release-notes-build/${VERSION}.md"
5456
55-
pandoc --from html-native_divs \
57+
pandoc -v
58+
pandoc --from docbook \
5659
--to gfm \
57-
--lua-filter=./.github/workflows/filters/admonition-filter.lua \
5860
--output "$MARKDOWN_FILE" \
59-
"$HTML_FILE"
61+
"$XML_FILE"
62+
# --lua-filter=./.github/workflows/filters/admonition-filter.lua \
6063

6164
- name: Deploy to release-notes-build branch
6265
uses: peaceiris/actions-gh-pages@v4

0 commit comments

Comments
 (0)