Skip to content

Commit

Permalink
chore: improve stars icon for doc-site
Browse files Browse the repository at this point in the history
  • Loading branch information
hughfenghen committed Jul 16, 2024
1 parent 8f545d1 commit c695ddf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 deletions.
19 changes: 0 additions & 19 deletions doc-site/.dumi/theme/plugin.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1,5 @@
// @ts-nocheck
export default function (api) {
// github-button
api.addHTMLHeadScripts(
() => `
var timer = setInterval(() => {
if (performance.now() > 10000) {
clearInterval(timer)
return
}
if (document.querySelector('.github-button') == null) return
clearInterval(timer)
var s = document.createElement('script')
s.src = 'https://buttons.github.io/buttons.js'
document.body.appendChild(s)
}, 100);
`,
);

api.addHTMLHeadScripts(
() => `
(function(c,l,a,r,i,t,y){
Expand Down
2 changes: 1 addition & 1 deletion doc-site/.dumirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default defineConfig({
github: 'https://github.com/bilibili/WebAV',
},
footer:
'<div>碰到问题请去 <a href="https://github.com/bilibili/WebAV/issues/">WebAV Issues</a> 中反馈</div><div class="flex" style="justify-content: center;"><a class="github-button" href="https://github.com/bilibili/WebAV" data-color-scheme="no-preference: light; light: light; dark: dark;" data-icon="octicon-star" data-size="large" data-show-count="true" aria-label="Star hughfenghen/WebAV on GitHub">Star</a></div>',
'<div>碰到问题请去 <a href="https://github.com/bilibili/WebAV/issues/">WebAV Issues</a> 中反馈</div><div class="flex" style="justify-content: center;"><a href="https://github.com/bilibili/WebAV"><img src="https://img.shields.io/github/stars/bilibili/WebAV"></a></div>',
},
...(process.env.NODE_ENV === 'development'
? {
Expand Down

0 comments on commit c695ddf

Please sign in to comment.