mirror of
https://gitlab.com/DevLifeFromModernWay/devlifefrommodernway.gitlab.io.git
synced 2025-06-20 23:15:36 +00:00
Compare commits
3 Commits
2023-10-25
...
2023-10-25
Author | SHA1 | Date | |
---|---|---|---|
682ea769c1 | |||
496c22974d | |||
840892daa6 |
5
.dockerignore
Normal file
5
.dockerignore
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
node_modules
|
||||||
|
_book
|
||||||
|
target
|
||||||
|
EXTERNAL_LICENSE_REPORT.md
|
||||||
|
.pnpm-store
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,3 +2,4 @@ node_modules
|
|||||||
_book
|
_book
|
||||||
target
|
target
|
||||||
EXTERNAL_LICENSE_REPORT.md
|
EXTERNAL_LICENSE_REPORT.md
|
||||||
|
.pnpm-store
|
||||||
|
@ -5,6 +5,7 @@ stages:
|
|||||||
|
|
||||||
variables:
|
variables:
|
||||||
PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/devlifefrommodernway/${CI_COMMIT_TAG}"
|
PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/devlifefrommodernway/${CI_COMMIT_TAG}"
|
||||||
|
GIT_SUBMODULE_STRATEGY: recursive
|
||||||
|
|
||||||
upload:
|
upload:
|
||||||
stage: upload
|
stage: upload
|
||||||
@ -27,7 +28,7 @@ release:
|
|||||||
--assets-link "{\"name\":\"book.epub\", \"url\":\"${PACKAGE_REGISTRY_URL}/book-${CI_COMMIT_TAG}.epub\"}"
|
--assets-link "{\"name\":\"book.epub\", \"url\":\"${PACKAGE_REGISTRY_URL}/book-${CI_COMMIT_TAG}.epub\"}"
|
||||||
--assets-link "{\"name\":\"book.mobi\", \"url\":\"${PACKAGE_REGISTRY_URL}/book-${CI_COMMIT_TAG}.mobi\"}"
|
--assets-link "{\"name\":\"book.mobi\", \"url\":\"${PACKAGE_REGISTRY_URL}/book-${CI_COMMIT_TAG}.mobi\"}"
|
||||||
|
|
||||||
image: node:lts-bullseye
|
image: docker:24.0.5
|
||||||
pages:
|
pages:
|
||||||
stage: build
|
stage: build
|
||||||
cache:
|
cache:
|
||||||
@ -37,21 +38,8 @@ pages:
|
|||||||
paths:
|
paths:
|
||||||
- node_modules/
|
- node_modules/
|
||||||
script:
|
script:
|
||||||
- apt-get update && apt-get install -y calibre --no-install-recommends
|
- docker build -t devlifefrommodernway .
|
||||||
|
- docker run -v ./:/build devlifefrommodernway
|
||||||
- apt-get update && apt-get install -y fontconfig unzip sudo
|
|
||||||
- unzip "./fonts/*.zip" -d /usr/share/fonts/
|
|
||||||
&& fc-cache -fv
|
|
||||||
|
|
||||||
- mkdir -p /etc/fonts/conf.d &&
|
|
||||||
cp -a ./fonts/fonts.conf /etc/fonts/conf.d/99-firgenerd.conf &&
|
|
||||||
fc-cache -fv
|
|
||||||
|
|
||||||
- sudo corepack enable
|
|
||||||
- sudo -u node pnpm install
|
|
||||||
|
|
||||||
- sudo -u node env LANG=ja_JP.UTF-8 pnpm run build
|
|
||||||
|
|
||||||
- cp -a _book/. public/
|
- cp -a _book/. public/
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
|
2
.gitmodules
vendored
2
.gitmodules
vendored
@ -1,3 +1,3 @@
|
|||||||
[submodule "gitbook-plugin-obsidian-code-admonition"]
|
[submodule "gitbook-plugin-obsidian-code-admonition"]
|
||||||
path = plugins/gitbook-plugin-obsidian-code-admonition
|
path = plugins/gitbook-plugin-obsidian-code-admonition
|
||||||
url = git@github.com:anosatsuk124/gitbook-plugin-obsidian-code-admonition.git
|
url = https://github.com/anosatsuk124/gitbook-plugin-obsidian-code-admonition.git
|
||||||
|
24
Dockerfile
Normal file
24
Dockerfile
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
FROM node:lts-bullseye
|
||||||
|
|
||||||
|
WORKDIR /build
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install -y calibre --no-install-recommends
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install -y fontconfig unzip sudo
|
||||||
|
|
||||||
|
COPY ./fonts /build/fonts
|
||||||
|
|
||||||
|
RUN unzip "./fonts/*.zip" -d /usr/share/fonts/ && fc-cache -fv
|
||||||
|
|
||||||
|
RUN mkdir -p /etc/fonts/conf.d && \
|
||||||
|
cp -a ./fonts/fonts.conf /etc/fonts/conf.d/99-firgenerd.conf && fc-cache -fv
|
||||||
|
|
||||||
|
RUN sudo corepack enable
|
||||||
|
|
||||||
|
|
||||||
|
ENV LANG=ja_JP.UTF-8
|
||||||
|
|
||||||
|
USER node
|
||||||
|
|
||||||
|
ENTRYPOINT exec sh -c "pnpm install && pnpm run build"
|
||||||
|
|
@ -2,10 +2,6 @@
|
|||||||
"fields": [
|
"fields": [
|
||||||
"name",
|
"name",
|
||||||
"author",
|
"author",
|
||||||
"licenseType",
|
"link"
|
||||||
"link",
|
|
||||||
"installedVersion",
|
|
||||||
"licensePeriod",
|
|
||||||
"comment"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
3
src/EXTERNAL_LICENSE.md
Normal file
3
src/EXTERNAL_LICENSE.md
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# その他の使用ライブラリ等の外部ライセンス
|
||||||
|
|
||||||
|
{% include "./EXTERNAL_LICENSE_REPORT.md" %}
|
@ -1,4 +1,4 @@
|
|||||||
# ライセンス情報
|
# ページのライセンス情報
|
||||||
|
|
||||||
## 本文
|
## 本文
|
||||||
|
|
||||||
@ -14,12 +14,8 @@
|
|||||||
> You should have received a copy of the license along with this
|
> You should have received a copy of the license along with this
|
||||||
> work. If not, see <https://creativecommons.org/licenses/by/4.0/>.
|
> work. If not, see <https://creativecommons.org/licenses/by/4.0/>.
|
||||||
|
|
||||||
# フォント
|
## フォント
|
||||||
|
|
||||||
| Name | Author | License type | Link |
|
| Name | Author | Link |
|
||||||
| :---- | :----------- | :-------------------- | :----------------------------- |
|
| :---- | :----------- | :----------------------------- |
|
||||||
| Firge | Yuko OTAWARA | SIL Open Font License | https://github.com/yuru7/Firge |
|
| Firge | Yuko OTAWARA | https://github.com/yuru7/Firge |
|
||||||
|
|
||||||
## その他の使用ライブラリ等の外部ライセンス
|
|
||||||
|
|
||||||
{%include "EXTERNAL_LICENSE_REPORT.md" %}
|
|
||||||
|
@ -8,4 +8,8 @@
|
|||||||
|
|
||||||
## リポジトリ情報
|
## リポジトリ情報
|
||||||
|
|
||||||
- [LICENSE](LICENSE.md)
|
### ライセンス情報
|
||||||
|
|
||||||
|
- [ページのライセンス情報](./LICENSE.md)
|
||||||
|
|
||||||
|
- [その他の使用ライブラリ等の外部ライセンス](./EXTERNAL_LICENSE.md)
|
||||||
|
13
src/_layouts/ebook/page.html
Normal file
13
src/_layouts/ebook/page.html
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<!-- prettier-ignore -->
|
||||||
|
{% extends template.self %}
|
||||||
|
{% extends "../layout.html" %}
|
||||||
|
|
||||||
|
<!-- prettier-ignore -->
|
||||||
|
{% block title %}{{ page.title }}{% endblock %}
|
||||||
|
{% block description %}{{ page.description }}{% endblock %}
|
||||||
|
|
||||||
|
<!-- prettier-ignore -->
|
||||||
|
{% block style %}
|
||||||
|
{{ super() }}
|
||||||
|
<link rel="stylesheet" href="/_styles/ebook.css" />
|
||||||
|
{% endblock %}
|
@ -52,52 +52,19 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Table responsive */
|
/* Table responsive */
|
||||||
|
|
||||||
table {
|
table {
|
||||||
width: 100%;
|
width: 50%;
|
||||||
border-top: 1px solid #ccc;
|
border-top: 1px solid #ccc;
|
||||||
border-left: 1px solid #ccc;
|
border-left: 1px solid #ccc;
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
border-spacing: 0;
|
border-spacing: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
th,
|
.markdown-section table td,
|
||||||
td {
|
.markdown-section table th {
|
||||||
width: 16.6%;
|
width: 16.6%;
|
||||||
padding: 0.6em 1em;
|
padding: 0.6em 1em;
|
||||||
border-right: 1px solid #ccc;
|
border-right: 1px solid #ccc;
|
||||||
border-bottom: 1px solid #ccc;
|
border-bottom: 1px solid #ccc;
|
||||||
}
|
word-break: break-word;
|
||||||
|
|
||||||
@media screen and (max-width: 640px) {
|
|
||||||
body {
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
table {
|
|
||||||
display: flex;
|
|
||||||
}
|
|
||||||
|
|
||||||
thead {
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
tbody {
|
|
||||||
overflow-x: scroll;
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
tbody tr {
|
|
||||||
display: inline-block;
|
|
||||||
}
|
|
||||||
|
|
||||||
tbody tr:last-child {
|
|
||||||
margin-left: -5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
th,
|
|
||||||
td {
|
|
||||||
display: block;
|
|
||||||
width: auto;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
4
src/_styles/ebook.css
Normal file
4
src/_styles/ebook.css
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
.markdown-section table td,
|
||||||
|
.markdown-section table th {
|
||||||
|
word-wrap: break-word;
|
||||||
|
}
|
Reference in New Issue
Block a user