mirror of
https://gitlab.com/DevLifeFromModernWay/devlifefrommodernway.gitlab.io.git
synced 2025-06-20 19:15:37 +00:00
Compare commits
2 Commits
2023-10-25
...
2023-10-25
Author | SHA1 | Date | |
---|---|---|---|
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
|
||||
target
|
||||
EXTERNAL_LICENSE_REPORT.md
|
||||
.pnpm-store
|
||||
|
@ -5,6 +5,7 @@ stages:
|
||||
|
||||
variables:
|
||||
PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/devlifefrommodernway/${CI_COMMIT_TAG}"
|
||||
GIT_SUBMODULE_STRATEGY: recursive
|
||||
|
||||
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.mobi\", \"url\":\"${PACKAGE_REGISTRY_URL}/book-${CI_COMMIT_TAG}.mobi\"}"
|
||||
|
||||
image: node:lts-bullseye
|
||||
image: docker:24.0.5
|
||||
pages:
|
||||
stage: build
|
||||
cache:
|
||||
@ -37,21 +38,8 @@ pages:
|
||||
paths:
|
||||
- node_modules/
|
||||
script:
|
||||
- apt-get update && apt-get install -y calibre --no-install-recommends
|
||||
|
||||
- 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
|
||||
|
||||
- docker build -t devlifefrommodernway .
|
||||
- docker run -v ./:/build devlifefrommodernway
|
||||
- cp -a _book/. public/
|
||||
artifacts:
|
||||
paths:
|
||||
|
2
.gitmodules
vendored
2
.gitmodules
vendored
@ -1,3 +1,3 @@
|
||||
[submodule "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": [
|
||||
"name",
|
||||
"author",
|
||||
"licenseType",
|
||||
"link",
|
||||
"installedVersion",
|
||||
"licensePeriod",
|
||||
"comment"
|
||||
"link"
|
||||
]
|
||||
}
|
||||
|
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
|
||||
> work. If not, see <https://creativecommons.org/licenses/by/4.0/>.
|
||||
|
||||
# フォント
|
||||
## フォント
|
||||
|
||||
| Name | Author | License type | Link |
|
||||
| :---- | :----------- | :-------------------- | :----------------------------- |
|
||||
| Firge | Yuko OTAWARA | SIL Open Font License | https://github.com/yuru7/Firge |
|
||||
|
||||
## その他の使用ライブラリ等の外部ライセンス
|
||||
|
||||
{%include "EXTERNAL_LICENSE_REPORT.md" %}
|
||||
| Name | Author | Link |
|
||||
| :---- | :----------- | :----------------------------- |
|
||||
| Firge | Yuko OTAWARA | https://github.com/yuru7/Firge |
|
||||
|
@ -12,8 +12,6 @@
|
||||
>
|
||||
> **link: <https://gitlab.com/DevLifeFromModernWay/devlifefrommodernway.gitlab.io/-/releases/permalink/latest>**
|
||||
|
||||
---
|
||||
|
||||
> [!danger] **注意**:
|
||||
>
|
||||
> 本リポジトリは余裕をもって、片手間にでも読み進めることを想定しています。
|
||||
|
@ -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 {
|
||||
width: 100%;
|
||||
width: 50%;
|
||||
border-top: 1px solid #ccc;
|
||||
border-left: 1px solid #ccc;
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
||||
th,
|
||||
td {
|
||||
.markdown-section table td,
|
||||
.markdown-section table th {
|
||||
width: 16.6%;
|
||||
padding: 0.6em 1em;
|
||||
border-right: 1px solid #ccc;
|
||||
border-bottom: 1px solid #ccc;
|
||||
}
|
||||
|
||||
@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;
|
||||
}
|
||||
word-break: break-word;
|
||||
}
|
||||
|
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