Skip to content

Commit d6683d7

Browse files
Add link to GitHub
1 parent d149105 commit d6683d7

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

source/conf.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,35 @@
2525
"awesome_external_links": True,
2626
"breadcrumbs_separator": "•",
2727
"show_scrolltop": True,
28+
"extra_header_link_icons": {
29+
"repository on GitHub": {
30+
"link": "https://github.com/judge0/docs",
31+
"icon": (
32+
'<svg height="26px" style="margin-top:-2px;display:inline" '
33+
'viewBox="0 0 45 44" '
34+
'fill="currentColor" xmlns="http://www.w3.org/2000/svg">'
35+
'<path fill-rule="evenodd" clip-rule="evenodd" '
36+
'd="M22.477.927C10.485.927.76 10.65.76 22.647c0 9.596 6.223 17.736 '
37+
"14.853 20.608 1.087.2 1.483-.47 1.483-1.047 "
38+
"0-.516-.019-1.881-.03-3.693-6.04 "
39+
"1.312-7.315-2.912-7.315-2.912-.988-2.51-2.412-3.178-2.412-3.178-1.972-1.346.149-1.32.149-1.32 " # noqa
40+
"2.18.154 3.327 2.24 3.327 2.24 1.937 3.318 5.084 2.36 6.321 "
41+
"1.803.197-1.403.759-2.36 "
42+
"1.379-2.903-4.823-.548-9.894-2.412-9.894-10.734 "
43+
"0-2.37.847-4.31 2.236-5.828-.224-.55-.969-2.759.214-5.748 0 0 "
44+
"1.822-.584 5.972 2.226 "
45+
"1.732-.482 3.59-.722 5.437-.732 1.845.01 3.703.25 5.437.732 "
46+
"4.147-2.81 5.967-2.226 "
47+
"5.967-2.226 1.185 2.99.44 5.198.217 5.748 1.392 1.517 2.232 3.457 "
48+
"2.232 5.828 0 "
49+
"8.344-5.078 10.18-9.916 10.717.779.67 1.474 1.996 1.474 4.021 0 "
50+
"2.904-.027 5.247-.027 "
51+
"5.96 0 .58.392 1.256 1.493 1.044C37.981 40.375 44.2 32.24 44.2 "
52+
'22.647c0-11.996-9.726-21.72-21.722-21.72" '
53+
'fill="currentColor"/></svg>'
54+
),
55+
},
56+
},
2857
}
2958
html_permalinks_icon = Icons.permalinks_icon
3059
html_static_path = ['_static']

0 commit comments

Comments
 (0)