Skip to content

开源次仓库

1、初始化仓库

bash
cd vitepress-theme-teek-one-public

rm -rf .git 
git init 
git add -A
git commit -m "first commit"
git remote add origin git@gitee.com:onlyonexl/vitepress-theme-teek-one-public.git
git push -u origin "master"

2、更新步骤

bash
cd /d/vitepress-theme-teek-one-public
git status
git pull
git status

rm -rf docs/.vitepress
rm -rf docs/public
rm -rf package.json

cp -a /d/vitepress-theme-teek-one-private/docs/.vitepress  docs/
cp -a /d/vitepress-theme-teek-one-private/docs/public  docs/
cp -a /d/vitepress-theme-teek-one-private/package.json  ./

#(1)删除51la key;删除百度id;
      La51Plugin({
        id: "你的key",
        ck: "你的id",
        apply: "all",
      }),   


#(2)更新百度统计id信息
  //站点统计
  siteAnalytics: {
    provider: "baidu",
    options: {
      id: "你的id",
    },
  },  

#(3)删除umami信息
    //Umami 统计
    [
      "script",
      {
        src: "https://你域名/script.js",
        "data-website-id": "你id",
        defer: "defer",
      },
    ],

#(4)更新nav信息

git add -A
git commit -m"发布 Teek@1.0.0-alpha.9-2025.4.6"
git push
nav信息
bash
    nav: [
      { text: "🏡首页", link: "/" },
      
      // {
      //   text: '🏡首页',
      //   items: [
      //     { text: '首页', link: '/' },
      //     { text: '起始页', link: '/' },
      //   ],
      // },  

      

      // {
      //   text: '🗃️笔记',
      //   items: [
      //     { text: '运维', link: '/linux' },
      //     { text: '前端', link: '/qianduan' },
      //     { text: '编程', link: '/code' },
      //   ],
      // },  

      {
        text: '🗃️笔记',
        items: [
          { text: '运维', link: '/linux' },
          { text: '前端', link: '/qianduan' },
          { text: '编程', link: '/code' },          
          { text: 'Teek', link: '/teek' },
          { text: '博客搭建', link: '/blog' },
          // { text: 'Teeker', link: '/Teeker' },
          // { text: 'vdoing', link: '/vdoing' },
          { text: '前端demo', link: '/qianduan-demo' },
          { text: 'nas', link: '/nas' },
          { text: '脚本', link: '/jiaoben' },
          { text: 'git', link: '/git' },
          { text: '面试', link: '/mianshi' },
          { text: '工具', link: '/tools' },
          { text: '开源项目', link: '/opensource' },
        ],
      },  


      // {
      //   text: '🏓娱乐',
      //   items: [
      //     { text: '相册', link: 'https://photo.onedayxyy.cn/' },
      //     { text: '音乐', link: '/music' },
      //     { text: '电影', link: '/movie' },
      //   ],
      // },  

      {
        text: '🏓生活',
        items: [
          { text: '相册', link: 'https://photo.onedayxyy.cn/' },
          { text: '音乐', link: '/music' },
          { text: '电影', link: '/movie' },
          { text: "小屋", link: "/love" },
          { text: "其它", link: "/life-other" },
        ],
      }, 


      

      // {
      //   text: '👀时间轴',
      //   items: [
      //     { text: 'it圈', link: '/it-quan' },
      //     { text: '生活圈', link: '/life-quan' },
      //   ],
      // },  
  
      {
        text: '👏索引',
        items: [
          { text: '分类', link: '/categories' },
          { text: '标签', link: '/tags' },
          { text: '归档', link: '/archives' },
        ],
      },  

      {
        text: '🍷关于',
        items: [
          { text: '关于我', link: '/about-me' },
          { text: '关于本站', link: '/about-website' },
          { text: '网站导航', link: '/websites' },          
          { text: "留言区", link: "/liuyanqu" },
          { text: "思考", link: "/thinking" },
          { text: "时间轴", link: "https://onedayxyy.cn/time-line/" },
          { text: "网站统计", link: "https://umami.onedayxyy.cn/share/DzS4g85V8JkxsNRk/onedayxyy.cn" },
          // {
          //   text: '👀时间轴',
          //   items: [
          //     { text: 'it圈', link: '/it-quan' },
          //     { text: '生活圈', link: '/life-quan' },
          //   ],
          // }, 

          // { text: '🤝友链', link: '/youlian' },

          // {
          //   text: '索引',
          //   items: [
          //     { text: '分类', link: '/categories' },
          //     { text: '标签', link: '/tags' },
          //     { text: '归档', link: '/archives' },
          //   ],
          // },

        ],
      },   

      // { text: "🍊Gitee", link: "https://gitee.com/onlyonexl/vitepress-theme-teek-one-public" },
    ],

结束。

最近更新