diff --git a/cmd/docgen/docgen.go b/cmd/docgen/docgen.go
index a14742d..9332dfa 100644
--- a/cmd/docgen/docgen.go
+++ b/cmd/docgen/docgen.go
@@ -481,11 +481,17 @@ func main() {
if len(modu.Fields) != 0 {
f.WriteString("## Interface fields\n")
- for _, dps := range modu.Fields {
- f.WriteString(fmt.Sprintf("- `%s`: ", dps.FuncName))
- f.WriteString(strings.Join(dps.Doc, " "))
- f.WriteString("\n")
+
+ mdTable := md.NewTable(len(modu.Fields), 2)
+ mdTable.SetTitle(0, "")
+ mdTable.SetTitle(1, "")
+
+
+ for i, dps := range modu.Fields {
+ mdTable.SetContent(i, 0, dps.FuncName)
+ mdTable.SetContent(i, 1, strings.Join(dps.Doc, " "))
}
+ f.WriteString(mdTable.String())
f.WriteString("\n")
}
if len(modu.Properties) != 0 {
@@ -499,12 +505,12 @@ func main() {
}
if len(modu.Docs) != 0 {
- //f.WriteString("## Functions\n")
+ f.WriteString("## Functions\n")
for _, dps := range modu.Docs {
- f.WriteString(fmt.Sprintf("
", dps.FuncName))
if dps.IsMember {
continue
}
+ f.WriteString(fmt.Sprintf("
", dps.FuncName))
htmlSig := typeTag.ReplaceAllStringFunc(strings.Replace(modname + "." + dps.FuncSig, "<", `\<`, -1), func(typ string) string {
typName := typ[1:]
typLookup := typeTable[strings.ToLower(typName)]
@@ -550,6 +556,7 @@ func main() {
f.WriteString("\n\n")
}
f.WriteString("
")
+ f.WriteString("\n\n")
}
}
diff --git a/docs/api/bait.md b/docs/api/bait.md
index 292152f..468648f 100644
--- a/docs/api/bait.md
+++ b/docs/api/bait.md
@@ -41,6 +41,7 @@ this function will set the user prompt.
|
release(name, catcher)|Removes the `catcher` for the event with `name`.|
|
throw(name, ...args)|Throws a hook with `name` with the provided `args`|
+## Functions
bait.catch(name, cb)
@@ -57,7 +58,9 @@ ummm
`function` **`cb`**
?
-
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
+
+
diff --git a/docs/api/commander.md b/docs/api/commander.md
index fa641b4..20117af 100644
--- a/docs/api/commander.md
+++ b/docs/api/commander.md
@@ -43,6 +43,7 @@ name would suggest.
|deregister(name)|Deregisters any command registered with `name`|
|register(name, cb)|Register a command with `name` that runs `cb` when ran|
+## Functions
commander.deregister(name)
@@ -54,7 +55,9 @@ commander.deregister(name)
Deregisters any command registered with `name`
#### Parameters
This function has no parameters.
-
+
+
+
\ No newline at end of file
+
+
diff --git a/docs/api/fs.md b/docs/api/fs.md
index 64a2092..fff8877 100644
--- a/docs/api/fs.md
+++ b/docs/api/fs.md
@@ -25,6 +25,7 @@ I/O and filesystem functions.
|readdir(dir) -> {}|Returns a table of files in `dir`.|
|stat(path) -> {}|Returns a table of info about the `path`.|
+## Functions
fs.abs(path) -> string
@@ -36,7 +37,9 @@ fs.abs(path) -> string
Gives an absolute version of `path`.
#### Parameters
This function has no parameters.
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
+
+
diff --git a/docs/api/hilbish/_index.md b/docs/api/hilbish/_index.md
index 317ba5d..2fb9aa7 100644
--- a/docs/api/hilbish/_index.md
+++ b/docs/api/hilbish/_index.md
@@ -34,16 +34,19 @@ interfaces and functions which directly relate to shell functionality.
|which(name) -> string|Checks if `name` is a valid command.|
## Interface fields
-- `ver`: The version of Hilbish
-- `goVersion`: The version of Go that Hilbish was compiled with
-- `user`: Username of the user
-- `host`: Hostname of the machine
-- `dataDir`: Directory for Hilbish data files, including the docs and default modules
-- `interactive`: Is Hilbish in an interactive shell?
-- `login`: Is Hilbish the login shell?
-- `vimMode`: Current Vim input mode of Hilbish (will be nil if not in Vim input mode)
-- `exitCode`: xit code of the last executed command
+|||
+|----|----|
+|ver|The version of Hilbish|
+|goVersion|The version of Go that Hilbish was compiled with|
+|user|Username of the user|
+|host|Hostname of the machine|
+|dataDir|Directory for Hilbish data files, including the docs and default modules|
+|interactive|Is Hilbish in an interactive shell?|
+|login|Is Hilbish the login shell?|
+|vimMode|Current Vim input mode of Hilbish (will be nil if not in Vim input mode)|
+|exitCode|xit code of the last executed command|
+## Functions
hilbish.alias(cmd, orig)
@@ -55,7 +58,9 @@ hilbish.alias(cmd, orig)
Sets an alias of `cmd` to `orig`
#### Parameters
This function has no parameters.
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
## Types
+
+
+
## Types
## Sink
A sink is a structure that has input and/or output to/from
a desination.
diff --git a/docs/api/hilbish/hilbish.aliases.md b/docs/api/hilbish/hilbish.aliases.md
index da6cd65..b5d27a2 100644
--- a/docs/api/hilbish/hilbish.aliases.md
+++ b/docs/api/hilbish/hilbish.aliases.md
@@ -18,6 +18,7 @@ The alias interface deals with all command aliases in Hilbish.
|
list() -> table|Get a table of all aliases, with string keys as the alias and the value as the command.|
|
resolve(alias) -> command (string)|Tries to resolve an alias to its command.|
+## Functions
hilbish.aliases.add(alias, cmd)
@@ -29,7 +30,9 @@ hilbish.aliases.add(alias, cmd)
This is an alias (ha) for the `hilbish.alias` function.
#### Parameters
This function has no parameters.
-
+
+
+
+
+
+
+
+
+
\ No newline at end of file
+
+
diff --git a/docs/api/hilbish/hilbish.completions.md b/docs/api/hilbish/hilbish.completions.md
index 726e7e9..698140d 100644
--- a/docs/api/hilbish/hilbish.completions.md
+++ b/docs/api/hilbish/hilbish.completions.md
@@ -18,6 +18,7 @@ The completions interface deals with tab completions.
|
bins(query, ctx, fields) -> entries (table), prefix (string)|Returns binary/executale completion candidates based on the provided query.|
|
files(query, ctx, fields) -> entries (table), prefix (string)|Returns file completion candidates based on the provided query.|
+## Functions
hilbish.completions.call(name, query, ctx, fields) -> completionGroups (table), prefix (string)
@@ -32,7 +33,9 @@ of `command.name`, example: `command.git`.
You can check `doc completions` for info on the `completionGroups` return value.
#### Parameters
This function has no parameters.
-
+
+
+
+
+
+
+
+
+
\ No newline at end of file
+
+
diff --git a/docs/api/hilbish/hilbish.editor.md b/docs/api/hilbish/hilbish.editor.md
index 38b247e..ee55580 100644
--- a/docs/api/hilbish/hilbish.editor.md
+++ b/docs/api/hilbish/hilbish.editor.md
@@ -19,6 +19,7 @@ directly interact with the line editor in use.
|
insert(text)|Inserts text into the line.|
|
setVimRegister(register, text)|Sets the vim register at `register` to hold the passed text.|
+## Functions
hilbish.editor.getLine() -> string
@@ -30,7 +31,9 @@ hilbish.editor.getLine() -> string
Returns the current input line.
#### Parameters
This function has no parameters.
-
+
+
+
+
+
+
+
+
+
\ No newline at end of file
+
+
diff --git a/docs/api/hilbish/hilbish.history.md b/docs/api/hilbish/hilbish.history.md
index 0f60370..dee087a 100644
--- a/docs/api/hilbish/hilbish.history.md
+++ b/docs/api/hilbish/hilbish.history.md
@@ -21,6 +21,7 @@ method of saving history.
|
get(idx)|Retrieves a command from the history based on the `idx`.|
|
size() -> number|Returns the amount of commands in the history.|
+## Functions
hilbish.history.add(cmd)
@@ -32,7 +33,9 @@ hilbish.history.add(cmd)
Adds a command to the history.
#### Parameters
This function has no parameters.
-
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
+
+
diff --git a/docs/api/hilbish/hilbish.jobs.md b/docs/api/hilbish/hilbish.jobs.md
index f27bc98..ecc045e 100644
--- a/docs/api/hilbish/hilbish.jobs.md
+++ b/docs/api/hilbish/hilbish.jobs.md
@@ -23,6 +23,7 @@ interactive usage or with the functions defined below for use in external runner
|
get(id) -> @Job|Get a job object via its ID.|
|
last() -> @Job|Returns the last added job from the table.|
+## Functions
hilbish.jobs.add(cmdstr, args, execPath)
@@ -34,7 +35,9 @@ hilbish.jobs.add(cmdstr, args, execPath)
Adds a new job to the job table. Note that this does not immediately run it.
#### Parameters
This function has no parameters.
-
+
+
+
+
+
+
+
diff --git a/docs/api/hilbish/hilbish.timers.md b/docs/api/hilbish/hilbish.timers.md
index 20efd7c..186c1af 100644
--- a/docs/api/hilbish/hilbish.timers.md
+++ b/docs/api/hilbish/hilbish.timers.md
@@ -37,9 +37,12 @@ print(t.running) // true
|
get(id) -> @Timer|Retrieves a timer via its ID.|
## Interface fields
-- `INTERVAL`: Constant for an interval timer type
-- `TIMEOUT`: Constant for a timeout timer type
+|||
+|----|----|
+|INTERVAL|Constant for an interval timer type|
+|TIMEOUT|Constant for a timeout timer type|
+## Functions
hilbish.timers.create(type, time, callback) -> Timer
@@ -52,7 +55,9 @@ Creates a timer that runs based on the specified `time` in milliseconds.
The `type` can either be `hilbish.timers.INTERVAL` or `hilbish.timers.TIMEOUT`
#### Parameters
This function has no parameters.
-
+
+
+
hilbish.timers.get(id) -> Timer
@@ -63,7 +68,9 @@ hilbish.timers.get(id) -> setRaw()|Puts the terminal in raw mode|
|size()|Gets the dimensions of the terminal. Returns a table with `width` and `height`|
+## Functions
terminal.restoreState()
@@ -29,7 +30,9 @@ terminal.restoreState()
Restores the last saved state of the terminal
#### Parameters
This function has no parameters.
-
+
+
+
+
+
+
+
+
+
\ No newline at end of file
+
+
diff --git a/website/themes/hsh/layouts/partials/head.html b/website/themes/hsh/layouts/partials/head.html
index 8299693..6109fb5 100644
--- a/website/themes/hsh/layouts/partials/head.html
+++ b/website/themes/hsh/layouts/partials/head.html
@@ -60,6 +60,7 @@
border-style: solid;
border-color: #565c64;;
border-collapse: collapse;
+ margin-bottom: 12px;
}
table td {