forked from MapComplete/MapComplete
Docs: some last tweaks
This commit is contained in:
parent
a634ec0850
commit
133fd6594b
49 changed files with 113 additions and 111 deletions
|
@ -46,7 +46,8 @@ class ToSlideshowJson {
|
|||
}
|
||||
|
||||
public convert() {
|
||||
const lines = readFileSync(this._source, "utf8").split("\n")
|
||||
const lines = readFileSync(this._source, "utf8")
|
||||
.split("\n")
|
||||
|
||||
const sections: string[][] = []
|
||||
let currentSection: string[] = []
|
||||
|
@ -55,8 +56,9 @@ class ToSlideshowJson {
|
|||
sections.push(currentSection)
|
||||
currentSection = []
|
||||
}
|
||||
line = line.replace('src="../../public/', 'src="./')
|
||||
line = line.replace('src="../../', 'src="./')
|
||||
line = line.replaceAll('src="https://mapcomplete.org/', 'src="./')
|
||||
line = line.replaceAll('src="../../public/', 'src="./')
|
||||
line = line.replaceAll('src="../../', 'src="./')
|
||||
currentSection.push(line)
|
||||
}
|
||||
sections.push(currentSection)
|
||||
|
@ -574,7 +576,7 @@ export class GenerateDocs extends Script {
|
|||
en: "Layers defined in this theme configuration file",
|
||||
nl: "Lagen gedefinieerd in dit kaartthema-bestand",
|
||||
})).textFor(lang))
|
||||
el.push(MarkdownUtils.list(layersToInline.map(id => `[${id}](#${id})`)))
|
||||
el.push(MarkdownUtils.list(layersToInline.map(l => `[${l.name?.textFor(lang) ?? ""} (\`${l.id}\`)](#${l.id})`)))
|
||||
|
||||
el.push(new Translation({
|
||||
en: "These layers can not be reused in different themes.",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue