Skip to content

Commit dee55bb

Browse files
author
Luca Forstner
authored
docs: Fix anchor tags in READMEs (#324)
1 parent 743bb1b commit dee55bb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/dev-utils/src/generate-documentation-table.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,9 @@ function generateTableOfContents(
356356
return nodes
357357
.map((node) => {
358358
const id = `${parentId}-${node.name.toLowerCase()}`;
359-
let output = `${" ".repeat(depth)}- [\`${node.name}\`](#${id})`;
359+
let output = `${" ".repeat(depth)}- [\`${node.name}\`](#${id
360+
.replace(/\./g, "")
361+
.toLowerCase()})`;
360362
if (node.children && depth <= 0) {
361363
output += "\n";
362364
output += generateTableOfContents(depth + 1, id, node.children);
@@ -375,7 +377,7 @@ function generateDescriptions(
375377
.map((node) => {
376378
const name = parentName === undefined ? node.name : `${parentName}.${node.name}`;
377379
const id = `${parentId}-${node.name.toLowerCase()}`;
378-
let output = `### <a name="${id}"></a>\`${name}\`
380+
let output = `### \`${name}\`
379381
380382
${node.type === undefined ? "" : `Type: \`${node.type}\``}
381383

packages/esbuild-plugin/src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ function esbuildDebugIdInjectionPlugin(): UnpluginOptions {
5151
} else {
5252
return {
5353
pluginName,
54-
// needs to be an abs path, otherwise esbuild will complain
55-
path: path.isAbsolute(args.path) ? args.path : path.join(args.resolveDir, args.path),
5654
pluginData: {
5755
isProxyResolver: true,
5856
originalPath: args.path,

0 commit comments

Comments
 (0)