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