Skip to content

Commit

Permalink
Change to use shell-session syntax highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
jam7 committed Sep 27, 2021
1 parent 11a322e commit 2cac415
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Need to install docker.

Download container and run it to generate kindlegen script.

```
```shell-session
$ docker pull jam7/narou
$ docker pull jam7/kindlegen
$ docker run --rm jam7/narou > narou
Expand All @@ -22,7 +22,7 @@ crlf.
Run a generated script to download AozoraEpub3 to `$HOME/.narou/AozoraEpub3*`
and initialize environment for narou.rb.

```
```shell-session
$ ./narou list
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
Expand Down Expand Up @@ -57,29 +57,29 @@ $
Use a generated narou script. All downloaded data is stored at
$HOME/.narou.

```
```shell-session
$ narou d https://ncode.syosetu.com/n6813gp/
```

### How to send mobi to kindle

From Linux under WSL2, perform mount Kindle first.

```
```shell-session
$ sudo mkdir -p /mnt/Kindle
$ sudo mount -t drvfs d:/ /mnt/Kindle
```

Then, use `narou send`.

```
```shell-session
$ narou send
```

After `naoru send`, unmount Kindle like below. It is required to run
`umount` three times on Ubuntu-20.04 under WSL2.

```
```shell-session
$ sudo umount d:/
$ sudo umount d:/
$ sudo umount d:/
Expand All @@ -99,15 +99,15 @@ From v1.14, narou-docker changes to run as a host user. So, it is required
to chown $HOME/.narou to a host user is required. Old narou-docker runs as
a root user.

```
```shell-session
$ sudo chown -R `id -u`:`id -g` $HOME/.narou
```

## Build

In order to build image by yourself, perform `make`

```
```shell-session
$ make
```

Expand Down

0 comments on commit 2cac415

Please sign in to comment.