aboutsummaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
authorDevine Lu Linvega <aliceffekt@gmail.com>2018-01-10 09:39:11 +1300
committerDevine Lu Linvega <aliceffekt@gmail.com>2018-01-10 09:39:11 +1300
commit7d22bcdaa1fd3bbf6765e4af98a81ff397b952bf (patch)
tree4a4fd2beb5d0d33db2478339d63640208b758645 /index.js
parent0019376b9784c9046c6497886d996a70b54eac65 (diff)
Added new themes
Diffstat (limited to 'index.js')
-rw-r--r--index.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/index.js b/index.js
index 35a347a..c468384 100644
--- a/index.js
+++ b/index.js
@@ -1,5 +1,5 @@
fs = require('fs');
-var normalizedPath = require("path").join(__dirname, "collection");
+var normalizedPath = require("path").join(__dirname, "themes");
var html = "# Themes\nThis collection of themes are meant to be used with [Ronin](https://github.com/hundredrabbits/Marabu), [Left](https://github.com/hundredrabbits/Left) and [Dotgrid](https://github.com/hundredrabbits/Dotgrid). To install a theme, simply drag the `thm` file onto the application window. You are welcome to submit your own themes to this collection!\n\n"
@@ -30,7 +30,7 @@ function build_svg(n,theme)
function build_theme(n,theme)
{
var name = n.split(".")[0];
- return `## [${name}](collection/${name}.thm)\n![${name}](assets/${name}.svg)\n\n`
+ return `## [${name}](themes/${name}.thm)\n![${name}](assets/${name}.svg)\n\n`
}
function is_json(text)
@@ -53,7 +53,7 @@ function generate(html)
}
require("fs").readdirSync(normalizedPath).forEach(function(file_name) {
- fs.readFile('collection/'+file_name, 'utf8', function (err,data){
+ fs.readFile('themes/'+file_name, 'utf8', function (err,data){
if(err) { return console.log(err); }
if(is_json(data)){
var theme = JSON.parse(data)