Skip to content

Commit

Permalink
Fix pandocker build for all languages (#674)
Browse files Browse the repository at this point in the history
* try pandocker latest-ubuntu-full

* try only full version

* Workaround for pandoc bug #8460
  • Loading branch information
cpholguera authored Jan 27, 2023
1 parent b420f4a commit eb7121c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/docgenerator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: [push, workflow_dispatch]
jobs:

##
## Use `pandocker-tag: TAG=stable-full` for langs that require the special fonts (Russian, Chinese, etc.)
## Use `pandocker-tag: TAG=latest-ubuntu-full` for langs that require the special fonts (Russian, Chinese, etc.)
##

en:
Expand Down Expand Up @@ -56,39 +56,39 @@ jobs:
folder: Document-hi
language: Hindi
lang: hi
pandocker-tag: TAG=stable-full
pandocker-tag: TAG=latest-ubuntu-full

ja:
uses: OWASP/owasp-masvs/.github/workflows/doc-gen-reusable.yml@master
with:
folder: Document-ja
language: Japanese
lang: ja
pandocker-tag: TAG=stable-full
pandocker-tag: TAG=latest-ubuntu-full

ko:
uses: OWASP/owasp-masvs/.github/workflows/doc-gen-reusable.yml@master
with:
folder: Document-ko
language: Korean
lang: ko
pandocker-tag: TAG=stable-full
pandocker-tag: TAG=latest-ubuntu-full

ru:
uses: OWASP/owasp-masvs/.github/workflows/doc-gen-reusable.yml@master
with:
folder: Document-ru
language: Russian
lang: ru
pandocker-tag: TAG=stable-full
pandocker-tag: TAG=latest-ubuntu-full

fa:
uses: OWASP/owasp-masvs/.github/workflows/doc-gen-reusable.yml@master
with:
folder: Document-fa
language: Persian
lang: fa
pandocker-tag: TAG=stable-full
pandocker-tag: TAG=latest-ubuntu-full
pandocker-template: LATEX_TEMPLATE=default # there's a bug for fa in the eisvogel template, we have to use default

zhcn:
Expand All @@ -97,15 +97,15 @@ jobs:
folder: Document-zhcn
language: Simplified Chinese
lang: zhcn
pandocker-tag: TAG=stable-full
pandocker-tag: TAG=latest-ubuntu-full

zhtw:
uses: OWASP/owasp-masvs/.github/workflows/doc-gen-reusable.yml@master
with:
folder: Document-zhtw
language: Traditional Chinese
lang: zhtw
pandocker-tag: TAG=stable-full
pandocker-tag: TAG=latest-ubuntu-full

export:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions tools/docker/latex-header.tex
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,7 @@
%%\usepackage[space]{xeCJK}
%%\setCJKmainfont{Noto Sans CJK {{CJK-LANG}}} %JP,SC,TC,KR
%%\renewcommand\CJKglue{}% get proper linebreaking if spaces are provided

%% Workaround for pandoc bug #8460
%% https://github.com/jgm/pandoc/issues/8460
\newenvironment{RTL}{\beginR}{\endR}

0 comments on commit eb7121c

Please sign in to comment.