Small fixes
This commit is contained in:
parent
2dcc5b21f5
commit
42ec7a1eb5
2 changed files with 16 additions and 6 deletions
|
@ -3,9 +3,9 @@ import State from "../State";
|
|||
import opening_hours from "opening_hours";
|
||||
import {And, Or, Tag} from "./Tags";
|
||||
import {Utils} from "../Utils";
|
||||
import CountryCoder from "latlon2country"
|
||||
import {UIElement} from "../UI/UIElement";
|
||||
import Combine from "../UI/Base/Combine";
|
||||
import CountryCoder from "latlon2country"
|
||||
|
||||
class SimpleMetaTagger {
|
||||
public readonly keys: string[];
|
||||
|
|
|
@ -2,10 +2,20 @@ import {Utils} from "../Utils";
|
|||
Utils.runningFromConsole = true;
|
||||
import SpecialVisualizations from "../UI/SpecialVisualizations";
|
||||
import {existsSync, mkdirSync, readFileSync, writeFile, writeFileSync} from "fs";
|
||||
import {UIElement} from "../UI/UIElement";
|
||||
import MetaTagging from "../Logic/MetaTagging";
|
||||
|
||||
|
||||
const html = SpecialVisualizations.HelpMessage.InnerRender();
|
||||
var TurndownService = require('turndown')
|
||||
const md = new TurndownService().turndown(html);
|
||||
writeFileSync("./Docs/SpecialRenderings.md", md)
|
||||
console.log("Generated docs")
|
||||
const TurndownService = require('turndown')
|
||||
|
||||
function WriteFile(filename, html: UIElement) : void {
|
||||
const md = new TurndownService().turndown(html.InnerRender());
|
||||
writeFileSync(filename, md);
|
||||
}
|
||||
|
||||
WriteFile("./Docs/SpecialRenderings.md", SpecialVisualizations.HelpMessage)
|
||||
// WriteFile("./Docs/CalculatedTags.md", MetaTagging.HelpText())
|
||||
|
||||
|
||||
console.log("Generated docs")
|
||||
|
||||
|
|
Loading…
Reference in a new issue