Merge pull request #1111 from balena-io/fix-docs-toc

Fix regression in ee75ff and restore functionality to ToC in docs
This commit is contained in:
Chris Crocker-White 2019-02-22 17:53:12 +00:00 committed by GitHub
commit 6190d00644
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 51 additions and 50 deletions

View File

@ -41,6 +41,7 @@ function getAnchor(command: Command) {
.replace(/\[/g, '-')
.replace(/\]/g, '-')
.replace(/-+/g, '-')
.replace(/-$/, '')
.replace(/\.\.\./g, '')
.replace(/\|/g, '')
.toLowerCase()

View File

@ -81,15 +81,15 @@ environment variable (in the same standard URL format).
- Api keys
- [api-key generate <name>](#api-key-generate-name-)
- [api-key generate <name>](#api-key-generate-name)
- Application
- [app create <name>](#app-create-name-)
- [app create <name>](#app-create-name)
- [apps](#apps)
- [app <name>](#app-name-)
- [app restart <name>](#app-restart-name-)
- [app rm <name>](#app-rm-name-)
- [app <name>](#app-name)
- [app restart <name>](#app-restart-name)
- [app rm <name>](#app-rm-name)
- Authentication
@ -101,37 +101,37 @@ environment variable (in the same standard URL format).
- Device
- [devices](#devices)
- [device <uuid>](#device-uuid-)
- [device <uuid>](#device-uuid)
- [devices supported](#devices-supported)
- [device register <application>](#device-register-application-)
- [device rm <uuid>](#device-rm-uuid-)
- [device identify <uuid>](#device-identify-uuid-)
- [device reboot <uuid>](#device-reboot-uuid-)
- [device shutdown <uuid>](#device-shutdown-uuid-)
- [device public-url enable <uuid>](#device-public-url-enable-uuid-)
- [device public-url disable <uuid>](#device-public-url-disable-uuid-)
- [device public-url <uuid>](#device-public-url-uuid-)
- [device public-url status <uuid>](#device-public-url-status-uuid-)
- [device rename <uuid> [newName]](#device-rename-uuid-newname-)
- [device move <uuid>](#device-move-uuid-)
- [device register <application>](#device-register-application)
- [device rm <uuid>](#device-rm-uuid)
- [device identify <uuid>](#device-identify-uuid)
- [device reboot <uuid>](#device-reboot-uuid)
- [device shutdown <uuid>](#device-shutdown-uuid)
- [device public-url enable <uuid>](#device-public-url-enable-uuid)
- [device public-url disable <uuid>](#device-public-url-disable-uuid)
- [device public-url <uuid>](#device-public-url-uuid)
- [device public-url status <uuid>](#device-public-url-status-uuid)
- [device rename <uuid> [newName]](#device-rename-uuid-newname)
- [device move <uuid>](#device-move-uuid)
- [device init](#device-init)
- Environment Variables
- [envs](#envs)
- [env rm <id>](#env-rm-id-)
- [env add <key> [value]](#env-add-key-value-)
- [env rename <id> <value>](#env-rename-id-value-)
- [env rm <id>](#env-rm-id)
- [env add <key> [value]](#env-add-key-value)
- [env rename <id> <value>](#env-rename-id-value)
- Tags
- [tags](#tags)
- [tag set <tagKey> [value]](#tag-set-tagkey-value-)
- [tag rm <tagKey>](#tag-rm-tagkey-)
- [tag set <tagKey> [value]](#tag-set-tagkey-value)
- [tag rm <tagKey>](#tag-rm-tagkey)
- Help
- [help [command...]](#help-command-)
- [help [command...]](#help-command)
- Information
@ -140,49 +140,49 @@ environment variable (in the same standard URL format).
- Keys
- [keys](#keys)
- [key <id>](#key-id-)
- [key rm <id>](#key-rm-id-)
- [key add <name> [path]](#key-add-name-path-)
- [key <id>](#key-id)
- [key rm <id>](#key-rm-id)
- [key add <name> [path]](#key-add-name-path)
- Logs
- [logs <uuid>](#logs-uuid-)
- [logs <uuid>](#logs-uuid)
- Sync
- [sync [uuid]](#sync-uuid-)
- [sync [uuid]](#sync-uuid)
- SSH
- [ssh [uuid]](#ssh-uuid-)
- [ssh [uuid]](#ssh-uuid)
- Notes
- [note <|note>](#note-note-)
- [note <|note>](#note-note)
- OS
- [os versions <type>](#os-versions-type-)
- [os download <type>](#os-download-type-)
- [os build-config <image> <device-type>](#os-build-config-image-device-type-)
- [os configure <image>](#os-configure-image-)
- [os initialize <image>](#os-initialize-image-)
- [os versions <type>](#os-versions-type)
- [os download <type>](#os-download-type)
- [os build-config <image> <device-type>](#os-build-config-image-device-type)
- [os configure <image>](#os-configure-image)
- [os initialize <image>](#os-initialize-image)
- Config
- [config read](#config-read)
- [config write <key> <value>](#config-write-key-value-)
- [config inject <file>](#config-inject-file-)
- [config write <key> <value>](#config-write-key-value)
- [config inject <file>](#config-inject-file)
- [config reconfigure](#config-reconfigure)
- [config generate](#config-generate)
- Preload
- [preload <image>](#preload-image-)
- [preload <image>](#preload-image)
- Push
- [push <applicationOrDevice>](#push-applicationordevice-)
- [push <applicationOrDevice>](#push-applicationordevice)
- Settings
@ -190,27 +190,27 @@ environment variable (in the same standard URL format).
- Wizard
- [quickstart [name]](#quickstart-name-)
- [quickstart [name]](#quickstart-name)
- Local
- [local configure <target>](#local-configure-target-)
- [local flash <image>](#local-flash-image-)
- [local logs [deviceIp]](#local-logs-deviceip-)
- [local configure <target>](#local-configure-target)
- [local flash <image>](#local-flash-image)
- [local logs [deviceIp]](#local-logs-deviceip)
- [local scan](#local-scan)
- [local ssh [deviceIp]](#local-ssh-deviceip-)
- [local push [deviceIp]](#local-push-deviceip-)
- [local stop [deviceIp]](#local-stop-deviceip-)
- [local ssh [deviceIp]](#local-ssh-deviceip)
- [local push [deviceIp]](#local-push-deviceip)
- [local stop [deviceIp]](#local-stop-deviceip)
- Deploy
- [build [source]](#build-source-)
- [deploy <appName> [image]](#deploy-appname-image-)
- [build [source]](#build-source)
- [deploy <appName> [image]](#deploy-appname-image)
- Platform
- [join [deviceIp]](#join-deviceip-)
- [leave [deviceIp]](#leave-deviceip-)
- [join [deviceIp]](#join-deviceip)
- [leave [deviceIp]](#leave-deviceip)
- Utilities