This repository was archived by the owner on Sep 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.docs.js
48 lines (36 loc) · 1.91 KB
/
build.docs.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// jshint esversion: 8
const fs = require('fs');
const path = require('path');
fs.copyFileSync(`${__dirname}/images/docs.png`, `${__dirname}/docs/assets/images/docs.png`);
console.log(`Created asset "${path.resolve(`${__dirname}/docs/assets/images/docs.png`)}"`);
const readme = fs.readFileSync(`${__dirname}/README.md`);
fs.writeFileSync(`${__dirname}/docs/README.md`,
`<p align="center">
<a href="https://nsc-de.github.io/js-database/">
<img src="assets/images/docs.png" alt="Logo" width="100%">
</a>
<h3 align="center">JS Database (aka NSCDB) v${require("./package.json").version}</h3>
<p align="center">
A simple lightweight package to manage data
<br />
<a href="https://github.com/nsc-de/js-database/wiki/"><strong>Read the Wiki »</strong></a>
<br />
<a href="https://nsc-de.github.io/js-database/"><strong>Explore the typedoc »</strong></a>
<br />
<br />
<a href="https://github.com/nsc-de/js-database/wiki/Node-Quickstart">Quickstart</a>
·
<a href="https://github.com/nsc-de/js-database/issues/new?assignees=&labels=&template=bug_report.md&title=">Report Bug</a>
·
<a href="https://github.com/nsc-de/js-database/issues/new?assignees=&labels=&template=feature_request.md&title=">Request Feature</a>
</p>
</p>
<p>
This branch contains the contents of the <a href="https://nsc-de.github.io/js-database/">typedoc-site</a> of <a href="https://www.npmjs.com/package/nscdb">nscdb</a>. It is completely is written in <a href="https://github.com/Microsoft/tsdoc">tsdoc</a> and generated using <a href="http://typedoc.org/">typedoc</a>. For guides and Tutorials please take a look at the <a href="https://github.com/nsc-de/js-database/wiki">wiki</a>.
🔽 You can find the normal readme of <a href="https://www.npmjs.com/package/nscdb">nscdb</a> below
</p>
<br>
---
<br>
` + readme);
console.log(`Created documentation readme "${path.resolve(`${__dirname}/docs/README.md`)}"`);