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

Commit fafb6f6

Browse files
committed
fix: improve this in the CLI section
1 parent 11d81a9 commit fafb6f6

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
@@ -198,7 +198,9 @@ improveThis:
198198
1:
199199
matchPattern: '^/code-samples/.*'
200200
2:
201-
matchPattern: '^/docs-cli/.*'
201+
matchPattern: '^/tooling/docs-cli/.*'
202+
trimRootPath: "/tooling/docs-cli"
203+
baseUrl: "https://github.com/NativeScript/nativescript-cli/tree/master/docs/man_pages"
202204
3:
203205
matchPattern: '.*'
204206
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)