Skip to content
This repository was archived by the owner on Nov 17, 2022. It is now read-only.

Commit e3f5e0e

Browse files
authored
Merge pull request #1740 from NativeScript/etabakov/cli-improve-this
fix: improve this in the CLI section
2 parents 06d2431 + fafb6f6 commit e3f5e0e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

build/_config.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,9 @@ improveThis:
196196
1:
197197
matchPattern: '^/code-samples/.*'
198198
2:
199-
matchPattern: '^/docs-cli/.*'
199+
matchPattern: '^/tooling/docs-cli/.*'
200+
trimRootPath: "/tooling/docs-cli"
201+
baseUrl: "https://github.com/NativeScript/nativescript-cli/tree/master/docs/man_pages"
200202
3:
201203
matchPattern: '.*'
202204
baseUrl: "https://github.com/NativeScript/docs/blob/master/docs/"

build/_plugins/improvethis_generator.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ def getPageImproveThisUrl(page)
3434
pagePath = pagePath.gsub(updater, "")
3535
end
3636
if entry["baseUrl"]
37+
if entry["trimRootPath"]
38+
pagePath.sub!(entry["trimRootPath"], "")
39+
end
3740
# Ensure the baseUrl ends with a slash:
3841
baseUrl = File.join(entry["baseUrl"], "")
3942
resultUrl = "#{baseUrl}#{pagePath}"

0 commit comments

Comments
 (0)