Skip to content

Commit 39c120e

Browse files
committed
add icon
1 parent 18da2a9 commit 39c120e

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/sphinx.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ jobs:
2929
with:
3030
branch: gh-pages
3131
folder: docs/build/html
32-
target-folder: blog8
32+
target-folder: blog1

docs/source/conf.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
# html_theme_path = [pytorch_sphinx_theme2.get_html_theme_path()]
8686
html_static_path = ['_static']
8787
html_baseurl = "https://wt1w.github.io/test_sphinx/blog8/"
88-
version = "5.2"
88+
version = "2.1"
8989
html_theme_options = {
9090
"logo": {
9191
"image_light": "_static/sand-logos/magi-blc.png",
@@ -97,6 +97,14 @@
9797
"json_url": "https://raw.githubusercontent.com/WT1W/test_sphinx/refs/heads/main/work.json",
9898
"version_match": version,
9999
},
100+
"icon_links": [
101+
{
102+
"name": "documentation",
103+
"url": "https://sandai-org.github.io/MagiAttention/blog/",
104+
"icon": "fas fa-book-bookmark", # 正确的写法:Font Awesome class
105+
"type": "fontawesome",
106+
},
107+
]
100108
}
101109

102110
def setup(app):

0 commit comments

Comments
 (0)