forked from MapComplete/MapComplete
		
	Fix documentation generation
This commit is contained in:
		
							parent
							
								
									a73cd434d6
								
							
						
					
					
						commit
						18b41b3bd8
					
				
					 2 changed files with 33 additions and 33 deletions
				
			
		|  | @ -11,11 +11,11 @@ | |||
|     + [string](#string) | ||||
|     + [text](#text) | ||||
|     + [date](#date) | ||||
|     + [direction](#direction) | ||||
|     + [length](#length) | ||||
|     + [wikidata](#wikidata) | ||||
|     + [int](#int) | ||||
|     + [nat](#nat) | ||||
|     + [int](#int) | ||||
|     + [decimal](#decimal) | ||||
|     + [direction](#direction) | ||||
|     + [wikidata](#wikidata) | ||||
|     + [pnat](#pnat) | ||||
|     + [float](#float) | ||||
|     + [pfloat](#pfloat) | ||||
|  | @ -35,7 +35,7 @@ The listed types here trigger a special input element. Use them in `tagrendering | |||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| A basic string | ||||
| A simple piece of text | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  | @ -43,7 +43,7 @@ A basic string | |||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| A string, but allows input of longer strings more comfortably and supports newlines (a text area) | ||||
| A longer piece of text | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  | @ -51,7 +51,31 @@ A string, but allows input of longer strings more comfortably and supports newli | |||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| A date | ||||
| A date with date picker | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| ### nat  | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| A positive number or zero | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| ### int  | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| A number | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| ### decimal  | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| A geographical length in meters (rounded at two points). Will give an extra minimap with a measurement tool. Arguments: [ zoomlevel, preferredBackgroundMapType (comma separated) ], e.g. `["21", "map,photo"] | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  | @ -63,14 +87,6 @@ A geographical direction, in degrees. 0° is north, 90° is east, ... Will retur | |||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| ### length  | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| A geographical length in meters (rounded at two points). Will give an extra minimap with a measurement tool. Arguments: [ zoomlevel, preferredBackgroundMapType (comma separated) ], e.g. `["21", "map,photo"] | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| ### wikidata  | ||||
| 
 | ||||
| 
 | ||||
|  | @ -118,22 +134,6 @@ removePostfixes | remove these snippets of text from the end of the passed strin | |||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| ### int  | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| A number | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| ### nat  | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| A positive number or zero | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| ### pnat  | ||||
| 
 | ||||
| 
 | ||||
|  | @ -154,7 +154,7 @@ A decimal | |||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| A positive decimal (incl zero) | ||||
| A positive decimal (inclusive zero) | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
|  | @ -71,7 +71,7 @@ export default class LayoutConfig { | |||
|         this.credits = json.credits; | ||||
|         this.version = json.version; | ||||
|         this.language = json.mustHaveLanguage ?? Array.from(Object.keys(json.title)); | ||||
|         this.usedImages = Array.from(new ExtractImages().convertStrict(json, "while extracting the images of " + json.id + " " + context ?? "")).sort() | ||||
|         this.usedImages = Array.from(new ExtractImages(official).convertStrict(json, "while extracting the images of " + json.id + " " + context ?? "")).sort() | ||||
|         { | ||||
|             if (typeof json.title === "string") { | ||||
|                 throw `The title of a theme should always be a translation, as it sets the corresponding languages (${context}.title). The themenID is ${this.id}; the offending object is ${JSON.stringify(json.title)} which is a ${typeof json.title})` | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue