mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-23 23:53:44 +01:00
9232b79925
It looks much fancier now :D
25 lines
590 B
JavaScript
25 lines
590 B
JavaScript
const fs = require("fs");
|
|
const path = require("path");
|
|
const parse_sections = require("./lib/parse_sections.js");
|
|
|
|
const sections = parse_sections(fs.readFileSync(
|
|
path.resolve(
|
|
__dirname,
|
|
`../Chat-Command-Reference.md`
|
|
),
|
|
"utf-8"
|
|
));
|
|
|
|
console.log(`REFERENCE SECTION TITLES`, sections.slice(1)
|
|
.sort((a, b) => a.title.localeCompare(b.title)).map(s => s.title));
|
|
|
|
module.exports = {
|
|
layout: "theme.njk",
|
|
title: "Reference",
|
|
tags: "navigable",
|
|
date: "2001-01-01",
|
|
section_intro: sections[0],
|
|
sections_help: sections.slice(1)
|
|
.sort((a, b) => a.title.localeCompare(b.title))
|
|
}
|