Skip to content

Commit 917640f

Browse files
First Public look into the potentially final interface
1 parent 420894b commit 917640f

38 files changed

+2228
-29
lines changed

.github/workflows/doc.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: LDoc
2+
on: [ push, pull_request ]
3+
jobs:
4+
sile:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: Checkout
8+
uses: actions/checkout@v3
9+
- name: Generate docs with LDoc
10+
uses: lunarmodules/ldoc@latest

.vscode/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"Lua.diagnostics.globals": [
3+
"tparam_alias"
4+
]
5+
}

config.ld

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---@diagnostic disable: undefined-global, lowercase-global
2+
project = 'LDoc NS'
3+
title = 'NS LDoc documentation'
4+
description = 'List of Constructs'
5+
format = 'markdown'
6+
dir = 'docs/developer'
7+
output = 'index'
8+
file = {
9+
'D:/SteamLibrary/steamapps/common/GarrysMod/garrysmod/gamemodes/nutscript/docs/',
10+
'D:/SteamLibrary/steamapps/common/GarrysMod/garrysmod/gamemodes/nutscript/gamemode/',
11+
'D:/SteamLibrary/steamapps/common/GarrysMod/garrysmod/gamemodes/nutscript/plugins/',
12+
exclude = {'D:/SteamLibrary/steamapps/common/GarrysMod/garrysmod/gamemodes/nutscript/gamemode/core/libs/thirdparty', 'D:/SteamLibrary/steamapps/common/GarrysMod/garrysmod/gamemodes/nutscript/plugins/_disabled/'}
13+
}
14+
15+
ext = 'md'
16+
template = true
17+
multimodule = true
18+
merge = true
19+
simple_arg_list = true
20+
custom_tags = {
21+
{
22+
'realm',
23+
hidden = true
24+
},
25+
{
26+
'internal',
27+
hidden = true
28+
},
29+
{
30+
'pluginwarning',
31+
hidden = true
32+
}
33+
}
34+
35+
tparam_alias('client', 'Client')
36+
tparam_alias('character', 'Character')
37+
tparam_alias('vector', 'Vector')
38+
tparam_alias('angle', 'Angle')
39+
tparam_alias('entity', 'Entity')
40+
41+
kind_names = {
42+
topic = 'Manual',
43+
module = 'Libraries'
44+
}
45+
46+
new_type("client", "Client", true)
47+
new_type("plugin", "Plugins", true)
48+
new_type("hook", "Hooks", true)
49+
new_type("derma", "Derma", true)
50+
new_type("metaclass", "Class", true)
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
arrange:
1+
nav:
22
- index.md
3-
- guides
43
- developer
5-
- ...
4+
- guides
5+
- "*"

docs/assets/client.svg

Lines changed: 4 additions & 0 deletions
Loading

docs/assets/server.svg

Lines changed: 4 additions & 0 deletions
Loading

docs/assets/shared.svg

Lines changed: 4 additions & 0 deletions
Loading

docs/code.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

docs/developer/.nav.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
nav:
2+
- index.md
3+
- libraries
4+
- classes
5+
- hooks
6+
- plugins

docs/developer/classes.md

Whitespace-only changes.

0 commit comments

Comments
 (0)