Skip to content

Commit

Permalink
Add postdoc.config.js under eslint check.
Browse files Browse the repository at this point in the history
  • Loading branch information
garg3133 committed Apr 1, 2024
1 parent f9050ac commit 2289e7f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"optimize": "node build/optimize.js",
"netlify": "npm run clone:docs && npm run clone:nightwatch && npm run build",
"partytown": "partytown copylib public/~partytown",
"eslint": "eslint src --quiet"
"eslint": "eslint src postdoc.config.js --quiet"
},
"author": "Andrei Rusu <[email protected]>",
"license": "MIT",
Expand Down
10 changes: 5 additions & 5 deletions postdoc.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const {
MD_DOCS_FOLDER = './docs',
API_DOCS_FOLDER = resolve('../nightwatch/lib/api'),
EXAMPLES_FOLDER = 'node_modules/nightwatch-examples/tests',
WEBDRIVER_SPEC_URL = 'https://w3c.github.io/webdriver',
WEBDRIVER_SPEC_URL = 'https://w3c.github.io/webdriver'
} = env;

export default {
Expand All @@ -31,7 +31,7 @@ export default {
output: './out',
includes: 'src/includes',
layouts: 'src/pages',
content: MD_DOCS_FOLDER,
content: MD_DOCS_FOLDER
},

ignore: {
Expand All @@ -45,7 +45,7 @@ export default {
layout: 'api/index.ejs',

createUrl(filePath) {
let fileName = basename(filePath, extname(filePath));
const fileName = basename(filePath, extname(filePath));

if (filePath.startsWith(sep + join('expect', 'assertions', 'elements'))) {
return `/api/expect/elements/${fileName}.html`;
Expand Down Expand Up @@ -88,7 +88,7 @@ export default {
appSettings: {
version: NIGHTWATCH_VERSION,
baseUrl: BASE_URL,
webdriverSpecUrl : WEBDRIVER_SPEC_URL,
webdriverSpecUrl: WEBDRIVER_SPEC_URL,
apiRepoUrl: 'https://github.com',
githubRepo: 'nightwatchjs/nightwatch',
docsRepoUrl: 'https://github.com/nightwatchjs/nightwatch-docs/blob/',
Expand All @@ -104,4 +104,4 @@ export default {
logger: {
quiet: false
}
};
};
2 changes: 1 addition & 1 deletion src/includes/api-method.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ npx nightwatch <%- method.exampleLink %></code></pre>
<li><code><a href="<%- method.link %>" target="_blank"><%= method.link %></a></code></li>
<% } else { %>
<li><code><a href="<%- appSettings.webdriverSpecUrl + method.link %>" target="_blank"><%= method.link %></a></code></li>
<% } %>
<% } %>
</ul>
<% } %>
<% } %>

0 comments on commit 2289e7f

Please sign in to comment.