Browse Source

update docs

Yawei sun 1 year ago
parent
commit
5043614111
3 changed files with 5 additions and 6 deletions
  1. 3 4
      .github/workflows/deploy-docs.yml
  2. 1 1
      docs/index.html
  3. 1 1
      docs/src/App.vue

+ 3 - 4
.github/workflows/deploy-docs.yml

@@ -36,8 +36,7 @@ jobs:
         working-directory: ./docs
 
       - name: Deploy to GitHub Pages
-        id: deployment
-        uses: actions/deploy-pages@v4
+        uses: peaceiris/actions-gh-pages@v4
         with:
-          branch: gh-pages
-          folder: ./docs/dist
+          github_token: ${{ secrets.GITHUB_TOKEN }}
+          publish_dir: ./docs/dist

+ 1 - 1
docs/index.html

@@ -4,7 +4,7 @@
     <meta charset="UTF-8">
     <link rel="icon" href="/favicon.ico">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
-    <title>Vite App</title>
+    <title>Chinese Days</title>
   </head>
   <body>
     <div id="app"></div>

+ 1 - 1
docs/src/App.vue

@@ -9,7 +9,7 @@ let lang = ref<'zh' | 'en'>('zh');
 <template>
   <!-- <button @click="lang = lang === 'zh' ? 'en' : 'zh'">{{ lang === 'zh' ? 'en' : 'zh' }}</button> -->
   <div class="demo-title">
-    <span>Chinese Days</span>
+    <span>Chinese Days - Demo</span>
     <a href="https://github.com/vsme/chinese-days" target="_blank" rel="noopener noreferrer">
       GitHub
       <svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24">