Skip to content

Commit 4240871

Browse files
committed
chore: update deps and node + lint
1 parent ae090be commit 4240871

19 files changed

Lines changed: 4552 additions & 2766 deletions

.eslintrc.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

.github/workflows/docker-publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ name: Docker
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66
# Publish semver tags as releases.
7-
tags: [ 'v*.*.*' ]
7+
tags: ['v*.*.*']
88
pull_request:
9-
branches: [ main ]
9+
branches: [main]
1010

1111
env:
1212
# Use docker.io for Docker Hub if empty
@@ -63,7 +63,7 @@ jobs:
6363
-v "$(pwd)/resources/covers/cover.pdf:/home/node/resources/cover.pdf:ro" \
6464
-e "PDF_OUTPUT_NAME=TEST-DOCUMENTATION.pdf" \
6565
${{ env.TEST_TAG }}
66-
66+
6767
sudo apt-get update -y || true
6868
sudo apt-get install -y poppler-utils
6969
NB_PAGES=$(pdfinfo pdf/TEST-DOCUMENTATION.pdf | awk '/^Pages:/ {print $2}')

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20
1+
22

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:20.17.0-alpine3.20
1+
FROM node:22.21.0-alpine3.22
22

33
RUN apk add --no-cache curl bash bash-completion chromium nss freetype harfbuzz ca-certificates openjdk11
44
RUN echo @edge https://nl.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories && apk add --no-cache icu-data-full wqy-zenhei@edge

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ This project is based on [meff34/docsify-to-pdf-converter](https://github.com/me
1616

1717
> All improvements and fixes from original repository are [here](#differences-from-original-repository).
1818
19-
2019
## Screenshots
2120

2221
![Screenshot 1](img/capture1.png)
@@ -27,7 +26,7 @@ This project is based on [meff34/docsify-to-pdf-converter](https://github.com/me
2726

2827
## Usage
2928

30-
First, create a documentation in a `docs` directory (like the repository example).
29+
First, create a documentation in a `docs` directory (like the repository example).
3130
You need a `_sidebar.md`[^1].
3231

3332
**Pull the image** and create output directory :
@@ -54,13 +53,13 @@ And voilà ! :tada:
5453

5554
You can use [zx](https://github.com/google/zx) to generate the PDF in one command : `zx README.md`.
5655

57-
You can also add custom js files _(plugins)_ :
56+
You can also add custom js files _(plugins)_ :
5857

5958
```bash
6059
-v $(pwd)/resources/js/thing.js:/home/node/resources/js/thing.js:ro
6160
```
6261

63-
> All the **resources** can be **replaced** (images, css, js, ...) as well
62+
> All the **resources** can be **replaced** (images, css, js, ...) as well
6463
> It can be useful if you want to change the **CSS theme**
6564
6665
The PDF **cover** is **optional** : just remove the mapping on the command.
@@ -92,7 +91,7 @@ The PDF **cover** is **optional** : just remove the mapping on the command.
9291

9392
## Troubleshooting
9493

95-
The order (**alphabetical**) of JavaScript files is important for some libraries like [Docsify-Latex](https://scruel.github.io/docsify-latex/#/).
94+
The order (**alphabetical**) of JavaScript files is important for some libraries like [Docsify-Latex](https://scruel.github.io/docsify-latex/#/).
9695

9796
> From Docsify-Latex documentation : "You should put docsify-latex plugin script below docsify and display engine scripts, because plugin script depends on them."
9897

eslint.config.cjs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
const { default: antfu } = require('@antfu/eslint-config')
2+
3+
module.exports = antfu(
4+
{
5+
stylistic: true,
6+
rules: {
7+
'no-console': 'off',
8+
'antfu/if-newline': 'off',
9+
'nonblock-statement-body-position': 'error',
10+
'curly': ['error', 'multi-line', 'consistent'],
11+
'style/brace-style': ['error', '1tbs', { allowSingleLine: false }],
12+
'unused-imports/no-unused-vars': 'warn',
13+
'unused-imports/no-unused-imports': 'warn',
14+
'jsonc/sort-keys': 'error',
15+
'node/prefer-global/process': 'off',
16+
},
17+
ignores: ['resources/', 'docs/'],
18+
},
19+
)

0 commit comments

Comments
 (0)