Skip to content

Commit

Permalink
Add mdbook-linkcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
Nutomic committed May 16, 2022
1 parent 70e433a commit 0a294a1
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ steps:
- git submodule update --recursive --remote

- name: check documentation build
image: rust:1.56-slim-buster
image: michaelfbryan/mdbook-docker-image:latest
commands:
- cargo install mdbook --git https://github.com/Ruin0x11/mdBook.git --branch localization
--rev 9d8147c --force --debug
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Our documentation tool [mdbook](https://github.com/rust-lang/mdBook) doesn't sup
```bash
cargo install mdbook --git https://github.com/Ruin0x11/mdBook.git \
--branch localization --rev 9d8147c
cargo install mdbook-linkcheck
./update-includes.sh
# generate static page in `book` subfolder
mdbook build
Expand Down
4 changes: 4 additions & 0 deletions book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
authors = ["Felix Ableitner"]
src = "src"

[output.html]

[output.linkcheck]

[language.en]
name = "English"
title = "Lemmy Documentation"
Expand Down
6 changes: 3 additions & 3 deletions src/en/federation/lemmy_protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -381,21 +381,21 @@ Reverts a previous user block.
Creates a new private message between two users.

```json
{{#include ../../../include/crates/apub/assets/lemmy/activities/private_message/create.json}}
{{#include ../../../include/crates/apub/assets/lemmy/activities/create_or_update/create_private_message.json}}
```

#### Delete Private Message

Deletes a previous private message.

```json
{{#include ../../../include/crates/apub/assets/lemmy/activities/private_message/delete.json}}
{{#include ../../../include/crates/apub/assets/lemmy/activities/deletion/delete_private_message.json}}
```

#### Undo Delete Private Message

Restores a previously deleted private message. The `object` is regenerated from scratch, as such the activity ID and other fields are different.

```json
{{#include ../../../include/crates/apub/assets/lemmy/activities/private_message/undo_delete.json}}
{{#include ../../../include/crates/apub/assets/lemmy/activities/deletion/undo_delete_private_message.json}}
```
6 changes: 3 additions & 3 deletions src/id/federation/lemmy_protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -358,21 +358,21 @@ Urung pelarangan pengguna.
Buat pesan pribadi antar dua pengguna.

```json
{{#include ../../../include/crates/apub/assets/lemmy/activities/private_message/create.json}}
{{#include ../../../include/crates/apub/assets/lemmy/activities/create_or_update/create_private_message.json}}
```

#### Hapus Pesan Pribadi

Hapus pesan pribadi.

```json
{{#include ../../../include/crates/apub/assets/lemmy/activities/private_message/delete.json}}
{{#include ../../../include/crates/apub/assets/lemmy/activities/deletion/delete_private_message.json}}
```

#### Urung Hapus Pesan Pribadi

Pulihkan pesan pribadi yang dihapus. `object` kembali dihasilkan dari awal, karena itu ID aktivitas dan bidang lainnya berbeda dengan yang sebelumnya.

```json
{{#include ../../../include/crates/apub/assets/lemmy/activities/private_message/undo_delete.json}}
{{#include ../../../include/crates/apub/assets/lemmy/activities/deletion/undo_delete_private_message.json}}
```

0 comments on commit 0a294a1

Please sign in to comment.