A few fixes to docs generation and default config (#4570)

* A few fixes to docs generation and default config

* A few more fixes
This commit is contained in:
JT
2022-02-20 15:20:41 -05:00
committed by GitHub
parent 6024a17a5b
commit 2ba12afb01
9 changed files with 88 additions and 62 deletions

View File

@ -1,16 +0,0 @@
---
title: git checkout
layout: command
version: 0.59.0
---
## Signature
```> git checkout (branch)```
## Parameters
- `branch`:

View File

@ -1,17 +0,0 @@
---
title: git push
layout: command
version: 0.59.0
---
## Signature
```> git push (remote) (branch)```
## Parameters
- `remote`:
- `branch`:

View File

@ -8,7 +8,7 @@ Post a body to a URL (HTTP POST operation).
## Signature
```> post (path) (body) --user --password --content-type --content-length --raw --insecure```
```> post (path) (body) --user --password --content-type --content-length --headers --raw --insecure```
## Parameters
@ -18,6 +18,7 @@ Post a body to a URL (HTTP POST operation).
- `--password {any}`: the password when authenticating
- `--content-type {any}`: the MIME type of content to post
- `--content-length {any}`: the length of the content being posted
- `--headers {any}`: custom headers you want to add
- `--raw`: return values as a string instead of a table
- `--insecure`: allow insecure server connections when using SSL
@ -33,3 +34,8 @@ Post content to url.com, with username and password
> post -u myuser -p mypass url.com 'body'
```
Post content to url.com, with custom header
```shell
> post -H [my-header-key my-header-value] url.com
```

View File

@ -1,6 +1,6 @@
let vers = (version).version
for command in ($scope.commands | where is_custom == $false) {
for command in ($scope.commands | where is_custom == $false && is_external == $false) {
let top = $"---
title: ($command.command)
layout: command
@ -61,5 +61,6 @@ $"($example.description)
let safe_name = ($command.command | str find-replace '\?' '' | str find-replace ' ' '_')
$doc | save --raw $"./docs/commands/($safe_name).md"
$"./docs/commands/($safe_name).md"
} | length | $"($in) commands written"