-
Notifications
You must be signed in to change notification settings - Fork 0
/
VitePress+GitHub Pages.html
67 lines (65 loc) · 22.2 KB
/
VitePress+GitHub Pages.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!DOCTYPE html>
<html lang="en-US" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>从0开始创建VitePress+GitHub Pages项目 | VitePress</title>
<meta name="description" content="A VitePress site">
<meta name="generator" content="VitePress v1.2.3">
<link rel="preload stylesheet" href="/assets/style.DR7CyWDf.css" as="style">
<script type="module" src="/assets/app.CKfXgyX_.js"></script>
<link rel="preload" href="/assets/inter-roman-latin.Di8DUHzh.woff2" as="font" type="font/woff2" crossorigin="">
<link rel="modulepreload" href="/assets/chunks/framework.DCKU21so.js">
<link rel="modulepreload" href="/assets/chunks/theme.BjpxFJfC.js">
<link rel="modulepreload" href="/assets/VitePress_GitHub Pages.md.BENaSK2g.lean.js">
<script id="check-dark-mode">(()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"auto",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
<script id="check-mac-os">document.documentElement.classList.toggle("mac",/Mac|iPhone|iPod|iPad/i.test(navigator.platform));</script>
</head>
<body>
<div id="app"><div class="Layout" data-v-c88effd9><!--[--><!--]--><!--[--><span tabindex="-1" data-v-10c0bcbd></span><a href="#VPContent" class="VPSkipLink visually-hidden" data-v-10c0bcbd> Skip to content </a><!--]--><!----><header class="VPNav" data-v-c88effd9 data-v-93806c29><div class="VPNavBar top" data-v-93806c29 data-v-2c632efa><div class="wrapper" data-v-2c632efa><div class="container" data-v-2c632efa><div class="title" data-v-2c632efa><div class="VPNavBarTitle" data-v-2c632efa data-v-ad29ec6d><a class="title" href="/" data-v-ad29ec6d><!--[--><!--]--><!----><span data-v-ad29ec6d>VitePress</span><!--[--><!--]--></a></div></div><div class="content" data-v-2c632efa><div class="content-body" data-v-2c632efa><!--[--><!--]--><div class="VPNavBarSearch search" data-v-2c632efa><!----></div><!----><!----><div class="VPNavBarAppearance appearance" data-v-2c632efa data-v-0f0d26a9><button class="VPSwitch VPSwitchAppearance" type="button" role="switch" title="Switch to dark theme" aria-checked="false" data-v-0f0d26a9 data-v-f0740272 data-v-2baab2ab><span class="check" data-v-2baab2ab><span class="icon" data-v-2baab2ab><!--[--><span class="vpi-sun sun" data-v-f0740272></span><span class="vpi-moon moon" data-v-f0740272></span><!--]--></span></span></button></div><!----><div class="VPFlyout VPNavBarExtra extra" data-v-2c632efa data-v-c24faee3 data-v-fa144483><button type="button" class="button" aria-haspopup="true" aria-expanded="false" aria-label="extra navigation" data-v-fa144483><span class="vpi-more-horizontal icon" data-v-fa144483></span></button><div class="menu" data-v-fa144483><div class="VPMenu" data-v-fa144483 data-v-770e0f40><!----><!--[--><!--[--><!----><div class="group" data-v-c24faee3><div class="item appearance" data-v-c24faee3><p class="label" data-v-c24faee3>Appearance</p><div class="appearance-action" data-v-c24faee3><button class="VPSwitch VPSwitchAppearance" type="button" role="switch" title="Switch to dark theme" aria-checked="false" data-v-c24faee3 data-v-f0740272 data-v-2baab2ab><span class="check" data-v-2baab2ab><span class="icon" data-v-2baab2ab><!--[--><span class="vpi-sun sun" data-v-f0740272></span><span class="vpi-moon moon" data-v-f0740272></span><!--]--></span></span></button></div></div></div><!----><!--]--><!--]--></div></div></div><!--[--><!--]--><button type="button" class="VPNavBarHamburger hamburger" aria-label="mobile navigation" aria-expanded="false" aria-controls="VPNavScreen" data-v-2c632efa data-v-0df26fb3><span class="container" data-v-0df26fb3><span class="top" data-v-0df26fb3></span><span class="middle" data-v-0df26fb3></span><span class="bottom" data-v-0df26fb3></span></span></button></div></div></div></div><div class="divider" data-v-2c632efa><div class="divider-line" data-v-2c632efa></div></div></div><!----></header><div class="VPLocalNav empty fixed" data-v-c88effd9 data-v-56508764><div class="container" data-v-56508764><!----><div class="VPLocalNavOutlineDropdown" style="--vp-vh:0px;" data-v-56508764 data-v-456615ac><button data-v-456615ac>Return to top</button><!----></div></div></div><!----><div class="VPContent" id="VPContent" data-v-c88effd9 data-v-79cc7180><div class="VPDoc has-aside" data-v-79cc7180 data-v-16dd0637><!--[--><!--]--><div class="container" data-v-16dd0637><div class="aside" data-v-16dd0637><div class="aside-curtain" data-v-16dd0637></div><div class="aside-container" data-v-16dd0637><div class="aside-content" data-v-16dd0637><div class="VPDocAside" data-v-16dd0637 data-v-4d0bdf16><!--[--><!--]--><!--[--><!--]--><nav aria-labelledby="doc-outline-aria-label" class="VPDocAsideOutline" data-v-4d0bdf16 data-v-8be49724><div class="content" data-v-8be49724><div class="outline-marker" data-v-8be49724></div><div aria-level="2" class="outline-title" id="doc-outline-aria-label" role="heading" data-v-8be49724>On this page</div><ul class="VPDocOutlineItem root" data-v-8be49724 data-v-fa021812><!--[--><!--]--></ul></div></nav><!--[--><!--]--><div class="spacer" data-v-4d0bdf16></div><!--[--><!--]--><!----><!--[--><!--]--><!--[--><!--]--></div></div></div></div><div class="content" data-v-16dd0637><div class="content-container" data-v-16dd0637><!--[--><!--]--><main class="main" data-v-16dd0637><div style="position:relative;" class="vp-doc _VitePress+GitHub%20Pages" data-v-16dd0637><div><p>[TOC]</p><h1 id="从0开始创建vitepress-github-pages项目" tabindex="-1">从0开始创建VitePress+GitHub Pages项目 <a class="header-anchor" href="#从0开始创建vitepress-github-pages项目" aria-label="Permalink to "从0开始创建VitePress+GitHub Pages项目""></a></h1><h2 id="_1、创建2个github项目" tabindex="-1">1、创建2个GitHub项目 <a class="header-anchor" href="#_1、创建2个github项目" aria-label="Permalink to "1、创建2个GitHub项目""></a></h2><ul><li><p><a href="https://github.com/EmonCodingFrontEnd/ViteBlog" target="_blank" rel="noreferrer">ViteBlog</a></p><p>ViteBlog一个SSG项目</p><p><img src="/assets/image-20240613132445906.fgFmvUZS.png" alt="image-20240613132445906"></p></li><li><p><a href="https://github.com/Rushing0711/Rushing0711.github.io" target="_blank" rel="noreferrer">Rushing0711.github.io</a></p><p>ViteBlog部署网站</p><p><img src="/assets/image-20240613132526390.D_t3ANS_.png" alt="image-20240613132526390"></p></li></ul><h2 id="_2、检出并初始化viteblog项目viteblog" tabindex="-1">2、检出并初始化ViteBlog项目ViteBlog <a class="header-anchor" href="#_2、检出并初始化viteblog项目viteblog" aria-label="Permalink to "2、检出并初始化ViteBlog项目ViteBlog""></a></h2><ul><li>检出</li></ul><div class="language-bash vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">$</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> [email protected]:EmonCodingFrontEnd/ViteBlog.git</span></span></code></pre></div><ul><li>初始化</li></ul><div class="language-bash vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">$</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> pnpm</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> init</span></span></code></pre></div><ul><li><a href="https://vitepress.dev/zh/" target="_blank" rel="noreferrer">安装VitePress</a></li></ul><div class="language-bash vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">$</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> pnpm</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> i</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> -D</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> vitepress</span></span></code></pre></div><ul><li>创建静态文档目录</li></ul><div class="language-bash vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">$</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> mkdir</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> docs</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> && </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">echo</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> '# Hello VitePress & GitHub Pages'</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> ></span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> docs/index.md</span></span></code></pre></div><ul><li>配置package.json脚本</li></ul><div class="language-json vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">json</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"scripts"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: {</span></span>
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> "docs:dev"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"vitepress dev docs"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">,</span></span>
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> "docs:build"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"vitepress build docs"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, </span><span style="--shiki-light:#B31D28;--shiki-dark:#FDAEB7;--shiki-light-font-style:italic;--shiki-dark-font-style:italic;">#</span><span style="--shiki-light:#B31D28;--shiki-dark:#FDAEB7;--shiki-light-font-style:italic;--shiki-dark-font-style:italic;"> 将构建并存放结果到</span><span style="--shiki-light:#B31D28;--shiki-dark:#FDAEB7;--shiki-light-font-style:italic;--shiki-dark-font-style:italic;"> `.vitepress/dist`</span></span>
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> "docs:serve"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"vitepress serve docs"</span><span style="--shiki-light:#B31D28;--shiki-dark:#FDAEB7;--shiki-light-font-style:italic;--shiki-dark-font-style:italic;"> #</span><span style="--shiki-light:#B31D28;--shiki-dark:#FDAEB7;--shiki-light-font-style:italic;--shiki-dark-font-style:italic;"> 预览前面构建的结果,也就是启动一个静态文件服务</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">}</span></span></code></pre></div><ul><li>添加.gitignore</li></ul><div class="language- vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span># Logs</span></span>
<span class="line"><span>logs</span></span>
<span class="line"><span>*.log</span></span>
<span class="line"><span>npm-debug.log*</span></span>
<span class="line"><span>yarn-debug.log*</span></span>
<span class="line"><span>yarn-error.log*</span></span>
<span class="line"><span>pnpm-debug.log*</span></span>
<span class="line"><span>lerna-debug.log*</span></span>
<span class="line"><span></span></span>
<span class="line"><span>node_modules</span></span>
<span class="line"><span>dist</span></span>
<span class="line"><span>dist-ssr</span></span>
<span class="line"><span>*.local</span></span>
<span class="line"><span></span></span>
<span class="line"><span># Editor directories and files</span></span>
<span class="line"><span>.vscode/*</span></span>
<span class="line"><span>!.vscode/extensions.json</span></span>
<span class="line"><span>.idea</span></span>
<span class="line"><span>.DS_Store</span></span>
<span class="line"><span>*.suo</span></span>
<span class="line"><span>*.ntvs*</span></span>
<span class="line"><span>*.njsproj</span></span>
<span class="line"><span>*.sln</span></span>
<span class="line"><span>*.sw?</span></span>
<span class="line"><span></span></span>
<span class="line"><span># Customized</span></span>
<span class="line"><span>docs/.vitepress/cache</span></span>
<span class="line"><span>!docs/.vitepress/dist</span></span></code></pre></div><ul><li>启动</li></ul><div class="language-bash vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">$</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> pnpm</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> docs:dev</span></span></code></pre></div><h2 id="_3、编译出的页面并提交到仓库rushing0711-github-io" tabindex="-1">3、编译出的页面并提交到仓库Rushing0711.github.io <a class="header-anchor" href="#_3、编译出的页面并提交到仓库rushing0711-github-io" aria-label="Permalink to "3、编译出的页面并提交到仓库Rushing0711.github.io""></a></h2><ul><li>编译</li></ul><div class="language-bash vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">$</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> pnpm</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> docs:build</span></span></code></pre></div><ul><li>提交编译输出的内容到ViteBlogSite仓库</li></ul><div class="language-bash vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">$</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> cd</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> docs/.vitepress/dist/</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">$</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> git</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> init</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">Initialized</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> empty</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> Git</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> repository</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> in</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> C:/Job/JobResource/WebProjects/ViteBlog/docs/.vitepress/dist/.git/</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">$</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> git</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> add</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> .</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">$</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> git</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> commit</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> -am</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> "docs:20240613-01"</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">$</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> git</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> remote</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> add</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> origin</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> [email protected]:Rushing0711/Rushing0711.github.io.git</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">$</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> git</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> push</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> -u</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> origin</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> master</span></span></code></pre></div><ul><li>提交项目内容到ViteBlog仓库</li></ul><div class="language-bash vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"># 切换到ViteBlog项目根目录</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">$</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> git</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> rm</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> -rf</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> --cached</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> docs/.vitepress/dist</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">$</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> git</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> submodule</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> add</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> [email protected]:Rushing0711/Rushing0711.github.io.git</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> docs/.vitepress/dist</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">$</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> git</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> add</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> .</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">$</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> git</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> commit</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> -m</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> "first commit"</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">$</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> git</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> remote</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> add</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> origin</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> [email protected]:EmonCodingFrontEnd/ViteBlog.git</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">$</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> git</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> push</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> -u</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> origin</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> master</span></span></code></pre></div><p>网页:<a href="https://rushing0711.github.io/" target="_blank" rel="noreferrer">https://rushing0711.github.io/</a></p><h2 id="_4、设置github-pages-非rushing0711-github-io需设置" tabindex="-1">4、设置GitHub Pages(非Rushing0711.github.io需设置) <a class="header-anchor" href="#_4、设置github-pages-非rushing0711-github-io需设置" aria-label="Permalink to "4、设置GitHub Pages(非Rushing0711.github.io需设置)""></a></h2><ul><li>设置GitHub Pages</li></ul><p><img src="/assets/image-20240613125241942.Ds-I9U63.png" alt="image-20240613125241942"></p><ul><li>保存并访问</li></ul><p>点击上图的保存,然后不断刷新保存之后的页面,直至出现 GitHub Pages 的地址:</p><p><img src="/assets/image-20240613125756885.DOXv7fkx.png" alt="image-20240613125756885"></p><p>网址:<a href="https://emoncodingfrontend.github.io/ViteBlogSite/" target="_blank" rel="noreferrer">https://emoncodingfrontend.github.io/ViteBlogSite/</a></p><h2 id="_5、github-pages页面何时可以访问" tabindex="-1">5、GitHub Pages页面何时可以访问? <a class="header-anchor" href="#_5、github-pages页面何时可以访问" aria-label="Permalink to "5、GitHub Pages页面何时可以访问?""></a></h2><ul><li>若是 用户名.github.io 则等待十多秒。</li><li>若是某个组织下的项目,请刷新Save后的页面,等待访问。</li></ul></div></div></main><footer class="VPDocFooter" data-v-16dd0637 data-v-149a71a1><!--[--><!--]--><!----><!----></footer><!--[--><!--]--></div></div></div><!--[--><!--]--></div></div><!----><!--[--><!--]--></div></div>
<script>window.__VP_HASH_MAP__=JSON.parse("{\"index.md\":\"DfyUhE-q\",\"vitepress_github pages.md\":\"BENaSK2g\"}");window.__VP_SITE_DATA__=JSON.parse("{\"lang\":\"en-US\",\"dir\":\"ltr\",\"title\":\"VitePress\",\"description\":\"A VitePress site\",\"base\":\"/\",\"head\":[],\"router\":{\"prefetchLinks\":true},\"appearance\":true,\"themeConfig\":{},\"locales\":{},\"scrollOffset\":134,\"cleanUrls\":false}");</script>
</body>
</html>