From 4b0be7e9fc8f9545c7953de93a91fc43040892c9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Isabella=20Sko=C5=99epov=C3=A1?= <isabella@skorepova.info>
Date: Fri, 25 Oct 2019 22:03:02 +0200
Subject: [PATCH] Pretty final

---
 ghost.js | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/ghost.js b/ghost.js
index b6f36d7..dea65d3 100644
--- a/ghost.js
+++ b/ghost.js
@@ -9,8 +9,8 @@ const remarkStringify = require('remark-stringify')
 const unified = require('unified')
 const youtube = require('./sitegin/utils/youtube')
 
-const importUsers = false
-const formatMD = false
+const importUsers = true
+const formatMD = true
 const zip = true
 
 const fileMap = new Map()
@@ -20,7 +20,7 @@ for (const entry of files) {
 
 /*
 Manuální změny:
-  - k článku 144 MHz PA s 2x GI7B přidat autora OK1GP
+  - k článku 144 MHz PA s 2x GI7B přidat autora OK1GP (k Jirka, OK1UBO)
   - Inline obrázky v článcích
     webkamera
     2018/a1-contest
@@ -296,6 +296,7 @@ function truncate(text, maxLength = 255) {
     { name: 'Administrator', email: 'administrator@ok1kvk.cz' },
     { name: 'Vašek Král', email: 'vendakral@seznam.cz' },
     { name: 'Petr, OK1WPN', email: 'ok1wpn@ok1kvk.cz', slug: 'ok1wpn' },
+    { name: 'OK1GP', email: 'ok1gp@ok1kvk.cz', slug: 'ok1gp' },
   ].map((u, i) => ({ ...u, id: i + 2 }))
   const userRemap = {
     'OK1GP, OK1UBO': 'Jirka, OK1UBO',
@@ -393,7 +394,7 @@ function truncate(text, maxLength = 255) {
   fs.writeFileSync('import/ghost.json', JSON.stringify(ghost, null, 2), 'utf8')
   console.log(new Date().toISOString(), 'zipping')
   if (zip)
-    spawnSync('zip', ['ghost.zip', 'content', 'ghost.json'], {
+    spawnSync('zip', ['-r', 'ghost.zip', 'content', 'ghost.json'], {
       cwd: path.join(__dirname, 'import'),
     })
 
-- 
GitLab