Skip to content

Commit 475689f

Browse files
authored
Merge pull request #88 from WORD-COINS/fix-2024-03-29
マークダウンテンプレートと表紙に関する更新
2 parents 4c43454 + e20ec1a commit 475689f

File tree

8 files changed

+20
-16
lines changed

8 files changed

+20
-16
lines changed

.github/workflows/articles_branch_ci.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ jobs:
4343
run: |
4444
cd ${{ steps.extract_branch.outputs.branch }}
4545
if [ -f ./main.md ]; then
46-
if [ ! -f ./main.tex ]; then
47-
echo "exist=true" >> $GITHUB_OUTPUT
48-
fi
46+
echo "exist=true" >> $GITHUB_OUTPUT
4947
fi
5048
id: main_md
5149

.github/workflows/master_branch_ci.yaml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,7 @@ jobs:
2626

2727
# 事前にarticlesフォルダ内のmarkdownファイルに対してpandocを実行する
2828
- name: convert markdown to latex
29-
run: |
30-
for filepath in $PWD/articles/*; do
31-
cd $filepath
32-
if [ -f ./main.md ]; then
33-
if [ ! -f ./main.tex ]; then
34-
echo $filepath
35-
make pandoc
36-
fi
37-
fi
38-
done
29+
run: ./scripts/all_pandoc.sh
3930

4031
- name: build master branch
4132
run: |

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
*.omc
1010
*.out
1111
*.blg
12+
*.bbl
13+
*.bcf
1214
.omakedb*
1315
*.ps
1416
!articles/*/jisb5.ps

articles/cover/main.tex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
%以下をコメントアウトし、cover.jpgを置き換えるなどして使用してください。
2222
% jpg,png,pdfなど形式は大体対応しています。
2323

24-
%\includegraphics[width=\paperwidth, height=\paperheight]{cover.jpg}
24+
%\begin{tikzpicture}[remember picture, overlay]
25+
% \node at (current page.center) {\includegraphics[width=1.00\paperwidth, height=1.00\paperheight]{cover.jpg}};
26+
%\end{tikzpicture}
2527

2628
\end{document}

articles/hinagata-markdown/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
main.tex

articles/hinagata-markdown/main.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ make pandoc
148148

149149
とすることで生成することができます。
150150

151-
main.texファイルがあるとmarkdown変換処理が行われないため、main.texファイルをコミットしないように気を付けてください
152151

153152
# その他情報
154153

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ version: '3.4'
22
services:
33
article_build:
44
image: ghcr.io/word-coins/latex-build:latest
5-
command: "/bin/sh -c 'fc-cache && WORD_FONT=sourcehan-jp make'"
5+
command: "/bin/sh -c 'fc-cache && ./scripts/all_pandoc.sh && WORD_FONT=sourcehan-jp make'"
66
volumes:
77
- .:/workdir

scripts/all_pandoc.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env bash
2+
3+
# 全ての記事を検査してmain.mdファイルがあったら変換する
4+
5+
for filepath in $PWD/articles/*; do
6+
cd $filepath
7+
if [ -f ./main.md ]; then
8+
echo $filepath
9+
make pandoc
10+
fi
11+
done

0 commit comments

Comments
 (0)