Skip to content

Commit

Permalink
feat: update docusaurus to 3.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sxyazi committed Jun 16, 2024
1 parent dddfdd6 commit c3407eb
Show file tree
Hide file tree
Showing 3 changed files with 254 additions and 502 deletions.
20 changes: 16 additions & 4 deletions docs/image-preview.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,27 @@ Note that Überzug++ might display images in the wrong position; in that case, p

## Why can't I preview images via Überzug++? {#debug-ueberzug}

This may be an issue with Überzug++, please try running `ueberzugpp layer` directly in the terminal without Yazi, and paste:
This may be a problem with Überzug++ itself. Please build Yazi in debug mode [as per this](https://yazi-rs.github.io/docs/installation#build-from-source) but `cargo build` without `--release` flag - you can run `yazi --debug` to verify it, and you will see the output includes `Debug : true`.

And hover on some images, then find the last Überzug++ command in your `~/.local/state/yazi/yazi.log` sorted by time. It is usually at the very end of the file and looks like:

```
ueberzugpp command: {"action":"add","identifier":"yazi","x":96,"y":1,"max_width":400,"max_height":150,"path":"/root/test.jpg"}
```

Finally, run `ueberzugpp layer` directly in the terminal without and outside Yazi, and paste the command:

```sh
{"action":"add","identifier":"preview","max_height":0,"max_width":0,"path":"/your/image-path.jpg","x":0,"y":0}
{"action":"add","identifier":"yazi","x":96,"y":1,"max_width":400,"max_height":150,"path":"/root/test.jpg"}
```

into it, then press `Enter`, and to see if any image is shown, without exiting the Überzug++. Note that you need to replace `/your/image-path.jpg` with the actual path of an image.
into it, press `Enter`, and to see if any image is shown, without exiting the Überzug++.

If the image shows properly when using Überzug++ independently, but not when used with Yazi, please create a bug report with:

If the image shows properly when using Überzug++ independently, but not when used with Yazi, please create a bug report.
- The contents of `~/.local/state/yazi/yazi.log`
- The contents of `/tmp/ueberzugpp-$USER.log`
- A GIF demonstration of the above steps

## Why won't my images adapt to terminal size? {#size}

Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@
"format": "prettier --write ."
},
"dependencies": {
"@docusaurus/core": "3.3.2",
"@docusaurus/preset-classic": "3.3.2",
"@docusaurus/core": "3.4.0",
"@docusaurus/preset-classic": "3.4.0",
"@mdx-js/react": "^3.0.0",
"clsx": "^1.2.1",
"prism-react-renderer": "^2.1.0",
"react": "^18.0.0",
"react-dom": "^18.0.0"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "3.3.2",
"@docusaurus/tsconfig": "3.3.2",
"@docusaurus/types": "3.3.2",
"@docusaurus/module-type-aliases": "3.4.0",
"@docusaurus/tsconfig": "3.4.0",
"@docusaurus/types": "3.4.0",
"prettier": "^3.0.3",
"typescript": "~5.2.2"
},
Expand Down
Loading

0 comments on commit c3407eb

Please sign in to comment.