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:
8
tools/clean-locales.js
Normal file
8
tools/clean-locales.js
Normal 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, () => {}));
|
||||
});
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user