Skip to content

Commit

Permalink
Fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
leng-yue committed Dec 19, 2023
1 parent bcc28cd commit e497414
Show file tree
Hide file tree
Showing 9 changed files with 75 additions and 42 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: docs
on:
push:
branches:
- main

permissions:
contents: write

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- uses: actions/setup-python@v4
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v3
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install mkdocs-material
- run: mkdocs gh-deploy --force
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ We do not hold any responsibility for any illegal usage of the codebase. Please
我们不对代码库的任何非法使用承担任何责任. 请参阅您当地关于 DMCA (数字千年法案) 和其他相关法律的法律.

## Documents / 文档
- [English](https://speech.fish.audio/zh/latest/en/)
- [中文](https://speech.fish.audio/zh/latest/zh/)
- [English](https://speech.fish.audio/en/)
- [中文](https://speech.fish.audio/zh/)


## Credits / 鸣谢
Expand Down
1 change: 1 addition & 0 deletions docs/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
speech.fish.audio
2 changes: 1 addition & 1 deletion docs/en/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
This codebase is released under the `BSD-3-Clause` license, and all models are released under the CC-BY-NC-SA-4.0 license.

<p align="center">
<img src="../assets/figs/diagram.png" width="75%">
<img src="/assets/figs/diagram.png" width="75%">
</p>

## Requirements
Expand Down
36 changes: 18 additions & 18 deletions docs/en/samples.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,28 +20,28 @@
<tbody>
<tr>
<td>Nahida (Genshin Impact)</td>
<td><audio controls preload="auto" src="../../assets/audios/0_input.wav" /></td>
<td><audio controls preload="auto" src="../../assets/audios/0_output.wav" /></td>
<td><audio controls preload="auto" src="/assets/audios/0_input.wav" /></td>
<td><audio controls preload="auto" src="/assets/audios/0_output.wav" /></td>
</tr>
<tr>
<td>Zhongli (Genshin Impact)</td>
<td><audio controls preload="auto" src="../../assets/audios/1_input.wav" /></td>
<td><audio controls preload="auto" src="../../assets/audios/1_output.wav" /></td>
<td><audio controls preload="auto" src="/assets/audios/1_input.wav" /></td>
<td><audio controls preload="auto" src="/assets/audios/1_output.wav" /></td>
</tr>
<tr>
<td>Furina (Genshin Impact)</td>
<td><audio controls preload="auto" src="../../assets/audios/2_input.wav" /></td>
<td><audio controls preload="auto" src="../../assets/audios/2_output.wav" /></td>
<td><audio controls preload="auto" src="/assets/audios/2_input.wav" /></td>
<td><audio controls preload="auto" src="/assets/audios/2_output.wav" /></td>
</tr>
<tr>
<td>Random Speaker 1</td>
<td> - </td>
<td><audio controls preload="auto" src="../../assets/audios/3_output.wav" /></td>
<td><audio controls preload="auto" src="/assets/audios/3_output.wav" /></td>
</tr>
<tr>
<td>Random Speaker 2</td>
<td> - </td>
<td><audio controls preload="auto" src="../../assets/audios/4_output.wav" /></td>
<td><audio controls preload="auto" src="/assets/audios/4_output.wav" /></td>
</tr>
</tbody>
</table>
Expand All @@ -67,13 +67,13 @@
<tbody>
<tr>
<td>Nahida (Genshin Impact)</td>
<td><audio controls preload="auto" src="../../assets/audios/0_input.wav" /></td>
<td><audio controls preload="auto" src="../../assets/audios/5_output.wav" /></td>
<td><audio controls preload="auto" src="/assets/audios/0_input.wav" /></td>
<td><audio controls preload="auto" src="/assets/audios/5_output.wav" /></td>
</tr>
<tr>
<td>Seiki (Honkai: StarRail)</td>
<td><audio controls preload="auto" src="../../assets/audios/6_input.wav" /></td>
<td><audio controls preload="auto" src="../../assets/audios/6_output.wav" /></td>
<td><audio controls preload="auto" src="/assets/audios/6_input.wav" /></td>
<td><audio controls preload="auto" src="/assets/audios/6_output.wav" /></td>
</tr>
</tbody>
</table>
Expand All @@ -98,18 +98,18 @@ patterns to driving cars autonomously, AI's applications are vast and diverse.
<tbody>
<tr>
<td>Speaker 200 (LibriTTS)</td>
<td><audio controls preload="auto" src="../../assets/audios/7_input.wav" /></td>
<td><audio controls preload="auto" src="../../assets/audios/7_output.wav" /></td>
<td><audio controls preload="auto" src="/assets/audios/7_input.wav" /></td>
<td><audio controls preload="auto" src="/assets/audios/7_output.wav" /></td>
</tr>
<tr>
<td>Random Speaker 1</td>
<td> - </td>
<td><audio controls preload="auto" src="../../assets/audios/8_output.wav" /></td>
<td><audio controls preload="auto" src="/assets/audios/8_output.wav" /></td>
</tr>
<tr>
<td>Random Speaker 2</td>
<td> - </td>
<td><audio controls preload="auto" src="../../assets/audios/9_output.wav" /></td>
<td><audio controls preload="auto" src="/assets/audios/9_output.wav" /></td>
</tr>
</tbody>
</table>
Expand All @@ -134,12 +134,12 @@ patterns to driving cars autonomously, AI's applications are vast and diverse.
<tr>
<td>Random Speaker 1</td>
<td> - </td>
<td><audio controls preload="auto" src="../../assets/audios/10_output.wav" /></td>
<td><audio controls preload="auto" src="/assets/audios/10_output.wav" /></td>
</tr>
<tr>
<td>Random Speaker 2</td>
<td> - </td>
<td><audio controls preload="auto" src="../../assets/audios/11_output.wav" /></td>
<td><audio controls preload="auto" src="/assets/audios/11_output.wav" /></td>
</tr>
</tbody>
</table>
3 changes: 3 additions & 0 deletions docs/stylesheets/extra.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
.md-grid {
max-width: 1440px;
}
.md-tabs {
display: none;
}
2 changes: 1 addition & 1 deletion docs/zh/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
此代码库根据 `BSD-3-Clause` 许可证发布, 所有模型根据 CC-BY-NC-SA-4.0 许可证发布.

<p align="center">
<img src="../assets/figs/diagram.png" width="75%">
<img src="/assets/figs/diagram.png" width="75%">
</p>

## 要求
Expand Down
36 changes: 18 additions & 18 deletions docs/zh/samples.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,28 +20,28 @@
<tbody>
<tr>
<td>纳西妲 (原神)</td>
<td><audio controls preload="auto" src="../../assets/audios/0_input.wav" /></td>
<td><audio controls preload="auto" src="../../assets/audios/0_output.wav" /></td>
<td><audio controls preload="auto" src="/assets/audios/0_input.wav" /></td>
<td><audio controls preload="auto" src="/assets/audios/0_output.wav" /></td>
</tr>
<tr>
<td>钟离 (原神)</td>
<td><audio controls preload="auto" src="../../assets/audios/1_input.wav" /></td>
<td><audio controls preload="auto" src="../../assets/audios/1_output.wav" /></td>
<td><audio controls preload="auto" src="/assets/audios/1_input.wav" /></td>
<td><audio controls preload="auto" src="/assets/audios/1_output.wav" /></td>
</tr>
<tr>
<td>芙宁娜 (原神)</td>
<td><audio controls preload="auto" src="../../assets/audios/2_input.wav" /></td>
<td><audio controls preload="auto" src="../../assets/audios/2_output.wav" /></td>
<td><audio controls preload="auto" src="/assets/audios/2_input.wav" /></td>
<td><audio controls preload="auto" src="/assets/audios/2_output.wav" /></td>
</tr>
<tr>
<td>随机说话人 1</td>
<td> - </td>
<td><audio controls preload="auto" src="../../assets/audios/3_output.wav" /></td>
<td><audio controls preload="auto" src="/assets/audios/3_output.wav" /></td>
</tr>
<tr>
<td>随机说话人 2</td>
<td> - </td>
<td><audio controls preload="auto" src="../../assets/audios/4_output.wav" /></td>
<td><audio controls preload="auto" src="/assets/audios/4_output.wav" /></td>
</tr>
</tbody>
</table>
Expand All @@ -67,13 +67,13 @@
<tbody>
<tr>
<td>纳西妲 (原神)</td>
<td><audio controls preload="auto" src="../../assets/audios/0_input.wav" /></td>
<td><audio controls preload="auto" src="../../assets/audios/5_output.wav" /></td>
<td><audio controls preload="auto" src="/assets/audios/0_input.wav" /></td>
<td><audio controls preload="auto" src="/assets/audios/5_output.wav" /></td>
</tr>
<tr>
<td>青雀 (星穹铁道)</td>
<td><audio controls preload="auto" src="../../assets/audios/6_input.wav" /></td>
<td><audio controls preload="auto" src="../../assets/audios/6_output.wav" /></td>
<td><audio controls preload="auto" src="/assets/audios/6_input.wav" /></td>
<td><audio controls preload="auto" src="/assets/audios/6_output.wav" /></td>
</tr>
</tbody>
</table>
Expand All @@ -98,18 +98,18 @@ patterns to driving cars autonomously, AI's applications are vast and diverse.
<tbody>
<tr>
<td>Speaker 200 (LibriTTS)</td>
<td><audio controls preload="auto" src="../../assets/audios/7_input.wav" /></td>
<td><audio controls preload="auto" src="../../assets/audios/7_output.wav" /></td>
<td><audio controls preload="auto" src="/assets/audios/7_input.wav" /></td>
<td><audio controls preload="auto" src="/assets/audios/7_output.wav" /></td>
</tr>
<tr>
<td>随机说话人 1</td>
<td> - </td>
<td><audio controls preload="auto" src="../../assets/audios/8_output.wav" /></td>
<td><audio controls preload="auto" src="/assets/audios/8_output.wav" /></td>
</tr>
<tr>
<td>随机说话人 2</td>
<td> - </td>
<td><audio controls preload="auto" src="../../assets/audios/9_output.wav" /></td>
<td><audio controls preload="auto" src="/assets/audios/9_output.wav" /></td>
</tr>
</tbody>
</table>
Expand All @@ -135,12 +135,12 @@ patterns to driving cars autonomously, AI's applications are vast and diverse.
<tr>
<td>随机说话人 1</td>
<td> - </td>
<td><audio controls preload="auto" src="../../assets/audios/10_output.wav" /></td>
<td><audio controls preload="auto" src="/assets/audios/10_output.wav" /></td>
</tr>
<tr>
<td>随机说话人 2</td>
<td> - </td>
<td><audio controls preload="auto" src="../../assets/audios/11_output.wav" /></td>
<td><audio controls preload="auto" src="/assets/audios/11_output.wav" /></td>
</tr>
</tbody>
</table>
3 changes: 1 addition & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ theme:
- navigation.instant
- navigation.instant.prefetch
- navigation.tracking
- navigation.tabs
- search
- search.suggest
- search.highlight
Expand Down Expand Up @@ -43,8 +44,6 @@ theme:

extra:
homepage: https://speech.fish.audio
version:
provider: mike
alternate:
- name: English
link: /en/
Expand Down

0 comments on commit e497414

Please sign in to comment.