Skip to content

Commit

Permalink
Revert modification for paperlink
Browse files Browse the repository at this point in the history
  • Loading branch information
mzr1996 committed Jan 25, 2022
1 parent 47298fe commit 935d63d
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 36 deletions.
17 changes: 0 additions & 17 deletions docs/en/_static/css/readthedocs.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,3 @@ article.pytorch-article .section :not(dt) > code {
background-color: #f3f4f7;
border-radius: 5px;
}

a.paperlink {
background-color: rgb(97, 155, 255);
border: none;
color: #FFFFFF !important;
padding: 12px 24px;
text-align: center;
-webkit-transition-duration: 0.4s;
transition-duration: 0.4s;
font-size: 18px;
border-radius: 5px;
}

a.paperlink:hover {
text-decoration: none !important;
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.24),0 6px 20px 0 rgba(0,0,0,0.19);
}
3 changes: 2 additions & 1 deletion docs/en/stat.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
if paperlink is not None:
start = match_res[0].start()
end = match_res[0].end()
link_button = f'<a href="{paperlink}" class="paperlink">{title}</a>'
# link_button = f'<a href="{paperlink}" class="paperlink">{title}</a>'
link_button = f'[{title}]({paperlink})'
content = content[:start] + link_button + content[end:]

# Extract paper type
Expand Down
17 changes: 0 additions & 17 deletions docs/zh_CN/_static/css/readthedocs.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,3 @@ article.pytorch-article .section :not(dt) > code {
background-color: #f3f4f7;
border-radius: 5px;
}

a.paperlink {
background-color: rgb(97, 155, 255);
border: none;
color: #FFFFFF !important;
padding: 12px 24px;
text-align: center;
-webkit-transition-duration: 0.4s;
transition-duration: 0.4s;
font-size: 18px;
border-radius: 5px;
}

a.paperlink:hover {
text-decoration: none !important;
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.24),0 6px 20px 0 rgba(0,0,0,0.19);
}
2 changes: 1 addition & 1 deletion docs/zh_CN/stat.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
if paperlink is not None:
start = match_res[0].start()
end = match_res[0].end()
link_button = f'<a href="{paperlink}" class="paperlink">{title}</a>'
link_button = f'[{title}]({paperlink})'
content = content[:start] + link_button + content[end:]

# Extract paper type
Expand Down

0 comments on commit 935d63d

Please sign in to comment.