Skip to content

Commit 2db0a36

Browse files
authored
vocab: class -> type
1 parent 9be5e7d commit 2db0a36

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

docs/references/autodoc.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -17,33 +17,33 @@ reference.
1717
[dmdoc]: https://github.com/SpaceManiac/SpacemanDMM/tree/master/crates/dmdoc
1818

1919
## Documenting Code On Paradise
20-
We use block comments to document procs and classes, and we use `///` line
20+
We use block comments to document procs and types, and we use `///` line
2121
comments when documenting individual variables.
2222

2323
Documentation is not required at Paradise, but it is highly recommended that all
2424
new code be covered with DMdoc code, according to the
2525
[Specifications](#specification).
2626

27-
We also recommend that when you touch older code, you document the functions that you
27+
We also recommend that when you touch older code, you document the procs that you
2828
have touched in the process of updating that code
2929

3030
### Specification
31-
A class *should* always be auto-documented, and all public functions *should* be
31+
A type *should* always be auto-documented, and all public procs *should* be
3232
documented.
3333

34-
All class level defined variables *should* be documented.
34+
All type level defined variables *should* be documented.
3535

36-
Internal functions *can* be documented, but may not be.
36+
Internal procs *can* be documented, but may not be.
3737

38-
A public function is any function that a developer might reasonably call while using
39-
or interacting with your object. Internal functions are helper functions that your
40-
public functions rely on to implement logic.
38+
A public proc is any function that a developer might reasonably call while using
39+
or interacting with your object. Internal procs are helper functions that your
40+
public procs rely on to implement logic.
4141

4242
### Documenting a proc
4343
When documenting a proc, we give a short one line description (as this is shown
4444
next to the proc definition in the list of all procs for a type or global
4545
namespace), then a longer paragraph which will be shown when the user clicks on
46-
the proc to jump to it's definition
46+
the proc to jump to its definition
4747

4848
```dm
4949
/**
@@ -57,36 +57,36 @@ the proc to jump to it's definition
5757
*/
5858
```
5959

60-
### Documenting Classes
61-
We first give the name of the class as a header, this can be omitted if the name
62-
is just going to be the typepath of the class, as dmdoc uses that by default.
63-
Then we give a short one-line description of the class. Finally we give a longer
64-
multi paragraph description of the class and it's details.
60+
### Documenting types
61+
We first give the name of the type as a header, this can be omitted if the name
62+
is just going to be the typepath of the type, as dmdoc uses that by default.
63+
Then we give a short one-line description of the type. Finally we give a longer
64+
multi paragraph description of the type and its details.
6565

6666
```dm
6767
/**
68-
* # Classname (Can be omitted if it's just going to be the typepath)
68+
* # type name (Can be omitted if it's just going to be the typepath)
6969
*
7070
* The short overview
7171
*
7272
* A longer
73-
* paragraph of functionality about the class
73+
* paragraph of functionality about the type
7474
* including any assumptions/special cases
7575
*
7676
*/
7777
```
7878

7979
### Documenting a variable/define
80-
Give a short explanation of what the variable, in the context of the class, or define is.
80+
Give a short explanation of what the variable, in the context of the type, or define is.
8181

8282
```dm
83-
/// Type path of item to go in suit slot
83+
/// Typepath of item to go in suit slot
8484
var/suit = null
8585
```
8686

8787
## Module level description of code
8888
Modules are the best way to describe the structure/intent of a package of code
89-
where you don't want to be tied to the formal layout of the class structure.
89+
where you don't want to be tied to the formal layout of the type structure.
9090

9191
On Paradise we do this by adding markdown files inside the `code` directory
9292
that will also be rendered and added to the modules tree. The structure for
@@ -98,10 +98,10 @@ You can use certain special template variables in DM DOC comments and they will
9898
be expanded.
9999

100100
- `[DEFINE_NAME]` expands to a link to the define definition if documented.
101-
- `[/mob]` expands to a link to the docs for the /mob class.
102-
- `[/mob/proc/Dizzy]` expands to a link that will take you to the /mob class and
101+
- `[/mob]` expands to a link to the docs for the /mob type.
102+
- `[/mob/proc/Dizzy]` expands to a link that will take you to the /mob type and
103103
anchor you to the dizzy proc docs.
104-
- `[/mob/var/stat]` expands to a link that will take you to the /mob class and
104+
- `[/mob/var/stat]` expands to a link that will take you to the /mob type and
105105
anchor you to the stat var docs
106106

107107
You can customise the link name by using `[link name][link shorthand]`.

0 commit comments

Comments
 (0)