From 94290081552b79ccae375bda6c68af9030336ae3 Mon Sep 17 00:00:00 2001 From: Scott Trinh Date: Tue, 5 Jan 2021 21:18:52 -0500 Subject: [PATCH] Add static assets and update build scripts (#8) * Add static assets and update build scripts * Add logo to header and revamp header styling --- .github/workflows/gh-pages.yml | 2 +- package.json | 6 ++++-- src/index.md | 5 +++-- static/logo.svg | 1 + 4 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 static/logo.svg diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 0bb976d..ee7bbc5 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -28,7 +28,7 @@ jobs: ${{ runner.os }}-node- - run: npm ci - - run: npm run build + - run: npm run prod - name: Deploy uses: peaceiris/actions-gh-pages@v3 diff --git a/package.json b/package.json index a13469a..f0e3a8f 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,10 @@ "main": "index.js", "scripts": { "clean": "rm -rf docs && mkdir -p docs/styles", - "dev": "npm run clean && postcss src/styles/global.css > docs/styles/global.css && eleventy --serve", - "build": "npm run clean && NODE_ENV=production postcss src/styles/global.css > docs/styles/global.css && eleventy", + "static": "cp -r static docs", + "build": "npm run clean && npm run static && postcss src/styles/global.css > docs/styles/global.css", + "dev": "npm run build && eleventy --serve", + "prod": "NODE_ENV=production npm run build && eleventy", "format": "prettier --write src ./*.js ./.*.js" }, "keywords": [], diff --git a/src/index.md b/src/index.md index 1d6ad13..422d100 100644 --- a/src/index.md +++ b/src/index.md @@ -3,8 +3,9 @@ layout: base.html title: The KDL Document Language --- -
-

The KDL Document Language

+
+ +

The KDL Document Language

{% include partials/description.md %} diff --git a/static/logo.svg b/static/logo.svg new file mode 100644 index 0000000..732c00f --- /dev/null +++ b/static/logo.svg @@ -0,0 +1 @@ + \ No newline at end of file