Add markdown renderer for motd (#1840)

* Add markdown renderer for motd

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2022-02-10 09:27:09 +01:00 committed by GitHub
parent 21c12fafba
commit 57cb6f5b15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 102 additions and 55 deletions

View file

@ -1,10 +1,4 @@
<!--
SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
SPDX-License-Identifier: CC-BY-SA-4.0
-->
:::warning
:::info
What you see is an UI-Test! It's filled with dummy data, not connected to a backend and no data will be saved.
:::

6
netlify/motd.md Normal file
View file

@ -0,0 +1,6 @@
This demo is hosted by [netlify](https://netlify.com).
Please check their [privacy policy](https://netlify.com/privacy) as well as [our privacy policy](https://hedgedoc.org/privacy-policy).
:::info
What you see is an UI-Test! It's filled with dummy data, not connected to a backend and no data will be saved.
:::

3
netlify/motd.md.license Normal file
View file

@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
SPDX-License-Identifier: CC0-1.0

View file

@ -1,2 +0,0 @@
This demo is hosted by netlify.
Please check their privacy policy (https://netlify.com/privacy) as well as ours (https://hedgedoc.org/privacy-policy).

View file

@ -7,8 +7,8 @@ set -e
echo 'Patch intro.md to include netlify banner.'
cp netlify/intro.md public/mock-backend/public/intro.md
echo 'Patch motd.txt to include privacy policy.'
cp netlify/motd.txt public/mock-backend/public/motd.txt
echo 'Patch motd.md to include privacy policy.'
cp netlify/motd.md public/mock-backend/public/motd.md
echo 'Patch version.json to include git hash'
jq ".version = \"0.0.0+${GITHUB_SHA:0:8}\"" src/version.json > src/_version.json
mv src/_version.json src/version.json