mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-14 07:04:45 -04:00
Add netlify to README, intro.md and motd.txt
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
c1c457153a
commit
cfa03bedf8
6 changed files with 48 additions and 0 deletions
23
netlify/patch-intro.js
Normal file
23
netlify/patch-intro.js
Normal file
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
const { copyFile } = require('fs/promises');
|
||||
|
||||
console.log("Patch intro.md to include netlify banner.")
|
||||
copyFile("netlify/intro.md", "public/mock-backend/public/intro.md")
|
||||
.then(() => console.log("Copied intro.md"))
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
process.exit(1);
|
||||
})
|
||||
|
||||
console.log("Patch motd.txt to include privacy policy.")
|
||||
copyFile("netlify/motd.txt", "public/mock-backend/public/motd.txt")
|
||||
.then(() => console.log("Copied motd.txt"))
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
process.exit(1);
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue