MCPcopy Create free account
hub / github.com/TanStack/query / section

Function section

scripts/generate-docs.ts:775–782  ·  view source on GitHub ↗
(
      level: number,
      { id, title, table }: (typeof tables)[number],
    )

Source from the content-addressed store, hash-verified

773 // Property anchors are prefixed with the table's name, so they stay unique when two tables on
774 // the same page list the same properties.
775 const section = (
776 level: number,
777 { id, title, table }: (typeof tables)[number],
778 ) =>
779 `<a id="${id}"></a>\n\n${'#'.repeat(level)} ${title}\n\n${table.replace(
780 /<a id="([^"]+)"><\/a>/g,
781 `<a id="${id.replace(/-properties$/, '')}-$1"></a>`,
782 )}`
783
784 if (!isOverloaded) {
785 // Put each table at the end of the section it describes, so nothing is repeated.

Callers 1

addReferenceDetailsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected