Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fcitx5-rime.js 在線體驗 #1758

Merged
merged 2 commits into from
Dec 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.1/fcitx5-rime.tgz
tar xf /tmp/fcitx5-rime.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;
}
}