mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 22:54:42 -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
13
netlify/intro.md
Normal file
13
netlify/intro.md
Normal file
|
@ -0,0 +1,13 @@
|
|||
<!--
|
||||
SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
||||
|
||||
SPDX-License-Identifier: CC-BY-SA-4.0
|
||||
-->
|
||||
|
||||
:::warning
|
||||
What you see is an UI-Test! It's filled with dummy data, not connected to a backend and no data will be saved.
|
||||
:::
|
||||
|
||||

|
||||
|
||||
[](https://www.netlify.com)
|
2
netlify/motd.txt
Normal file
2
netlify/motd.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
This demo is hosted by netlify.
|
||||
Please check their privacy policy (https://netlify.com/privacy) as well as ours (https://hedgedoc.org/privacy-policy).
|
3
netlify/motd.txt.license
Normal file
3
netlify/motd.txt.license
Normal file
|
@ -0,0 +1,3 @@
|
|||
SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
||||
|
||||
SPDX-License-Identifier: CC0-1.0
|
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