mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-05-24 02:09:17 +00:00
Convert heading anchors in markdown links to lowercase
This commit is contained in:
parent
3c95e51f06
commit
7b84293b01
@ -5,7 +5,7 @@ import { databases } from "../../data/databases";
|
|||||||
export function jsonToDocumentation(obj) {
|
export function jsonToDocumentation(obj) {
|
||||||
const documentationSummary = obj.tables
|
const documentationSummary = obj.tables
|
||||||
.map((table) => {
|
.map((table) => {
|
||||||
return `\t- [${table.name}](#${table.name})`;
|
return `\t- [${table.name}](#${table.name.toLowerCase()})`;
|
||||||
})
|
})
|
||||||
.join("\n");
|
.join("\n");
|
||||||
|
|
||||||
@ -84,7 +84,7 @@ export function jsonToDocumentation(obj) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
`# ${obj.title} documentation\n## Summary\n\n- [Introduction](#introduction)\n- [Database Type](#database-type)\n` +
|
`# ${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:** ` +
|
`## Introduction\n\n## Database type\n\n- **Database system:** ` +
|
||||||
`${databases[obj.database].name}\n## Table structure\n\n${documentationEntities}` +
|
`${databases[obj.database].name}\n## Table structure\n\n${documentationEntities}` +
|
||||||
`\n## Relationships\n\n${documentationRelationships}\n` +
|
`\n## Relationships\n\n${documentationRelationships}\n` +
|
||||||
|
Loading…
Reference in New Issue
Block a user