Open Cxyofficial opened 3 weeks ago
loding加载页有计划做的,docker部署可以参考网上关于vitepress使用docker部署的教程
可以出个具体一点的pages部署教程吗 没用过pages😂
可以出个具体一点的pages部署教程吗 没用过pages😂 可以用Actions自动部署。以下是我的Actions配置。
# 构建 VitePress 站点并将其部署到 GitHub Pages 的示例工作流程
#
name: Deploy VitePress site to Pages
on:
# 在针对 `main` 分支的推送上运行。如果你
# 使用 `master` 分支作为默认分支,请将其更改为 `master`
push:
branches: [main]
# 允许你从 Actions 选项卡手动运行此工作流程
workflow_dispatch:
# 设置 GITHUB_TOKEN 的权限,以允许部署到 GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# 只允许同时进行一次部署,跳过正在运行和最新队列之间的运行队列
# 但是,不要取消正在进行的运行,因为我们希望允许这些生产部署完成
concurrency:
group: pages
cancel-in-progress: false
jobs:
# 构建工作
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # 如果未启用 lastUpdated,则不需要
- uses: pnpm/action-setup@v3 # 如果使用 pnpm,请取消注释
with:
version: 9
# - uses: oven-sh/setup-bun@v1 # 如果使用 Bun,请取消注释
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm # 或 pnpm / yarn
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Install dependencies
run: pnpm install # 或 pnpm install / yarn install / bun install
- name: Build with VitePress
run: pnpm run build # 或 pnpm build / yarn build / bun run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: .vitepress/dist
# 部署工作
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
name: Deploy
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
搞好之后是这样的
---原始邮件--- 发件人: @.> 发送时间: 2024年6月14日(周五) 晚上9:31 收件人: @.>; 抄送: @.**@.>; 主题: Re: [Alittfre/vitepress-theme-bluearchive] 好项目 期待可以复刻国服官网的loding加载页 (Issue #12)
可以出个具体一点的pages部署教程吗 没用过pages😂 可以用Actions自动部署。以下是我的Actions配置。
main
分支的推送上运行。如果你 # 使用 master
分支作为默认分支,请将其更改为 master
push: branches: [main] # 允许你从 Actions 选项卡手动运行此工作流程 workflow_dispatch: # 设置 GITHUB_TOKEN 的权限,以允许部署到 GitHub Pages permissions: contents: read pages: write id-token: write # 只允许同时进行一次部署,跳过正在运行和最新队列之间的运行队列 # 但是,不要取消正在进行的运行,因为我们希望允许这些生产部署完成 concurrency: group: pages cancel-in-progress: false jobs: # 构建工作 build: runs-on: ubuntu-latest steps: - name: Checkout uses: @. with: fetch-depth: 0 # 如果未启用 lastUpdated,则不需要 - uses: @. # 如果使用 pnpm,请取消注释 with: version: 9 # - uses: @. # 如果使用 Bun,请取消注释 - name: Setup Node uses: @. with: node-version: 20 cache: pnpm # 或 pnpm / yarn - name: Setup Pages uses: @. - name: Install dependencies run: pnpm install # 或 pnpm install / yarn install / bun install - name: Build with VitePress run: pnpm run build # 或 pnpm build / yarn build / bun run build - name: Upload artifact uses: @. with: path: .vitepress/dist # 部署工作 deploy: environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} needs: build runs-on: ubuntu-latest name: Deploy steps: - name: Deploy to GitHub Pages id: deployment uses: @.***— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
搞好之后是这样的 … ---原始邮件--- 发件人: @.> 发送时间: 2024年6月14日(周五) 晚上9:31 收件人: @.>; 抄送: @.**@.>; 主题: Re: [Alittfre/vitepress-theme-bluearchive] 好项目 期待可以复刻国服官网的loding加载页 (Issue #12) 可以出个具体一点的pages部署教程吗 没用过pages😂 可以用Actions自动部署。以下是我的Actions配置。 # 构建 VitePress 站点并将其部署到 GitHub Pages 的示例工作流程 # name: Deploy VitePress site to Pages on: # 在针对
main
分支的推送上运行。如果你 # 使用master
分支作为默认分支,请将其更改为master
push: branches: [main] # 允许你从 Actions 选项卡手动运行此工作流程 workflow_dispatch: # 设置 GITHUB_TOKEN 的权限,以允许部署到 GitHub Pages permissions: contents: read pages: write id-token: write # 只允许同时进行一次部署,跳过正在运行和最新队列之间的运行队列 # 但是,不要取消正在进行的运行,因为我们希望允许这些生产部署完成 concurrency: group: pages cancel-in-progress: false jobs: # 构建工作 build: runs-on: ubuntu-latest steps: - name: Checkout uses: @. with: fetch-depth: 0 # 如果未启用 lastUpdated,则不需要 - uses: @. # 如果使用 pnpm,请取消注释 with: version: 9 # - uses: @. # 如果使用 Bun,请取消注释 - name: Setup Node uses: @. with: node-version: 20 cache: pnpm # 或 pnpm / yarn - name: Setup Pages uses: @. - name: Install dependencies run: pnpm install # 或 pnpm install / yarn install / bun install - name: Build with VitePress run: pnpm run build # 或 pnpm build / yarn build / bun run build - name: Upload artifact uses: @. with: path: .vitepress/dist # 部署工作 deploy: environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} needs: build runs-on: ubuntu-latest name: Deploy steps: - name: Deploy to GitHub Pages id: deployment uses: @. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.>
你的config.mts第7行似乎缺少逗号
搞好之后是这样的 … ---原始邮件--- 发件人: @.> 发送时间: 2024年6月14日(周五) 晚上9:31 收件人: @.>; 抄送: @.**@.>; 主题: Re: [Alittfre/vitepress-theme-bluearchive] 好项目 期待可以复刻国服官网的loding加载页 (Issue #12) 可以出个具体一点的pages部署教程吗 没用过pages😂 可以用Actions自动部署。以下是我的Actions配置。 # 构建 VitePress 站点并将其部署到 GitHub Pages 的示例工作流程 # name: Deploy VitePress site to Pages on: # 在针对
main
分支的推送上运行。如果你 # 使用master
分支作为默认分支,请将其更改为master
push: branches: [main] # 允许你从 Actions 选项卡手动运行此工作流程 workflow_dispatch: # 设置 GITHUB_TOKEN 的权限,以允许部署到 GitHub Pages permissions: contents: read pages: write id-token: write # 只允许同时进行一次部署,跳过正在运行和最新队列之间的运行队列 # 但是,不要取消正在进行的运行,因为我们希望允许这些生产部署完成 concurrency: group: pages cancel-in-progress: false jobs: # 构建工作 build: runs-on: ubuntu-latest steps: - name: Checkout uses: @. with: fetch-depth: 0 # 如果未启用 lastUpdated,则不需要 - uses: @. # 如果使用 pnpm,请取消注释 with: version: 9 # - uses: @. # 如果使用 Bun,请取消注释 - name: Setup Node uses: @. with: node-version: 20 cache: pnpm # 或 pnpm / yarn - name: Setup Pages uses: @. - name: Install dependencies run: pnpm install # 或 pnpm install / yarn install / bun install - name: Build with VitePress run: pnpm run build # 或 pnpm build / yarn build / bun run build - name: Upload artifact uses: @. with: path: .vitepress/dist # 部署工作 deploy: environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} needs: build runs-on: ubuntu-latest name: Deploy steps: - name: Deploy to GitHub Pages id: deployment uses: @. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.>
你配置文件写错了,写在接口上了,要写在defineConfigWithTheme里面
大佬 还是不行啊 麻烦去看看我的仓库吧
---原始邮件--- 发件人: @.> 发送时间: 2024年6月14日(周五) 晚上10:38 收件人: @.>; 抄送: @.**@.>; 主题: Re: [Alittfre/vitepress-theme-bluearchive] 好项目 期待可以复刻国服官网的loding加载页 (Issue #12)
搞好之后是这样的 … ---原始邮件--- 发件人: @.> 发送时间: 2024年6月14日(周五) 晚上9:31 收件人: @.>; 抄送: @.@.>; 主题: Re: [Alittfre/vitepress-theme-bluearchive] 好项目 期待可以复刻国服官网的loding加载页 (Issue #12) 可以出个具体一点的pages部署教程吗 没用过pages😂 可以用Actions自动部署。以下是我的Actions配置。 # 构建 VitePress 站点并将其部署到 GitHub Pages 的示例工作流程 # name: Deploy VitePress site to Pages on: # 在针对 main 分支的推送上运行。如果你 # 使用 master 分支作为默认分支,请将其更改为 master push: branches: [main] # 允许你从 Actions 选项卡手动运行此工作流程 workflow_dispatch: # 设置 GITHUB_TOKEN 的权限,以允许部署到 GitHub Pages permissions: contents: read pages: write id-token: write # 只允许同时进行一次部署,跳过正在运行和最新队列之间的运行队列 # 但是,不要取消正在进行的运行,因为我们希望允许这些生产部署完成 concurrency: group: pages cancel-in-progress: false jobs: # 构建工作 build: runs-on: ubuntu-latest steps: - name: Checkout uses: @. with: fetch-depth: 0 # 如果未启用 lastUpdated,则不需要 - uses: @. # 如果使用 pnpm,请取消注释 with: version: 9 # - uses: @. # 如果使用 Bun,请取消注释 - name: Setup Node uses: @. with: node-version: 20 cache: pnpm # 或 pnpm / yarn - name: Setup Pages uses: @. - name: Install dependencies run: pnpm install # 或 pnpm install / yarn install / bun install - name: Build with VitePress run: pnpm run build # 或 pnpm build / yarn build / bun run build - name: Upload artifact uses: @. with: path: .vitepress/dist # 部署工作 deploy: environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} needs: build runs-on: ubuntu-latest name: Deploy steps: - name: Deploy to GitHub Pages id: deployment uses: @. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.>
你配置文件写错了,写在接口上了,要写在defineConfigWithTheme里面
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
如果你要部署到gitpages的话你的仓库名必须要是github用户名.github.io。
另外gitalk的配置麻烦清空,免得和我的混杂了。
如果你要部署到gitpages的话你的仓库名必须要是github用户名.github.io。
改好了 但是还是空白的诶
如果你要部署到gitpages的话你的仓库名必须要是github用户名.github.io。
改好了 但是还是空白的诶
对了 默认你在readme给出来的deploy.yml运行会错误 要用你回复我的那个才能正常运行
deploy.yml用我给的,readme的是旧的。你要不删库重来吧,去网上找gitpages的教程。
好的
---原始邮件--- 发件人: @.> 发送时间: 2024年6月16日(周日) 中午1:59 收件人: @.>; 抄送: @.**@.>; 主题: Re: [Alittfre/vitepress-theme-bluearchive] 好项目 期待可以复刻国服官网的loding加载页 (Issue #12)
deploy.yml用我给的,readme的是旧的。你要不删库重来吧,去网上找gitpages的教程。
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
用vercel也可以,操作比gitpages简单一些。
如何操作?
---原始邮件--- 发件人: @.> 发送时间: 2024年6月16日(周日) 下午2:01 收件人: @.>; 抄送: @.**@.>; 主题: Re: [Alittfre/vitepress-theme-bluearchive] 好项目 期待可以复刻国服官网的loding加载页 (Issue #12)
用vercel也可以,操作比gitpages简单一些。
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
vrrcel部署成功 但是gitalk会报网络错误
vrrcel部署成功 但是gitalk会报网络错误
提供一下报错信息
network error
network error
自行检查Developer Settings里的gitalk配置,比如Homepage URL和Authorization callback URL都要是vercel的地址,而不是git仓库的地址。
原来如此 谢谢!
---原始邮件--- 发件人: @.> 发送时间: 2024年6月21日(周五) 晚上9:39 收件人: @.>; 抄送: @.**@.>; 主题: Re: [Alittfre/vitepress-theme-bluearchive] 好项目 期待可以复刻国服官网的loding加载页 (Issue #12)
network error
自行检查Developer Settings里的gitalk配置,比如Homepage URL和Authorization callback URL都要是vercel的地址,而不是git仓库的地址。
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
network error
自行检查Developer Settings里的gitalk配置,比如Homepage URL和Authorization callback URL都要是vercel的地址,而不是git仓库的地址。
是填vercel.app那个嘛 填了还是error
还有就是 banner区的icon还可以填什么啊
---原始邮件--- 发件人: @.> 发送时间: 2024年6月20日(周四) 晚上10:47 收件人: @.>; 抄送: @.**@.>; 主题: Re: [Alittfre/vitepress-theme-bluearchive] 好项目 期待可以复刻国服官网的loding加载页 (Issue #12)
vrrcel部署成功 但是gitalk会报网络错误
提供一下报错信息
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
tw,weibo即推特和微博,需要更多图标可以告诉我,后续会加。
可以加上网易云音乐 QQ嘛
---原始邮件--- 发件人: @.> 发送时间: 2024年6月23日(周日) 晚上9:18 收件人: @.>; 抄送: @.**@.>; 主题: Re: [Alittfre/vitepress-theme-bluearchive] 好项目 期待可以复刻国服官网的loding加载页 (Issue #12)
tw,weibo即推特和微博,需要更多图标可以告诉我,后续会加。
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
对了 如果我想让blog在搜索引擎上可以搜索得到要咋整 我看百度的要在首页head添加<meta name="baidu-site-verification" content="codeva-ARHexA8EfY" />才行 这个在哪里添加
---原始邮件--- 发件人: @.> 发送时间: 2024年6月23日(周日) 晚上9:18 收件人: @.>; 抄送: @.**@.>; 主题: Re: [Alittfre/vitepress-theme-bluearchive] 好项目 期待可以复刻国服官网的loding加载页 (Issue #12)
tw,weibo即推特和微博,需要更多图标可以告诉我,后续会加。
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
关于SEO,你可以参考https://vitepress.dev/zh/guide/sitemap-generation#sitemap-generation 设置完不会立刻生效的,需要等待搜索引擎爬取,另外description和keywords也需要合理编写才能提高SEO权重
有一个bug markdown的字体加粗没法显示 在markdown编辑器里是可以的 放到blog上就没有了 还有可以加一个图片圆角嘛
还有一个 求求作者加一个文章置顶吧awa
有一个bug markdown的字体加粗没法显示 在markdown编辑器里是可以的 放到blog上就没有了 还有可以加一个图片圆角嘛
我有空看看
还有一个 求求作者加一个文章置顶吧awa
饼会画完的
感谢大佬🙏
---原始邮件--- 发件人: @.> 发送时间: 2024年7月5日(周五) 下午5:31 收件人: @.>; 抄送: @.**@.>; 主题: Re: [Alittfre/vitepress-theme-bluearchive] 好项目 期待可以复刻国服官网的loding加载页 (Issue #12)
还有一个 求求作者加一个文章置顶吧awa
饼会画完的
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
或者能不能支持下docker部署