1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-09-08 23:50:43 +02:00

updated 3d normals

This commit is contained in:
Pomax
2018-07-13 18:14:31 -07:00
parent 548557575d
commit 3b3131136f
19 changed files with 435 additions and 270 deletions

8
tools/clean-locales.js Normal file
View File

@@ -0,0 +1,8 @@
var findLocales = require('./find-locales');
var rimraf = require('rimraf');
var fs = require('fs');
var path = require('path');
findLocales( locales => {
locales.forEach( locale => rimraf(locale, () => {}));
});

View File

@@ -175,6 +175,7 @@ function writeContentBundle(locale, content) {
// Write the actual locale directory and generate a locale-specific index.html
var html = fs.readFileSync('./index.template.html').toString();
var preface = content.preface.getContent.replace(/<SectionHeader name="preface" title="([^"]+)"\/>/, "<h2>$1</h2>");
html = html.replace("<!doctype html>", "<!-- AUTOGENERATED CONTENT, PLEASE EDIT 'index.template.html' INSTEAD! -->\n<!doctype html>");
html = html.replace("{{ PREFACE }}", preface);
html = html.replace("{{ locale }}", locale);
fs.ensureDirSync(locale);