From f9050ac60232e223630afc41936326e8d32232b1 Mon Sep 17 00:00:00 2001 From: Krishna Parmar <62243565+ParmarKrishna@users.noreply.github.com> Date: Mon, 1 Apr 2024 17:46:43 +0530 Subject: [PATCH] Fix links in "W3C Webdriver Spec" section of the API docs (#294) --- postdoc.config.js | 6 ++++-- src/includes/api-method.ejs | 8 ++++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/postdoc.config.js b/postdoc.config.js index 1cb9bbda..e741b162 100644 --- a/postdoc.config.js +++ b/postdoc.config.js @@ -6,7 +6,8 @@ const { BASE_URL = 'https://nightwatchjs.org', MD_DOCS_FOLDER = './docs', API_DOCS_FOLDER = resolve('../nightwatch/lib/api'), - EXAMPLES_FOLDER = 'node_modules/nightwatch-examples/tests' + EXAMPLES_FOLDER = 'node_modules/nightwatch-examples/tests', + WEBDRIVER_SPEC_URL = 'https://w3c.github.io/webdriver', } = env; export default { @@ -87,6 +88,7 @@ export default { appSettings: { version: NIGHTWATCH_VERSION, baseUrl: BASE_URL, + webdriverSpecUrl : WEBDRIVER_SPEC_URL, apiRepoUrl: 'https://github.com', githubRepo: 'nightwatchjs/nightwatch', docsRepoUrl: 'https://github.com/nightwatchjs/nightwatch-docs/blob/', @@ -102,4 +104,4 @@ export default { logger: { quiet: false } -}; +}; \ No newline at end of file diff --git a/src/includes/api-method.ejs b/src/includes/api-method.ejs index da647c17..9fc71178 100644 --- a/src/includes/api-method.ejs +++ b/src/includes/api-method.ejs @@ -142,8 +142,12 @@ npx nightwatch <%- method.exampleLink %> <% if (method.link) { %>

W3C WebDriver spec

-