diff options
| author | patrick-scho | 2025-12-03 18:03:46 +0100 |
|---|---|---|
| committer | patrick-scho | 2025-12-03 18:03:46 +0100 |
| commit | 2fd189c8639efafe64deafc083e46adcb332a8e7 (patch) | |
| tree | 7f80cc1d834de559b56772eae1b1c604640183e8 /static/cgithub/head-include.html | |
| parent | 38a12c2ddde5188bbbd04501883b7092745b0dac (diff) | |
| download | ps-cgit-2fd189c8639efafe64deafc083e46adcb332a8e7.tar.gz ps-cgit-2fd189c8639efafe64deafc083e46adcb332a8e7.zip | |
add cgithub to repo and install it in Makefile
Diffstat (limited to 'static/cgithub/head-include.html')
| -rw-r--r-- | static/cgithub/head-include.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/static/cgithub/head-include.html b/static/cgithub/head-include.html new file mode 100644 index 0000000..ee28d8c --- /dev/null +++ b/static/cgithub/head-include.html @@ -0,0 +1,18 @@ +<meta name="viewport" content="width=device-width, initial-scale=1"/> + +<link rel="stylesheet" type="text/css" href="/git/cgithub/github-markdown-dark.css"/> +<link rel="stylesheet" type="text/css" href="/git/cgithub/cgithub.css"/> +<link rel="stylesheet" type="text/css" href="/git/cgithub/prism-one-dark.css"/> + +<script type="module"> + const blob = document.querySelector('div#cgit table.blob td.lines pre code'); + const path = document.querySelector('div#cgit div.path a:last-child'); + if (blob !== null && path !== null) { + let lang = path.textContent.split(".").pop(); + if (lang == 'h') lang = 'cpp'; + if (lang == 'hpp') lang = 'cpp'; + blob.classList.add('language-' + lang); + } +</script> + +<script src="/git/cgithub/prism.js"></script> |
