forked from MapComplete/MapComplete
Merge branches
This commit is contained in:
commit
bae90d50bc
304 changed files with 49983 additions and 31589 deletions
|
@ -165,7 +165,7 @@ export class GenerateDocs extends Script {
|
|||
this.generateForTheme(theme)
|
||||
})
|
||||
|
||||
this.WriteFile("./Docs/SpecialRenderings.md", SpecialVisualizations.HelpMessage(), [
|
||||
this.WriteMarkdownFile("./Docs/SpecialRenderings.md", SpecialVisualizations.HelpMessage(), [
|
||||
"src/UI/SpecialVisualizations.ts"
|
||||
])
|
||||
this.WriteFile(
|
||||
|
@ -244,7 +244,7 @@ export class GenerateDocs extends Script {
|
|||
let md = markdown
|
||||
|
||||
if (options?.noTableOfContents !== false) {
|
||||
md = TableOfContents.insertTocIntoMd(md)
|
||||
md = TableOfContents.insertTocIntoMd(md)
|
||||
}
|
||||
|
||||
md.replace(/\n\n\n+/g, "\n\n")
|
||||
|
|
|
@ -44,6 +44,7 @@ class ParseLayer extends Conversion<
|
|||
> {
|
||||
private readonly _prepareLayer: PrepareLayer
|
||||
private readonly _doesImageExist: DoesImageExist
|
||||
private readonly _options: { readonly addExpandedTagRenderingsToContext?: boolean }
|
||||
|
||||
constructor(prepareLayer: PrepareLayer, doesImageExist: DoesImageExist) {
|
||||
super("Parsed a layer from file, validates it", [], "ParseLayer")
|
||||
|
@ -287,9 +288,11 @@ class LayerOverviewUtils extends Script {
|
|||
tagRenderings: bootstrapTagRenderings,
|
||||
sharedLayers: null,
|
||||
publicLayers: null,
|
||||
}, {
|
||||
addTagRenderingsToContext: true
|
||||
})
|
||||
|
||||
let path = "assets/layers/questions/questions.json"
|
||||
const path = "assets/layers/questions/questions.json"
|
||||
const sharedQuestions = this.parseLayer(doesImageExist, prepareLayer, path).raw
|
||||
|
||||
const dict = new Map<string, QuestionableTagRenderingConfigJson>()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue