0

Put content.md in data dir during build

This commit is contained in:
Gabe Kangas 2020-11-17 20:27:14 -08:00
parent aeb221b32f
commit 437b3063f8

View File

@ -49,15 +49,15 @@ build() {
mkdir -p dist/${NAME}
mkdir -p dist/${NAME}/webroot/static
mkdir -p dist/${NAME}/data
# Default files
cp config-example.yaml dist/${NAME}/config.yaml
cp data/content-example.md dist/${NAME}/webroot/static/content.md
cp data/content-example.md dist/${NAME}/data/content.md
cp -R webroot/ dist/${NAME}/webroot/
# Copy the production pruned+minified css to the build's directory.
cp "${TMPDIR}tailwind.min.css" ./dist/${NAME}/webroot/js/web_modules/tailwindcss/dist/tailwind.min.css
cp -R doc/ dist/${NAME}/doc/
cp -R static/ dist/${NAME}/static
cp README.md dist/${NAME}