Skip to content

Commit b0aa797

Browse files
committed
Fix example links in relationship and query manuals for generated docs
1 parent e7f7dcd commit b0aa797

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

docs/Queries.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ Here are some of the highlights of Flecs queries:
3232

3333
| Name | Description |
3434
|--------------|-------------|
35-
| Query | A list of conditions used to match entities |
36-
| Term | A single element of a query |
3735
| Id | An id that can be matched, added and removed |
3836
| Component | Id with a single element (same as an entity id) |
3937
| Pair | Id with two elements |
@@ -47,10 +45,10 @@ Here are some of the highlights of Flecs queries:
4745
## Examples
4846
Make sure to check out the code examples in the repository:
4947

50-
- [queries (C)](/examples/c/queries)
51-
- [queries (C++)](/examples/cpp/queries)
52-
- [rules (C)](/examples/c/rules)
53-
- [rules (C++)](/examples/cpp/rules)
48+
- [queries (C)](https://github.com/SanderMertens/flecs/examples/c/queries)
49+
- [queries (C++)](https://github.com/SanderMertens/flecs/examples/cpp/queries)
50+
- [rules (C)](https://github.com/SanderMertens/flecs/examples/c/rules)
51+
- [rules (C++)](https://github.com/SanderMertens/flecs/examples/cpp/rules)
5452

5553
## Query Types
5654
Flecs has different query types, which are optimized for different kinds of use cases. This section provides a brief overview of each kind:

docs/Relationships.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ The relationships feature makes it possible to describe entity graphs natively i
33

44
Adding/removing relationships is similar to adding/removing regular components, with as difference that instead of a single component id, a relationship adds a pair of two things to an entity. In this pair, the first element represents the relationship (e.g. "Eats"), and the second element represents the relationship target (e.g. "Apples").
55

6+
Relationships can be used to describe many things, from hierarchies to inventory systems to trade relationships betweein players in a game. The following sections go over how to use relationships, and what features they support.
7+
68
## Definitions
79

8-
| Name | Description |
10+
| Name | Description |
911
|--------------|-------------|
10-
| Query | A list of conditions used to match entities |
11-
| Term | A single element of a query |
1212
| Id | An id that can be added and removed |
1313
| Component | Id with a single element (same as an entity id) |
1414
| Pair | Id with two elements |
@@ -20,8 +20,8 @@ Adding/removing relationships is similar to adding/removing regular components,
2020
## Examples
2121
Make sure to check out the code examples in the repository:
2222

23-
- [relationships (C)](/examples/c/relationships)
24-
- [relationships (C++)](/examples/cpp/relationships)
23+
- [relationships (C)](https://github.com/SanderMertens/flecs/examples/c/relationships)
24+
- [relationships (C++)](https://github.com/SanderMertens/flecs/examples/cpp/relationships)
2525

2626
## Introduction
2727
The following code is a simple example that uses relationships:

0 commit comments

Comments
 (0)