forked from MapComplete/MapComplete
Docs: more tweaks to the documentation script, link to the new documentation site from MapComplete
This commit is contained in:
parent
4db64f7a6f
commit
8198bd9742
2 changed files with 3 additions and 6 deletions
|
@ -748,7 +748,7 @@ export class GenerateDocs extends Script {
|
|||
const allFiles = ScriptUtils.readDirRecSync("./Docs/" + subdirectory)
|
||||
.filter(path => path.endsWith(".md"))
|
||||
.filter(path => !path.startsWith("_"))
|
||||
.filter(path => !path.startsWith("./Docs/nl/") || path.startsWith("./Docs/" + subdirectory))
|
||||
.filter(path => !path.startsWith("./Docs/nl/") || (path.startsWith("./Docs/" + subdirectory) && subdirectory !== ""))
|
||||
.map(path => path.substring("./Docs/".length + subdirectory.length + 1))
|
||||
const perDirectory = new Map<string, string[]>()
|
||||
|
||||
|
@ -775,9 +775,6 @@ export class GenerateDocs extends Script {
|
|||
}
|
||||
}
|
||||
|
||||
perDirectory.delete("nl")
|
||||
|
||||
|
||||
// The directories to run over:
|
||||
const directories: [string, Translation | string][] = [
|
||||
["", ""],
|
||||
|
@ -852,7 +849,7 @@ export class GenerateDocs extends Script {
|
|||
} else {
|
||||
name = (<ThemeConfig>layer).title
|
||||
}
|
||||
layerinfo.push([`[${id}](./Layers/${id})`, name.textFor(subdir), (layer["shortDescription"] ?? layer.description)?.textFor(subdir)])
|
||||
layerinfo.push([`[${id}](./${type}/${id})`, name.textFor(subdir), (layer["shortDescription"] ?? layer.description)?.textFor(subdir)])
|
||||
}
|
||||
|
||||
const titles = {
|
||||
|
|
|
@ -118,7 +118,7 @@
|
|||
{#if theme.official}
|
||||
<a
|
||||
class="flex"
|
||||
href={"https://source.mapcomplete.org/MapComplete/MapComplete/src/branch/develop/Docs/Themes/" +
|
||||
href={"https://docs.mapcomplete.org/#/Themes/" +
|
||||
theme.id +
|
||||
".md"}
|
||||
target="_blank"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue