diff --git a/README.md b/README.md index bb17d3b..7b47f23 100644 --- a/README.md +++ b/README.md @@ -5,4 +5,4 @@ This is the code for [Markdown Live Preview](https://markdownlivepreview.com/). ## License -See the [LICENSE](https://github.com/tanabe/markdown-live-preview/blob/master/LICENSE) file in this repo. \ No newline at end of file +See the [LICENSE](https://github.com/tanabe/markdown-live-preview/blob/master/LICENSE) file in this repo. diff --git a/deploy.sh b/deploy.sh deleted file mode 100755 index e64cc3e..0000000 --- a/deploy.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -firebase deploy diff --git a/local-server.sh b/local-server.sh deleted file mode 100755 index 774d73a..0000000 --- a/local-server.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash - -SCRIPT_DIR=$(cd $(dirname $0); pwd) -pushd ./public -python -m http.server 8000 -popd diff --git a/public/css/style.css b/public/css/style.css index bd79f5d..ae48e89 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -81,6 +81,10 @@ img { overflow-y: scroll; } +#preview.column { + white-space: normal; +} + #footer { padding: 5px; z-index: 1001; @@ -118,4 +122,4 @@ img { #footer #copyright a:hover { color: #fff; text-decoration: none; -} \ No newline at end of file +} diff --git a/scripts/deploy.sh b/scripts/deploy.sh new file mode 100755 index 0000000..9cf79ba --- /dev/null +++ b/scripts/deploy.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash +set -euo pipefail + +SCRIPT_DIR=$(cd $(dirname $0); pwd) + +cd ${SCRIPT_DIR}/.. + +firebase deploy diff --git a/scripts/run-local-server.sh b/scripts/run-local-server.sh new file mode 100755 index 0000000..9b9f7e0 --- /dev/null +++ b/scripts/run-local-server.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +set -euo pipefail + +SCRIPT_DIR=$(cd $(dirname $0); pwd) + +cd ${SCRIPT_DIR}/../public +python -m http.server 8000