Convert heading anchors in markdown links to lowercase (#416)

This commit is contained in:
wil wu 2025-04-22 00:13:28 +08:00 committed by GitHub
parent 3c95e51f06
commit 9ff6d50ff2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,7 +5,7 @@ import { databases } from "../../data/databases";
export function jsonToDocumentation(obj) {
const documentationSummary = obj.tables
.map((table) => {
return `\t- [${table.name}](#${table.name})`;
return `\t- [${table.name}](#${table.name.toLowerCase()})`;
})
.join("\n");
@ -84,7 +84,7 @@ export function jsonToDocumentation(obj) {
return (
`# ${obj.title} documentation\n## Summary\n\n- [Introduction](#introduction)\n- [Database Type](#database-type)\n` +
`- [Table Structure](#table-structure)\n${documentationSummary}\n- [Relationships](#relationships)\n- [Database Diagram](#database-Diagram)\n\n` +
`- [Table Structure](#table-structure)\n${documentationSummary}\n- [Relationships](#relationships)\n- [Database Diagram](#database-diagram)\n\n` +
`## Introduction\n\n## Database type\n\n- **Database system:** ` +
`${databases[obj.database].name}\n## Table structure\n\n${documentationEntities}` +
`\n## Relationships\n\n${documentationRelationships}\n` +