Skip to content

Commit 2a27913

Browse files
authored
Enable search to avoid page overflow caused by i18n dropdown (#6)
1 parent 386254c commit 2a27913

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v3
17-
- uses: cachix/install-nix-action@v18
17+
- uses: cachix/install-nix-action@v21
1818
with:
1919
extra_nix_config: |
2020
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
2121
22-
- name: Build and deploy
22+
- name: Build site
2323
run: nix develop --command mkdocs build --site-dir public
2424

2525
- name: Upload artifact

.github/workflows/pull_request.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Pull Request
2+
on:
3+
pull_request:
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
11+
- uses: cachix/install-nix-action@v21
12+
13+
- name: Build site
14+
run: nix develop --command mkdocs build --site-dir public
15+
16+
- name: Upload artifact
17+
uses: actions/upload-pages-artifact@v1
18+
with:
19+
path: public

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ extra:
3838
name: fcitx5-android on Trello
3939

4040
plugins:
41+
- search
4142
- i18n:
4243
default_language: zh
4344
languages:

0 commit comments

Comments
 (0)