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 c4cf93d
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 12 deletions.
42 changes: 30 additions & 12 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
branches:
- ci
- master
pull_request:
pull_request:

jobs:
deploy:
Expand All @@ -26,9 +26,6 @@ jobs:
with:
node-version: '22'

- name: Setup Hexo
run: npm install -g hexo-cli

- name: Cache dependencies
uses: actions/cache@v4
with:
Expand All @@ -37,18 +34,39 @@ jobs:
restore-keys: |
${{ runner.os }}-node-
- run: |
pwd
ls ${{ github.workspace }}
ls ${{ github.workspace }}/blog
- run: npm ci

- run: python ./weasel_testing_appcast.py

- run: |
hexo clean
hexo generate
- name: Deploy luna pinyin and stroke
uses: rimeinn/deploy-schema@master
with:
user-recipe-list: |-
luna-pinyin
stroke
schema-list: |-
luna_pinyin
stroke
- name: Install fcitx5-rime.js
run: |
wget -P /tmp https://github.com/rimeinn/fcitx5-rime.js/releases/download/0.1.0/fcitx5-rime-0.1.0.tgz
tar xf /tmp/fcitx5-rime-0.1.0.tgz -C /tmp
mv /tmp/package/dist/* source/online
rm -f source/online/Fcitx5.d.ts
- name: Generate site
run: |
mv /tmp/deploy-schema/artifact.zip source/online/rime.zip
npx hexo clean
npx hexo generate
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: public
path: |
blog/public
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
.DS_Store
# fcitx5-rime.js
Fcitx5.*
libFcitx5*
*.zip
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 './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 c4cf93d

Please sign in to comment.