From 4475f4ccfc0b408ab7688bcef965cb434eb46771 Mon Sep 17 00:00:00 2001 From: niltor Date: Wed, 17 Jul 2024 14:29:55 +0800 Subject: [PATCH 1/2] update readme --- README.md | 10 +++++++++- README_cn.md | 8 ++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 227d522..fbe855d 100644 --- a/README.md +++ b/README.md @@ -107,7 +107,7 @@ Use GitHub Actions to automate the deployment of your blog site. Create a `build.yml` file in the root directory of the repository, under the `.github/workflows` directory (if it doesn't exist, create it manually). The content should be as follows: ```yml - name: Deploy static content to Pages +name: Deploy static content to Pages on: push: branches: ["main"] @@ -134,6 +134,14 @@ jobs: - name: Setup Pages uses: actions/configure-pages@v4 + - name: Dotnet Setup + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 8.x + + - run: dotnet tool install -g Ater.EasyBlog --version 1.0.0-beta1 + - run: ezblog build ./Content ./_site + - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: diff --git a/README_cn.md b/README_cn.md index 62bd629..ba1468c 100644 --- a/README_cn.md +++ b/README_cn.md @@ -137,6 +137,14 @@ jobs: - name: Setup Pages uses: actions/configure-pages@v4 + - name: Dotnet Setup + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 8.x + + - run: dotnet tool install -g Ater.EasyBlog --version 1.0.0-beta1 + - run: ezblog build ./Content ./_site + - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: From 62cb3cc4b91c2ef6b98ce9e091c1807c86b50b5b Mon Sep 17 00:00:00 2001 From: niltor Date: Wed, 31 Jul 2024 11:20:19 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=B7=BB=E5=8A=A0node=E6=89=93=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/BuildSite/webinfo.json | 2 +- src/NodePackage/NodePackage.csproj | 17 +++++++++++++++++ src/NodePackage/NodePackage.sln | 25 +++++++++++++++++++++++++ src/NodePackage/index.js | 1 + src/NodePackage/package.json | 11 +++++++++++ 5 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 src/NodePackage/NodePackage.csproj create mode 100644 src/NodePackage/NodePackage.sln create mode 100644 src/NodePackage/index.js create mode 100644 src/NodePackage/package.json diff --git a/src/BuildSite/webinfo.json b/src/BuildSite/webinfo.json index ba68b19..8958713 100644 --- a/src/BuildSite/webinfo.json +++ b/src/BuildSite/webinfo.json @@ -2,6 +2,6 @@ "Name": "Ater Blog", "Description": "My Blog - Powered by Ater Blog", "AuthorName": "Ater", - "BaseHref": "/", + "BaseHref": "/EasyBlog/", "Domain": null } \ No newline at end of file diff --git a/src/NodePackage/NodePackage.csproj b/src/NodePackage/NodePackage.csproj new file mode 100644 index 0000000..32bfbf3 --- /dev/null +++ b/src/NodePackage/NodePackage.csproj @@ -0,0 +1,17 @@ + + + net8.0 + enable + enable + bin + esm + + + + + + + + + + diff --git a/src/NodePackage/NodePackage.sln b/src/NodePackage/NodePackage.sln new file mode 100644 index 0000000..c076c23 --- /dev/null +++ b/src/NodePackage/NodePackage.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.5.002.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NodePackage", "NodePackage.csproj", "{53E73CF5-3272-4B17-AC9C-A1D5C3CE4A7E}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {53E73CF5-3272-4B17-AC9C-A1D5C3CE4A7E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {53E73CF5-3272-4B17-AC9C-A1D5C3CE4A7E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {53E73CF5-3272-4B17-AC9C-A1D5C3CE4A7E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {53E73CF5-3272-4B17-AC9C-A1D5C3CE4A7E}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {226C8589-FEB8-4E53-A720-8376D02F6A5B} + EndGlobalSection +EndGlobal diff --git a/src/NodePackage/index.js b/src/NodePackage/index.js new file mode 100644 index 0000000..908ba84 --- /dev/null +++ b/src/NodePackage/index.js @@ -0,0 +1 @@ +#!/usr/bin/env node diff --git a/src/NodePackage/package.json b/src/NodePackage/package.json new file mode 100644 index 0000000..8cca0ce --- /dev/null +++ b/src/NodePackage/package.json @@ -0,0 +1,11 @@ +{ + "name": "ater.ezblog", + "version": "0.1.0", + "description": "Generates a pure static blog website from a markdown document through commands", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "author": "NilTor", + "license": "MIT" +} \ No newline at end of file