diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..3d174ef --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +name: CI +on: + push: + branches: + - master + +jobs: + build-deploy: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16 + + - run: npm install + - run: npm run build + + - name: Generate Contributors Images + uses: jaywcjlove/github-action-contributors@main + with: + filter-author: (renovate\[bot\]|renovate-bot|dependabot\[bot\]) + output: build/CONTRIBUTORS.svg + avatarSize: 42 + + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + commit_message: ${{ github.event.head_commit.message }} + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./build \ No newline at end of file diff --git a/re.md b/re.md deleted file mode 100644 index c2e0a2a..0000000 --- a/re.md +++ /dev/null @@ -1,37 +0,0 @@ -
- -

微信公众号 Markdown 编辑器

- -
- -用于微信公众号文章使用 markdown 语法做一篇简介美观大方的微信公众号图文的工具。原先是一个 Chrome 插件来解决排版问题,由于发版本麻烦,和一些功能拓展开发停滞了,最近写了一个 Web 版本供自己使用。 - -## 功能特性 - -- [x] 支持 Markdown 所有基础语法 -- [x] 支持自定义 CSS 样式 -- [ ] 支持主题选择 & 配置。 -- [x] 支持明暗两种主题预览。 -- [ ] 支持色盘取色,快速替换文章整体色调 - -### 支持代码块样式 - -```jsx -function Demo() { - return
Hello World!
-} -``` - -```css -li { - font-size: 16px; - margin: 0; - line-height: 26px; - color: rgb(30 41 59); - font-family:-apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif; -} -``` - -## License - -Licensed under the MIT License.