├── .github └── workflows │ └── Gmeek.yml ├── README.md ├── backup ├── 请接着之后的安装步骤执行.md └── 这是Gmeek模板仓库.md ├── config.json └── docs ├── index.html ├── post ├── qing-jie-zhao-zhi-hou-de-an-zhuang-bu-zou-zhi-xing.html └── zhe-shi-Gmeek-mo-ban-cang-ku.html ├── postList.json ├── rss.xml └── tag.html /.github/workflows/Gmeek.yml: -------------------------------------------------------------------------------- 1 | name: build Gmeek 2 | 3 | on: 4 | workflow_dispatch: 5 | issues: 6 | types: [opened, edited] 7 | schedule: 8 | - cron: "0 16 * * *" 9 | 10 | jobs: 11 | build: 12 | name: Generate blog 13 | runs-on: ubuntu-24.04 14 | if: ${{ github.event.repository.owner.id == github.event.sender.id || github.event_name == 'schedule' }} 15 | permissions: write-all 16 | steps: 17 | - name: Checkout 18 | uses: actions/checkout@v4 19 | 20 | - name: Setup Pages 21 | id: pages 22 | uses: actions/configure-pages@v4 23 | 24 | - name: Get config.json 25 | run: | 26 | echo "====== check config.josn file ======" 27 | cat config.json 28 | echo "====== check config.josn end ======" 29 | sudo apt-get install jq 30 | 31 | - name: Set up Python 32 | uses: actions/setup-python@v5 33 | with: 34 | python-version: 3.8 35 | 36 | - name: Clone source code 37 | run: | 38 | GMEEK_VERSION=$(jq -r ".GMEEK_VERSION" config.json) 39 | git clone https://github.com/Meekdai/Gmeek.git /opt/Gmeek; 40 | cd /opt/Gmeek/ 41 | lastTag=$(git describe --tags `git rev-list --tags --max-count=1`) 42 | if [ $GMEEK_VERSION == 'last' ]; then git checkout $lastTag; else git checkout $GMEEK_VERSION; fi; 43 | 44 | - name: Install dependencies 45 | run: | 46 | pip install --upgrade pip 47 | pip install -r /opt/Gmeek/requirements.txt 48 | 49 | - name: Generate new html 50 | run: | 51 | cp -r ./* /opt/Gmeek/ 52 | cd /opt/Gmeek/ 53 | python Gmeek.py ${{ secrets.GITHUB_TOKEN }} ${{ github.repository }} --issue_number '${{ github.event.issue.number }}' 54 | cp -a /opt/Gmeek/docs ${{ github.workspace }} 55 | cp -a /opt/Gmeek/backup ${{ github.workspace }} 56 | cp /opt/Gmeek/blogBase.json ${{ github.workspace }} 57 | 58 | - name: update html 59 | run: | 60 | git config --local user.email "$(jq -r ".email" config.json)" 61 | git config --local user.name "${{ github.repository_owner }}" 62 | git add . 63 | git commit -a -m '🎉auto update by Gmeek action' || echo "nothing to commit" 64 | git push || echo "nothing to push" 65 | sleep 3 66 | 67 | - name: Upload artifact 68 | uses: actions/upload-pages-artifact@v3 69 | with: 70 | path: 'docs/.' 71 | 72 | deploy: 73 | name: Deploy blog 74 | runs-on: ubuntu-24.04 75 | needs: build 76 | permissions: 77 | contents: write 78 | pages: write 79 | id-token: write 80 | concurrency: 81 | group: "pages" 82 | cancel-in-progress: false 83 | environment: 84 | name: github-pages 85 | url: ${{ steps.deployment.outputs.page_url }} 86 | steps: 87 | - name: Deploy to GitHub Pages 88 | id: deployment 89 | uses: actions/deploy-pages@v4 90 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## 【创建仓库】完成了 2 | 请接着按照下面的步骤2和3进行操作,全部成功之后,本`README.md`文件会自动替换掉的哦! 3 | 4 | ### 安装 5 | 6 | 1. 【创建仓库】点击[通过模板创建仓库](https://github.com/new?template_name=Gmeek-template&template_owner=Meekdai),建议仓库名称为`XXX.github.io`,其中`XXX`为你的github用户名。 7 | 8 | 2. 【启用Pages】在本仓库的`Settings`中`Pages->Build and deployment->Source`下面选择`Github Actions`。 9 | 10 | 3. 【开始写作】打开一篇issue,开始写作,并且**必须**添加一个`标签Label`(至少添加一个),再保存issue后会自动创建博客内容,片刻后可通过https://XXX.github.io 访问(可进入Actions页面查看构建进度)。 11 | 12 | 4. 【手动全局生成】这个步骤只有在修改`config.json`文件或者出现奇怪问题的时候,需要执行。 13 | ``` 14 | 通过Actions->build Gmeek->Run workflow->里面的按钮全局重新生成一次 15 | ``` 16 | 17 | ### Powered by :heart: [Gmeek](https://github.com/Meekdai/Gmeek) 18 | -------------------------------------------------------------------------------- /backup/请接着之后的安装步骤执行.md: -------------------------------------------------------------------------------- 1 | 如果你点击了`READM.md`的链接后,看到了这个页面,请继续之后的安装步骤执行。 2 | 3 | 成功后`READM.md`会出现你自己的博客地址,并且内容也会更新。 4 | 5 | [Gmeek快速上手](https://blog.meekdai.com/post/Gmeek-kuai-su-shang-shou.html) -------------------------------------------------------------------------------- /backup/这是Gmeek模板仓库.md: -------------------------------------------------------------------------------- 1 | 通过这个模板创建库,可以大大减少部署Gmeek博客的配置步骤。 -------------------------------------------------------------------------------- /config.json: -------------------------------------------------------------------------------- 1 | { 2 | "title":"Blog Title", 3 | "subTitle":"Blog description", 4 | "avatarUrl":"https://github.githubassets.com/favicons/favicon.svg", 5 | "GMEEK_VERSION":"last" 6 | } 7 | -------------------------------------------------------------------------------- /docs/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 14 | 15 | 16 | Blog Title 17 | 18 | 19 | 25 | 26 | 50 | 51 | 52 | 53 | 75 |
76 |
Blog description
77 | 102 |
103 | 120 | 121 | 152 | 153 | 168 | 169 | 170 | -------------------------------------------------------------------------------- /docs/post/qing-jie-zhao-zhi-hou-de-an-zhuang-bu-zou-zhi-xing.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 14 | 15 | 16 | 请接着之后的安装步骤执行 17 | 18 | 19 | 20 | 26 | 27 | 41 | 42 | 43 | 44 | 45 | 46 | 72 |
73 |

如果你点击了READM.md的链接后,看到了这个页面,请继续之后的安装步骤执行。

74 |

成功后READM.md会出现你自己的博客地址,并且内容也会更新。

75 |

Gmeek快速上手

76 |
77 | 78 |
79 |
80 | 97 | 98 | 129 | 130 | 168 | 169 | 170 | 171 | 172 | 173 | -------------------------------------------------------------------------------- /docs/post/zhe-shi-Gmeek-mo-ban-cang-ku.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 14 | 15 | 16 | 这是Gmeek模板仓库 17 | 18 | 19 | 20 | 26 | 27 | 41 | 42 | 43 | 44 | 45 | 46 | 72 |
73 |

通过这个模板创建库,可以大大减少部署Gmeek博客的配置步骤。

74 |
75 | 76 |
77 |
78 | 95 | 96 | 127 | 128 | 166 | 167 | 168 | 169 | 170 | 171 | -------------------------------------------------------------------------------- /docs/postList.json: -------------------------------------------------------------------------------- 1 | {"P2": {"label": "documentation", "labelColor": "#0075ca", "postTitle": "\u8bf7\u63a5\u7740\u4e4b\u540e\u7684\u5b89\u88c5\u6b65\u9aa4\u6267\u884c", "postUrl": "post/qing-jie-zhao-zhi-hou-de-an-zhuang-bu-zou-zhi-xing.html", "createdDate": "2024-03-14", "dateLabelColor": "#bc4c00"}, "P1": {"label": "good first issue", "labelColor": "#7057ff", "postTitle": "\u8fd9\u662fGmeek\u6a21\u677f\u4ed3\u5e93", "postUrl": "post/zhe-shi-Gmeek-mo-ban-cang-ku.html", "createdDate": "2023-12-20", "dateLabelColor": "#A333D0"}} -------------------------------------------------------------------------------- /docs/rss.xml: -------------------------------------------------------------------------------- 1 | 2 | Blog Titlehttps://Meekdai.github.io/Gmeek-templateBlog descriptionBlog Titlehttp://www.rssboard.org/rss-specificationpython-feedgenhttps://github.githubassets.com/favicons/favicon.svgavatarhttps://Meekdai.github.io/Gmeek-templateThu, 14 Mar 2024 09:17:29 +0000Blog Title60Blog Title请接着之后的安装步骤执行https://Meekdai.github.io/Gmeek-template/post/qing-jie-zhao-zhi-hou-de-an-zhuang-bu-zou-zhi-xing.html如果你点击了`READM.md`的链接后,看到了这个页面,请继续之后的安装步骤执行。https://Meekdai.github.io/Gmeek-template/post/qing-jie-zhao-zhi-hou-de-an-zhuang-bu-zou-zhi-xing.htmlThu, 14 Mar 2024 09:15:10 +0000这是Gmeek模板仓库https://Meekdai.github.io/Gmeek-template/post/zhe-shi-Gmeek-mo-ban-cang-ku.html通过这个模板创建库,可以大大减少部署Gmeek博客的配置步骤。https://Meekdai.github.io/Gmeek-template/post/zhe-shi-Gmeek-mo-ban-cang-ku.htmlWed, 20 Dec 2023 07:42:24 +0000 -------------------------------------------------------------------------------- /docs/tag.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 14 | 15 | 16 | Blog Title - Tag 17 | 18 | 19 | 25 | 26 | 48 | 49 | 50 | 51 | 73 |
74 |
75 | 76 | 77 |
78 | 95 | 96 | 127 | 128 | 268 | 269 | 270 | --------------------------------------------------------------------------------