mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-05-23 17:59:19 +00:00
Convert heading anchors in markdown links to lowercase (#416)
This commit is contained in:
parent
3c95e51f06
commit
9ff6d50ff2
@ -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` +
|
||||
|
Loading…
Reference in New Issue
Block a user