Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/uncefact/spec-untp
Browse files Browse the repository at this point in the history
  • Loading branch information
onthebreeze committed Feb 11, 2025
2 parents 48bc96c + bdc44f3 commit 82bdb5f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/docs-to-pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ jobs:
node-version: 18
cache: yarn

- name: Install fs-extra
# Workaround: docs-to-pdf expects fs-extra at runtime,
# but the package only includes type definitions.
# This step installs fs-extra globally until the package
# is updated to include it as a proper dependency.
# You can track the progress here: https://github.com/jean-humann/docs-to-pdf/pull/484
run: npm install -g fs-extra

- name: Install dependencies
run: npm install -g docs-to-pdf

Expand All @@ -46,10 +54,13 @@ jobs:
--contentSelector="article" \
--paginationSelector="a.pagination-nav__link.pagination-nav__link--next" \
--excludeSelectors=".breadcrumbs,.theme-edit-this-page" \
--excludePaths="/docs/implementations/" \
--excludeURLs="https://uncefact.github.io/spec-untp/docs/about/Meetings,https://uncefact.github.io/spec-untp/docs/about/FAQ" \
--outputPDFFilename="website/static/un-transparency-protocol.pdf" \
--coverTitle="UN Transparency Protocol" \
--coverImage="https://uncefact.github.io/spec-untp/img/home-hero.jpg"
--coverImage="https://uncefact.github.io/spec-untp/img/home-hero.jpg" \
--cssStyle="body { font-size: 13px !important; } h1 { font-size: 40px !important; } h2 { font-size: 26px !important; } h3 { font-size: 20px !important; } h4 { font-size: 13px !important; }" \
--puppeteerArgs="--no-sandbox,--disable-setuid-sandbox"
- name: commit pdf
run: |
Expand Down
Binary file modified website/static/un-transparency-protocol.pdf
Binary file not shown.

0 comments on commit 82bdb5f

Please sign in to comment.