Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pandocker build for all languages #674

Merged
merged 3 commits into from
Jan 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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}