Skip to content

Commit 0464b5a

Browse files
authored
Try #1650:
2 parents 0520947 + 283ddbd commit 0464b5a

File tree

2 files changed

+19
-6
lines changed

2 files changed

+19
-6
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,3 +152,16 @@ jobs:
152152
- name: Checks dead links
153153
run: cargo deadlinks --dir target/doc/bevy
154154
continue-on-error: true
155+
156+
example-doc-validation:
157+
runs-on: ubuntu-latest
158+
steps:
159+
- uses: actions/checkout@v2
160+
- name: Check that examples are present in both README and Cargo
161+
uses: Weibye/[email protected]
162+
with:
163+
source: './examples/'
164+
targets: '[ "./Cargo.toml", "./examples/README.md" ]'
165+
file-types: '[".rs"]'
166+
exclude-folders: '["./examples/ios"]'
167+
exclude-files: '[]'

examples/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,15 @@ git checkout v0.4.0
7272
<!-- markdownlint-disable-next-line MD026 -->
7373
## Hello, World!
7474

75-
Example | Main | Description
75+
Example | File | Description
7676
--- | --- | ---
7777
`hello_world` | [`hello_world.rs`](./hello_world.rs) | Runs a minimal example that outputs "hello world"
7878

7979
# Cross-Platform Examples
8080

8181
## 2D Rendering
8282

83-
Example | Main | Description
83+
Example | File | Description
8484
--- | --- | ---
8585
`contributors` | [`2d/contributors.rs`](./2d/contributors.rs) | Displays each contributor as a bouncy bevy-ball!
8686
`many_sprites` | [`2d/many_sprites.rs`](./2d/many_sprites.rs) | Displays many sprites in a grid arragement! Used for performance testing.
@@ -196,10 +196,10 @@ Example | File | Description
196196

197197
Example | File | Description
198198
--- | --- | ---
199-
`reflection` | [`reflection/reflection.rs`](reflection/reflection.rs) | Demonstrates how reflection in Bevy provides a way to dynamically interact with Rust types
200-
`generic_reflection` | [`reflection/generic_reflection.rs`](reflection/generic_reflection.rs) | Registers concrete instances of generic types that may be used with reflection
201-
`reflection_types` | [`reflection/reflection_types.rs`](reflection/reflection_types.rs) | Illustrates the various reflection types available
202-
`trait_reflection` | [`reflection/trait_reflection.rs`](reflection/trait_reflection.rs) | Allows reflection with trait objects
199+
`reflection` | [`reflection/reflection.rs`](./reflection/reflection.rs) | Demonstrates how reflection in Bevy provides a way to dynamically interact with Rust types
200+
`generic_reflection` | [`reflection/generic_reflection.rs`](./reflection/generic_reflection.rs) | Registers concrete instances of generic types that may be used with reflection
201+
`reflection_types` | [`reflection/reflection_types.rs`](./reflection/reflection_types.rs) | Illustrates the various reflection types available
202+
`trait_reflection` | [`reflection/trait_reflection.rs`](./reflection/trait_reflection.rs) | Allows reflection with trait objects
203203

204204
## Scene
205205

0 commit comments

Comments
 (0)