Skip to content

Commit

Permalink
fcitx5-rime.js 在線體驗
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleoflqj committed Dec 24, 2024
1 parent f4cfd9f commit 022d03c
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 5 deletions.
23 changes: 18 additions & 5 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,32 @@ jobs:
restore-keys: |
${{ runner.os }}-node-
- run: |
pwd
ls ${{ github.workspace }}
ls ${{ github.workspace }}/blog
- run: npm ci

- run: python ./weasel_testing_appcast.py

- name: Deploy luna pinyin and stroke
uses: rimeinn/deploy-schema@dev
with:
user-recipe-list: |-
luna-pinyin
stroke
schema-list:
luna_pinyin
stroke

- run: |
mv /tmp/deploy-schema/artifact.zip source/online/rime.zip
hexo clean
hexo generate
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: public
path: |
public
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
if: ${{ github.ref == 'refs/heads/master' }}
Expand Down
15 changes: 15 additions & 0 deletions blog/source/online/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
title: 體驗
comments: false
---

[朙月拼音](https://github.com/rime/rime-luna-pinyin)[五筆畫](https://github.com/rime/rime-stroke)方案,基於 [fcitx5-rime.js](https://github.com/rimeinn/fcitx5-rime.js)

{% raw %}
<script type="module">
import { loadZip } from './dist/Fcitx5.js'
loadZip('./rime.zip')
</script>
<div class="has-success">
<textarea class="form-control" style="width: 100%; height: 300px"></textarea>
</div>
{% endraw %}
3 changes: 3 additions & 0 deletions blog/themes/freewill/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ menu:
url: blog
intro: "Rime::Blog"
icon: "fa fa-pencil-square-o"
- title: 體驗
url: online
icon: "fa fa-cloud"
# - title: 分類
# url: categories
# intro: "所有分類"
Expand Down
4 changes: 4 additions & 0 deletions blog/themes/freewill/source/css/darktheme.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,8 @@
.mypage > .panel-default > .panel-heading:not(:first-child) {
border-top: 1px solid #0e1013 !important;
}

textarea.form-control {
color: white;
}
}

0 comments on commit 022d03c

Please sign in to comment.