forked from MapComplete/MapComplete
		
	Docs: fix image sizes, remove links to github
This commit is contained in:
		
							parent
							
								
									ba2dea69ea
								
							
						
					
					
						commit
						67c74cb097
					
				
					 3 changed files with 8 additions and 11 deletions
				
			
		|  | @ -363,7 +363,7 @@ export class GenerateDocs extends Script { | |||
|         } | ||||
| 
 | ||||
|         allLayers.forEach((layer) => { | ||||
|             const element = layer.GenerateDocumentation( | ||||
|             const element = layer.generateDocumentation( | ||||
|                 themesPerLayer.get(layer.id), | ||||
|                 layerIsNeededBy, | ||||
|                 DependencyCalculator.getLayerDependencies(layer) | ||||
|  | @ -457,7 +457,7 @@ export class GenerateDocs extends Script { | |||
|         const qLayer = new LayerConfig(<LayerConfigJson>questions, "questions.json", true) | ||||
|         this.WriteMarkdownFile( | ||||
|             "./Docs/BuiltinQuestions.md", | ||||
|             qLayer.GenerateDocumentation([], new Map(), []), | ||||
|             qLayer.generateDocumentation([], new Map(), []), | ||||
|             ["assets/layers/questions/questions.json"] | ||||
|         ) | ||||
|     } | ||||
|  | @ -494,7 +494,7 @@ export class GenerateDocs extends Script { | |||
|             MarkdownUtils.list(theme.language.filter((ln) => ln !== "_context")), | ||||
|             "# Layers defined in this theme configuration file", | ||||
|             "These layers can not be reused in different themes.", | ||||
|             ...layersToInline.map((l) => l.GenerateDocumentation(null)), | ||||
|             ...layersToInline.map((l) => l.generateDocumentation(null)) | ||||
|         ].join("\n") | ||||
|         this.WriteMarkdownFile( | ||||
|             "./Docs/Themes/" + theme.id + ".md", | ||||
|  | @ -560,7 +560,7 @@ export class GenerateDocs extends Script { | |||
|             ...Utils.NoNull( | ||||
|                 Constants.priviliged_layers.map((id) => AllSharedLayers.sharedLayers.get(id)) | ||||
|             ).map((l) => | ||||
|                 l.GenerateDocumentation( | ||||
|                 l.generateDocumentation( | ||||
|                     themesPerLayer.get(l.id), | ||||
|                     layerIsNeededBy, | ||||
|                     DependencyCalculator.getLayerDependencies(l), | ||||
|  |  | |||
|  | @ -376,7 +376,7 @@ export default class LayerConfig extends WithContextLoader { | |||
|         return this.mapRendering.some((r) => r.location.has("point")) | ||||
|     } | ||||
| 
 | ||||
|     public GenerateDocumentation( | ||||
|     public generateDocumentation( | ||||
|         usedInThemes: string[], | ||||
|         layerIsNeededBy?: Map<string, string[]>, | ||||
|         dependencies: { | ||||
|  |  | |||
|  | @ -5,10 +5,7 @@ import { TagUtils } from "../../Logic/Tags/TagUtils" | |||
| import { And } from "../../Logic/Tags/And" | ||||
| import { Utils } from "../../Utils" | ||||
| import { Tag } from "../../Logic/Tags/Tag" | ||||
| import { | ||||
|     MappingConfigJson, | ||||
|     QuestionableTagRenderingConfigJson, | ||||
| } from "./Json/QuestionableTagRenderingConfigJson" | ||||
| import { MappingConfigJson, QuestionableTagRenderingConfigJson } from "./Json/QuestionableTagRenderingConfigJson" | ||||
| import Validators, { ValidatorType } from "../../UI/InputElement/Validators" | ||||
| import { TagRenderingConfigJson } from "./Json/TagRenderingConfigJson" | ||||
| import { RegexTag } from "../../Logic/Tags/RegexTag" | ||||
|  | @ -866,9 +863,9 @@ export default class TagRenderingConfig { | |||
|                     let icon = "" | ||||
|                     if (m.icon?.indexOf(";") < 0) { | ||||
|                         icon = | ||||
|                             "<img src='https://raw.githubusercontent.com/pietervdvn/MapComplete/develop/" + | ||||
|                             "<img width='38px' height='38px' src='https://dev.mapcomplete.org/" + | ||||
|                             m.icon + | ||||
|                             "' style='width: 3rem; height: 3rem'>" | ||||
|                             "'>" | ||||
|                     } | ||||
|                     const msgs: string[] = [ | ||||
|                         icon + | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue