Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
docs(dotnet): fix broken generated docs links (#13425)
Max Schmitt65395d651c09
diff --git a/utils/doclint/xmlDocumentation.js b/utils/doclint/dotnetXmlDocumentation.jssimilarity index 94%rename from utils/doclint/xmlDocumentation.jsrename to utils/doclint/dotnetXmlDocumentation.jsindex 898e924147..a6627a1722 100644--- a/utils/doclint/xmlDocumentation.js+++ b/utils/doclint/dotnetXmlDocumentation.js@@ -119,6 +119,9 @@ function _wrapAndEscape(node, maxColumns = 0) {let text = node.text;text = text.replace(/\[([^\]]*)\]\((.*?)\)/g, (match, linkName, linkUrl) => {+ const isInternal = !linkUrl.startsWith('http://') && !linkUrl.startsWith('https://');+ if (isInternal)+ linkUrl = new URL(linkUrl.replace('.md', ''), 'https://playwright.dev/dotnet/docs/api/').toString();return `<a href="${linkUrl}">${linkName}</a>`;});text = text.replace(/(?<!`)\[(.*?)\]/g, (match, link) => `<see cref="${link}"/>`);diff --git a/utils/doclint/generateDotnetApi.js b/utils/doclint/generateDotnetApi.jsindex 75693be874..eedf19ad50 100644--- a/utils/doclint/generateDotnetApi.js+++ b/utils/doclint/generateDotnetApi.js@@ -19,7 +19,7 @@const path = require('path');// eslint-disable-next-line @typescript-eslint/no-unused-varsconst Documentation = require('./documentation');-const XmlDoc = require('./xmlDocumentation');+const XmlDoc = require('./dotnetXmlDocumentation');const PROJECT_DIR = path.join(__dirname, '..', '..');const fs = require('fs');const { parseApi } = require('./api_parser');