mirror of
https://github.com/cosinekitty/astronomy.git
synced 2025-12-23 23:58:15 -05:00
17 lines
350 B
JavaScript
17 lines
350 B
JavaScript
'use strict';
|
|
|
|
const fs = require('fs');
|
|
const filepath = '../website/src/assets/documentation.json';
|
|
|
|
fs.readFile(filepath, (err, data) => {
|
|
if (err) throw err;
|
|
|
|
const docs = JSON.stringify(
|
|
JSON.parse(data),
|
|
(k,v) => k === 'path' || k === 'files' ? undefined : v,
|
|
4
|
|
);
|
|
|
|
fs.writeFileSync(filepath, docs);
|
|
});
|