Total Pageviews

Monday, 3 February 2025

搭建基于github issue的静态博客程序issueage

 

首先fork此项目https://github.com/zeikar/issueage,我fork后的项目地址是https://github.com/briteming/issueage。然后访问https://github.com/briteming/issueage/settings,勾选issues. 然后,新建一些issues.  

然后编辑config.json - https://github.com/briteming/issueage/blob/master/config.json,把repoOwner  和repoName的值分别改为你的github用户名和仓库名。

然后访问https://app.netlify.com/,点击页面右上角的add new site, 在弹出的下拉菜单中,选择

importing an existing project.


https://github.com/briteming/issueage
cd issueage
npm install
npm run build
find . -name index.html
 
12799@DESKTOP-B6LK9IO MINGW64 ~/issueage (master)
$ ls
CONTRIBUTING.md  node_modules/      public/           yarn.lock
LICENSE.txt      package-lock.json  rollup.config.js
README.md        package.json       src/
config.json      prettierrc.json    tsconfig.json

12799@DESKTOP-B6LK9IO MINGW64 ~/issueage (master)
$ find . -name index.html
./node_modules/livereload/examples/index.html
./public/index.html

12799@DESKTOP-B6LK9IO MINGW64 ~/issueage (master)
$ ls public
build/  favicon.png  global.css  index.html

12799@DESKTOP-B6LK9IO MINGW64 ~/issueage (master)
$ cd public

12799@DESKTOP-B6LK9IO MINGW64 ~/issueage/public (master)
$ ls
build/  favicon.png  global.css  index.html
(可见, public  目录就是静态网站的根目录)
12799@DESKTOP-B6LK9IO MINGW64 ~/issueage/public (master)
$ serve -l 2356
 
可惜,我访问 http://127.0.0.1:2356 ,竟然什么也不显示。)
 
https://github.com/zeikar/issueage
我fork后的项目地址是https://github.com/briteming/issueage 
 
在项目https://github.com/zeikar/issueage页面里点击右上角的use this template->create a new repository,其实跟fork这个项目是同样的效果。 
https://github.com/briteming/zi
https://zi-b.netlify.app
 
 
 
 
 

 

No comments:

Post a Comment