Skip to content

Commit cf51805

Browse files
committed
update docs
1 parent 9af707d commit cf51805

File tree

5 files changed

+216
-177
lines changed

5 files changed

+216
-177
lines changed

.github/workflows/gh-pages.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
with:
2222
github_token: ${{ secrets.GITHUB_TOKEN }}
2323
publish_dir: docs/en/site
24+
cname: fastapi-admin-docs.long2ice.io
2425
- name: Build zh
2526
run: cd docs/zh && mkdocs build
2627
- name: Deploy zh
@@ -29,3 +30,4 @@ jobs:
2930
github_token: ${{ secrets.GITHUB_TOKEN }}
3031
publish_dir: docs/zh/site
3132
destination_dir: zh
33+
cname: fastapi-admin-docs.long2ice.io

docs/en/mkdocs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ theme:
1010
favicon: https://raw.githubusercontent.com/fastapi-admin/fastapi-admin/dev/images/favicon.png
1111
name: material
1212
language: en
13+
custom_dir: ../overrides
1314
icon:
1415
repo: fontawesome/brands/github
1516
palette:
@@ -79,7 +80,7 @@ extra:
7980
analytics:
8081
provider: google
8182
property: G-61L9SRWCG5
82-
copyright: Copyright © 2021 long2ice
83+
copyright: Copyright © 2021 - 2022 long2ice
8384

8485
plugins:
8586
- search

docs/overrides/main.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{% extends "base.html" %}
2+
3+
{% block extrahead %}
4+
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4103172601745047"
5+
crossorigin="anonymous"></script>
6+
{% endblock %}

docs/zh/mkdocs.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ theme:
1010
favicon: https://raw.githubusercontent.com/fastapi-admin/fastapi-admin/dev/images/favicon.png
1111
name: material
1212
language: zh
13+
custom_dir: ../overrides
1314
icon:
1415
repo: fontawesome/brands/github
1516
palette:
@@ -76,8 +77,10 @@ extra:
7677
social:
7778
- icon: fontawesome/brands/github
7879
link: https://github.com/long2ice
79-
80-
copyright: Copyright &copy; 2021 long2ice
80+
analytics:
81+
provider: google
82+
property: G-61L9SRWCG5
83+
copyright: Copyright &copy; 2021 - 2022 long2ice
8184

8285
plugins:
8386
- git-revision-date-localized:

0 commit comments

Comments
 (0)