Skip to content

Commit

Permalink
Fix doc generator not finding arguments across multiple lines + refac…
Browse files Browse the repository at this point in the history
…tor how multiple possible types are documented and displayed in the docs + add new libraries, enums and classes + change capitalization to better follow own conventions
  • Loading branch information
luttje committed Sep 29, 2024
1 parent 60865fc commit a16db57
Show file tree
Hide file tree
Showing 2,949 changed files with 20,351 additions and 7,099 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,7 @@ game/experiment/cfg/settings.scr

# mkdocs/mkdocs-material
.cache

# mkdocs site or temp storage for speeding up test builds of mkdocs
site/
temp/
8 changes: 6 additions & 2 deletions docs/classes/Angle/Add.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ lua:
description: "Modifies the existing angle, adding another angle to it."

arguments:
- name: "angle2"
type: Angle
- position: 1
name: "angle"
type: Angle
- position: 2
name: "angle2"
type: Angle
returns:
- type: Angle
description: "The added angle."
Expand Down
8 changes: 6 additions & 2 deletions docs/classes/Angle/Divide.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ lua:
description: "Modifies the existing angle, dividing it by a number."

arguments:
- name: "divideBy"
type: number
- position: 1
name: "angle"
type: Angle
- position: 2
name: "divideBy"
type: number
returns:
- type: Angle
description: "The divided angle."
Expand Down
5 changes: 4 additions & 1 deletion docs/classes/Angle/Forward.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ lua:
realm: shared
description: "Returns the forward vector of the angle."


arguments:
- position: 1
name: "angle"
type: Angle
returns:
- type: Vector
description: "The forward vector of the angle."
Expand Down
18 changes: 12 additions & 6 deletions docs/classes/Angle/Initialize.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,18 @@ lua:
description: "Initializes the angle with the specified values."

arguments:
- name: "x"
type: number
- name: "y"
type: number
- name: "z"
type: number
- position: 1
name: "angle"
type: Angle
- position: 2
name: "x"
type: number
- position: 3
name: "y"
type: number
- position: 4
name: "z"
type: number
returns:
- type: Angle
description: "The initialized angle."
Expand Down
5 changes: 4 additions & 1 deletion docs/classes/Angle/Invalidate.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ lua:
realm: shared
description: "Makes the angle invalid."


arguments:
- position: 1
name: "angle"
type: Angle
returns:
- type: Angle
description: "The invalidated angle."
Expand Down
13 changes: 9 additions & 4 deletions docs/classes/Angle/IsEqualWithTolerance.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,15 @@ lua:
description: "Checks if the angle is equal to another angle within a tolerance."

arguments:
- name: "other"
type: Angle
- name: "tolerance"
type: number
- position: 1
name: "angle"
type: Angle
- position: 2
name: "other"
type: Angle
- position: 3
name: "tolerance"
type: number
returns:
- type: boolean
description: "True if the angles are equal within the tolerance, false otherwise."
Expand Down
5 changes: 4 additions & 1 deletion docs/classes/Angle/IsValid.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ lua:
realm: shared
description: "Checks if the angle is valid."


arguments:
- position: 1
name: "angle"
type: Angle
returns:
- type: boolean
description: "True if the angle is valid, false otherwise."
Expand Down
5 changes: 4 additions & 1 deletion docs/classes/Angle/Length.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ lua:
realm: shared
description: "Returns the length of the angle."


arguments:
- position: 1
name: "angle"
type: Angle
returns:
- type: number
description: "The length of the angle."
Expand Down
5 changes: 4 additions & 1 deletion docs/classes/Angle/LengthSqr.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ lua:
realm: shared
description: "Returns the squared length of the angle."


arguments:
- position: 1
name: "angle"
type: Angle
returns:
- type: number
description: "The squared length of the angle."
Expand Down
5 changes: 4 additions & 1 deletion docs/classes/Angle/Normalize.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ lua:
realm: shared
description: "Modifies the existing angle, normalizing it between -180 to 180 degrees pitch, yaw and roll."


arguments:
- position: 1
name: "angle"
type: Angle
returns:
- type: Angle
description: "The same angle, now normalized."
Expand Down
5 changes: 4 additions & 1 deletion docs/classes/Angle/Right.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ lua:
realm: shared
description: "Returns the right vector of the angle."


arguments:
- position: 1
name: "angle"
type: Angle
returns:
- type: Vector
description: "The right vector of the angle."
Expand Down
13 changes: 9 additions & 4 deletions docs/classes/Angle/RotateAroundAxis.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,15 @@ lua:
description: "Rotates the angle around the specified axis by the specified degrees."

arguments:
- name: "axis"
type: Vector
- name: "degrees"
type: number
- position: 1
name: "angle"
type: Angle
- position: 2
name: "axis"
type: Vector
- position: 3
name: "degrees"
type: number
returns:
- type: Angle
description: "The rotated angle."
Expand Down
8 changes: 6 additions & 2 deletions docs/classes/Angle/Scale.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ lua:
description: "Modifies the existing angle, scaling it by a number."

arguments:
- name: "scaleBy"
type: number
- position: 1
name: "angle"
type: Angle
- position: 2
name: "scaleBy"
type: number
returns:
- type: Angle
description: "The same angle, now scaled."
Expand Down
5 changes: 4 additions & 1 deletion docs/classes/Angle/Up.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ lua:
realm: shared
description: "Returns the up vector of the angle."


arguments:
- position: 1
name: "angle"
type: Angle
returns:
- type: Vector
description: "The up vector of the angle."
Expand Down
8 changes: 6 additions & 2 deletions docs/classes/Angle/__add.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ lua:
description: "Metatable that is called when the angle is to be added to another angle."

arguments:
- name: "angle2"
type: Angle
- position: 1
name: "angle"
type: Angle
- position: 2
name: "angle2"
type: Angle
returns:
- type: Angle
description: "The added angle."
Expand Down
8 changes: 6 additions & 2 deletions docs/classes/Angle/__div.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ lua:
description: "Metatable that is called when the angle is to be divided by a number."

arguments:
- name: "number"
type: number
- position: 1
name: "angle"
type: Angle
- position: 2
name: "number"
type: number
returns:
- type: Angle
description: "The divided angle."
Expand Down
8 changes: 6 additions & 2 deletions docs/classes/Angle/__eq.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ lua:
description: "Metatable that is called when the angle is to be compared with another angle."

arguments:
- name: "angle2"
type: Angle
- position: 1
name: "angle"
type: Angle
- position: 2
name: "other"
type: Angle
returns:
- type: boolean
description: "True if the angles are equal, false otherwise."
Expand Down
8 changes: 6 additions & 2 deletions docs/classes/Angle/__index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ lua:
description: "Metatable that is called when a key is not found in the table."

arguments:
- name: "field"
type: string
- position: 1
name: "angle"
type: Angle
- position: 2
name: "field"
type: string
returns:
- type: any
description: "The value of the key."
Expand Down
8 changes: 6 additions & 2 deletions docs/classes/Angle/__mul.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ lua:
description: "Metatable that is called when the angle is to be multiplied by a number."

arguments:
- name: "number"
type: number
- position: 1
name: "angle"
type: Angle
- position: 2
name: "number"
type: number
returns:
- type: Angle
description: "The multiplied angle."
Expand Down
8 changes: 6 additions & 2 deletions docs/classes/Angle/__newindex.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ lua:
description: "Metatable that is called to set a value to a key that is not found in the table."

arguments:
- name: "field"
type: string
- position: 1
name: "angle"
type: Angle
- position: 2
name: "field"
type: string
returns:

---
Expand Down
8 changes: 6 additions & 2 deletions docs/classes/Angle/__sub.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ lua:
description: "Metatable that is called when the angle is to be subtracted from another angle."

arguments:
- name: "angle2"
type: Angle
- position: 1
name: "angle"
type: Angle
- position: 2
name: "angle2"
type: Angle
returns:
- type: Angle
description: "The subtracted angle."
Expand Down
5 changes: 4 additions & 1 deletion docs/classes/Angle/__tostring.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ lua:
realm: shared
description: "Metatable that is called when the angle is to be converted to a string."


arguments:
- position: 1
name: "angle"
type: Angle
returns:
- type: string
description: "The string representation of the angle."
Expand Down
5 changes: 4 additions & 1 deletion docs/classes/Angle/__unm.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ lua:
realm: shared
description: "Metatable that is called when the angle is to be negated."


arguments:
- position: 1
name: "angle"
type: Angle
returns:
- type: Angle
description: "The negated angle."
Expand Down
31 changes: 31 additions & 0 deletions docs/classes/AudioChannel/Get3dCone.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
template: lua-class-function.html
title: Get3dCone
icon: lua-shared
tags:
- lua
- shared
- needs-verification
- needs-example
lua:
library: AudioChannel
function: Get3dCone
realm: shared
description: "Gets the 3D cone of the audio channel"

arguments:
- position: 1
name: "audioChannel"
type: AudioChannel
returns:
- type: number
description: "The inner angle of the 3D cone"
- type: number
description: "The outer angle of the 3D cone"
- type: number
description: "The outer volume of the 3D cone"
---

<div class="lua__search__keywords">
AudioChannel:Get3dCone &#x2013; Gets the 3D cone of the audio channel
</div>
Loading

0 comments on commit a16db57

Please sign in to comment.