Skip to content

Commit

Permalink
Auto-merge for PR #827 via VersionBot
Browse files Browse the repository at this point in the history
Remove explicit anchor links in CLI docs
  • Loading branch information
resin-io-versionbot[bot] committed Mar 22, 2018
2 parents b388ccb + 12e8a50 commit 1032d99
Show file tree
Hide file tree
Showing 4 changed files with 112 additions and 111 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file
automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
This project adheres to [Semantic Versioning](http://semver.org/).

## v7.1.1 - 2018-03-22

* Remove explicit anchor links in CLI docs #827 [Zach Walchuk]

## v7.1.0 - 2018-03-22

* Warn early if deploying a multicontainer project to an incompatible app #818 [Akis Kesoglou]
Expand Down
7 changes: 2 additions & 5 deletions automation/capitanodoc/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ import * as utils from './utils';
import { Document, Category, Command } from './doc-types';

export function renderCommand(command: Command) {
let result = `## <a name="${getAnchor(command)}"></a>${ent.encode(
command.signature,
)}\n\n${command.help}\n`;
let result = `## ${ent.encode(command.signature)}\n\n${command.help}\n`;

if (!_.isEmpty(command.options)) {
result += '\n### Options';
Expand Down Expand Up @@ -42,8 +40,7 @@ function getAnchor(command: Command) {
.replace(/>/g, '-')
.replace(/\[/g, '-')
.replace(/\]/g, '-')
.replace(/--/g, '-')
.replace(/-$/, '')
.replace(/-+/g, '-')
.replace(/\.\.\./g, '')
.replace(/\|/g, '')
.toLowerCase()
Expand Down
Loading

0 comments on commit 1032d99

Please sign in to comment.