Skip to content

Commit 7df7f2d

Browse files
authored
Merge pull request #98 from take-cheeze/dependabot
Updates for dependabot
2 parents ad05c23 + a3baa11 commit 7df7f2d

4 files changed

Lines changed: 80 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
workflow_dispatch:
8+
pull_request:
9+
branches:
10+
- master
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
submodules: 'recursive'
19+
- name: cpprefjp
20+
run: |
21+
set -eux -o pipefail
22+
export DOCKER_IT=""
23+
24+
git clone https://github.com/cpprefjp/site.git cpprefjp/site
25+
git clone https://github.com/cpprefjp/image.git cpprefjp/image
26+
27+
# kunai 用のデータを生成する
28+
git clone https://github.com/cpprefjp/kunai.git
29+
pushd kunai
30+
git submodule update --init
31+
popd
32+
./kunai/docker.sh build
33+
./kunai/docker.sh install
34+
./kunai/docker.sh dist
35+
# 生成した kunai の静的ファイルに対するシンボリックリンクを作る
36+
pushd cpprefjp/static/static
37+
ln -s ../../../kunai/dist kunai
38+
popd
39+
40+
# crsearch 用のデータを生成する
41+
./crsearch.json/docker.sh build
42+
./crsearch.json/docker.sh run
43+
# 生成した crsearch の静的ファイルに対するシンボリックリンクを作る
44+
mkdir -p cpprefjp/static/static/crsearch
45+
pushd cpprefjp/static/static/crsearch
46+
ln -s ../../../../crsearch.json/crsearch.json crsearch.json
47+
ln -s ../../../../crsearch.json/crsearch.js crsearch.js # Optional (ローカル file:///... で閲覧する場合に必要)
48+
popd
49+
50+
# site_generator 用の docker イメージを生成する
51+
./docker.sh build
52+
53+
./docker.sh run settings.cpprefjp_local
54+
- name: boostjp
55+
run: |
56+
set -eux -o pipefail
57+
export DOCKER_IT=""
58+
59+
git clone https://github.com/boostjp/site.git boostjp/site
60+
git clone https://github.com/boostjp/image.git boostjp/image
61+
62+
# site_generator 用の docker イメージを生成する
63+
./docker.sh build
64+
65+
./docker.sh run settings.boostjp_local
66+

docker/Dockerfile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.8.2-alpine
1+
FROM python:3.12-alpine
22

33
MAINTAINER melpon <shigemasa7watanabe+docker@gmail.com>
44

@@ -14,4 +14,12 @@ RUN set -ex \
1414
RUN set -ex \
1515
&& pip install -r requirements.txt
1616

17+
RUN \
18+
git config --global --add safe.directory /var/src && \
19+
git config --global --add safe.directory /var/src/kunai && \
20+
git config --global --add safe.directory /var/src/cpprefjp/site && \
21+
git config --global --add safe.directory /var/src/boostjp/site && \
22+
:
23+
24+
1725
WORKDIR /var/src

docker/requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ flake8==3.7.9
22
flake8-import-order==0.18.1
33
hacking==2.0.0
44
htmlmin==0.1.12
5-
Jinja2==3.0.3
5+
Jinja2==3.1.4
66
# markdown_to_html/html_attribute.py が HTML 実体参照の処理のために Markdown の
77
# 内部実装に依存しているので、Markdown バージョンを更新するときは動作確認が必要。
88
# 詳細については html_attribute.py の _tohtml(element) のコードコメントを参照の
99
# こと
10-
Markdown==3.2.1
11-
Pygments==2.19.2
12-
regex==2020.2.20
10+
Markdown==3.8.1
11+
Pygments==2.20.0
12+
regex==2026.5.9

0 commit comments

Comments
 (0)