Skip to content

Commit 97d3af8

Browse files
committed
doc header gitlink
1 parent ab9f286 commit 97d3af8

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

docs/docusaurus.config.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,10 @@ const config: Config = {
8282
{ to: '/docs/', label: 'Documentation', position: 'left', target: '_self' },
8383
{ to: 'https://cocoindex.io/blogs/', label: 'Blog', position: 'left', target: '_self' },
8484
{
85-
href: 'https://github.com/cocoindex-io/cocoindex',
86-
label: 'GitHub',
85+
type: 'html',
8786
position: 'right',
87+
value: '<iframe src="https://ghbtns.com/github-btn.html?user=cocoindex-io&repo=cocoindex&type=star&count=true" frameborder="0" scrolling="0" width="120" height="20" title="GitHub" style="vertical-align: middle;"></iframe>',
88+
className: 'navbar-github-link',
8889
},
8990
],
9091
},

docs/src/css/custom.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,3 +172,7 @@
172172
background: var(--ifm-menu-link-sublist-icon) 50% / 1rem 1rem;
173173
}
174174

175+
.navbar__item.navbar-github-link{
176+
display: block;
177+
width: 120px;
178+
}

0 commit comments

Comments
 (0)