Skip to content

Commit 20b13db

Browse files
Improve example
1 parent 99070f9 commit 20b13db

15 files changed

+12
-11
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
/target
2-
/example/*/target
2+
/examples/*/target
33
Cargo.lock
44
/fetch_godot_classes/godot

CONTRIBUTING.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ adjust/add tests accordingly.
2929
- ## Examples
3030

3131
If your contribution changes the markdown/html/gut output, it would be
32-
good to update the example in `example/dijkstra-map-gd`.
32+
good to update the example in `examples/dijkstra-map-gd`.
3333

34-
To do so, simply go to `example/dijkstra-map-gd` and run `cargo build`.
34+
To do so, simply run `cargo build -p dijkstra-map-gd`.

Cargo.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ edition = "2018"
99
license = "MIT"
1010

1111
[workspace]
12-
members = ["gdnative-doc-cli"]
12+
members = ["gdnative-doc-cli", "examples/dijkstra-map-gd"]
1313
default-members = [".", "gdnative-doc-cli"]
14-
exclude = ["example"]
1514

1615
[dependencies]
1716
cargo_metadata = "0.12"

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ The goal of this tool is to automate writing documentation in Rust code that wil
2929
Output: gut |
3030
![](assets/process-function-gut.png) |
3131

32-
A more complete example can be found in the [example/dijkstra-map-gd](example/dijkstra-map-gd) directory.
32+
A more complete example can be found in the [examples/dijkstra-map-gd](examples/dijkstra-map-gd) directory.
3333

3434
## Usage
3535

example/dijkstra-map-gd/Cargo.toml examples/dijkstra-map-gd/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "dijkstra_map_gd"
2+
name = "dijkstra-map-gd"
33
version = "0.1.0"
44
authors = ["Astrale", "Matej Sloboda"]
55
edition = "2018"
File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
This example is based on https://github.com/MatejSloboda/Dijkstra_map_for_Godot.
22

33
To generate the documentation, run either
4-
```
5-
cargo build
4+
```shell
5+
cargo build -p dijkstra-map-gd
66
```
77
Or, if you have the gdnative-doc-cli executable
8-
```
8+
```shell
99
gdnative-doc-cli -c config.toml --md doc/markdown --html doc/html --gut gut
10-
```
10+
```
11+
12+
The resulting documentation can be found in the [doc](./doc) directory, and the gut tests in the [gut](./gut) directory.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)