From 5c540f3e9f6c694e2ee9f3f42b1d4f89cf6260c1 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Thu, 30 Sep 2021 16:48:12 +0800 Subject: [PATCH] website: Add website. --- .github/workflows/ci.yml | 8 ++++++-- package.json | 13 ++++++++++--- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1a8c373..9be1930 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,6 +18,10 @@ jobs: - run: npm install typedoc@0.22.2 typescript -g - run: typedoc src/server.ts --name sgo + - run: npm i markdown-to-html-cli -g + - run: markdown-to-html --output docs/index.html + - run: markdown-to-html --source README-zh.md --output docs/index.zh.html + - name: Deploy uses: peaceiris/actions-gh-pages@v3 with: @@ -33,12 +37,12 @@ jobs: - name: Generate Changelog id: changelog - uses: jaywcjlove/changelog-generator@v1.4.3 + uses: jaywcjlove/changelog-generator@v1.4.6 if: steps.create_tag.outputs.successful with: token: ${{ secrets.GITHUB_TOKEN }} head-ref: ${{ steps.create_tag.outputs.version }} - filter-author: (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot) + filter-author: (小弟调调™|Renovate Bot) filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}' - name: Create Release diff --git a/package.json b/package.json index ab2b051..269aadf 100644 --- a/package.json +++ b/package.json @@ -2,10 +2,13 @@ "name": "sgo", "version": "3.0.0", "description": "Setting a directory to a static server.", + "homepage": "https://jaywcjlove.github.io/sgo/", + "author": "kenny wang ", + "main": "lib/server.js", + "license": "MIT", "bin": { "sgo": "lib/sgo.js" }, - "main": "lib/server.js", "scripts": { "prepare": "npm run build", "build": "tsbb build --no-esm --disable-babel --entry src/sgo.ts", @@ -38,8 +41,12 @@ "type": "git", "url": "https://github.com/jaywcjlove/sgo.git" }, - "author": "kenny wang ", - "license": "MIT", + "markdown-to-html": { + "reurls": { + "README-zh.md": "index.zh.html", + "README.md": "index.html" + } + }, "dependencies": { "chokidar": "3.5.2", "ejs": "3.1.6",