Skip to content

Commit 5071fd3

Browse files
committed
Add explanation to generated pages
1 parent 07389f5 commit 5071fd3

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

pages/contribute.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
{ "title": "Contribute to JSHint", "url": "/contribute/", "template": "docs" }
22

3+
This page's content is sourced from [the JSHint project repository]({{
4+
urls.repo }}). If you spot an error, please [open an issue]({{ urls.newIssue
5+
}}) or (better yet) [make a pull request]({{ urls.newPullRequest }})!
6+
37
{{{ contributionGuidelines }}}

pages/options.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
<h1>JSHint Options</h1>
44

5-
<p>This is a complete list of all configuration options accepted by JSHint. If you see something missing,
6-
you should either <a href="https://github.com/jshint/jshint/issues/new">file a bug</a> or
7-
<a href="mailto:[email protected]">email me</a>.</p>
5+
6+
This page's content is sourced from <a href="{{ urls.repo }}">the JSHint
7+
project repository</a>. If you spot an error, please <a href="{{ urls.newIssue
8+
}}">open an issue</a> or (better yet) <a href="{{ urls.newPullRequest }}">make
9+
a pull request</a>!
810

911
<h3><a class="anchor" href="#enforcing-options" name="enforcing-options">Enforcing options</a></h3>
1012

plugins/variables.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@ var contributing = fs.readFileSync(
1414
);
1515
var context = {
1616
contributionGuidelines: translateFencedCode(contributing),
17-
version: pkg.version
17+
version: pkg.version,
18+
urls: {
19+
repo: "https://github.com/jshint/jshint",
20+
newIssue: "https://github.com/jshint/jshint/issues/new",
21+
newPullRequest: "https://github.com/jshint/jshint/compare"
22+
}
1823
};
1924

2025
/**

0 commit comments

Comments
 (0)