Skip to content

Commit 3e77480

Browse files
secnotesclaude
andcommitted
Fix HTML generation and add GitHub corner
- Fix HTML template string to properly render titles and styles - Add GitHub corner to all HTML pages with consistent styling - Ensure all CSS styles are properly applied in the generated HTML - Maintain responsive design and TOC sidebar functionality - Color-match GitHub corner to header (#2c3e50) for visual consistency Co-Authored-By: Claude (qwen3-coder-plus) <noreply@anthropic.com>
1 parent 680e2f0 commit 3e77480

File tree

4 files changed

+142
-0
lines changed

4 files changed

+142
-0
lines changed

docs/contributing.html

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,34 @@
255255
border-top: 1px solid #eee;
256256
}
257257

258+
/* GitHub corner styling */
259+
.github-corner {
260+
position: fixed;
261+
top: 0;
262+
right: 0;
263+
z-index: 1000;
264+
}
265+
266+
.github-corner:hover .octo-arm {
267+
animation: octocat-wave 560ms ease-in-out;
268+
}
269+
270+
@keyframes octocat-wave {
271+
0%,100% { transform: rotate(0); }
272+
20%,60% { transform: rotate(-25deg); }
273+
40%,80% { transform: rotate(10deg); }
274+
}
275+
276+
@media (max-width: 500px) {
277+
.github-corner:hover .octo-arm {
278+
animation: none;
279+
}
280+
281+
.github-corner .octo-arm {
282+
animation: octocat-wave 560ms ease-in-out;
283+
}
284+
}
285+
258286
/* Responsive design */
259287
@media (max-width: 1024px) {
260288
.container {
@@ -295,6 +323,13 @@
295323
</style>
296324
</head>
297325
<body>
326+
<a href="https://github.com/secnotes/fuzzing-tutorial" class="github-corner" aria-label="View source on GitHub">
327+
<svg width="80" height="80" viewBox="0 0 250 250" style="fill:#2c3e50; color:#fff; position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true">
328+
<path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"/>
329+
<path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"/>
330+
<path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"/>
331+
</svg>
332+
</a>
298333
<div class="container">
299334
<div class="main-content">
300335
<header>

docs/index.html

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,34 @@
255255
border-top: 1px solid #eee;
256256
}
257257

258+
/* GitHub corner styling */
259+
.github-corner {
260+
position: fixed;
261+
top: 0;
262+
right: 0;
263+
z-index: 1000;
264+
}
265+
266+
.github-corner:hover .octo-arm {
267+
animation: octocat-wave 560ms ease-in-out;
268+
}
269+
270+
@keyframes octocat-wave {
271+
0%,100% { transform: rotate(0); }
272+
20%,60% { transform: rotate(-25deg); }
273+
40%,80% { transform: rotate(10deg); }
274+
}
275+
276+
@media (max-width: 500px) {
277+
.github-corner:hover .octo-arm {
278+
animation: none;
279+
}
280+
281+
.github-corner .octo-arm {
282+
animation: octocat-wave 560ms ease-in-out;
283+
}
284+
}
285+
258286
/* Responsive design */
259287
@media (max-width: 1024px) {
260288
.container {
@@ -295,6 +323,13 @@
295323
</style>
296324
</head>
297325
<body>
326+
<a href="https://github.com/secnotes/fuzzing-tutorial" class="github-corner" aria-label="View source on GitHub">
327+
<svg width="80" height="80" viewBox="0 0 250 250" style="fill:#2c3e50; color:#fff; position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true">
328+
<path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"/>
329+
<path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"/>
330+
<path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"/>
331+
</svg>
332+
</a>
298333
<div class="container">
299334
<div class="main-content">
300335
<header>

docs/index_en.html

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,34 @@
255255
border-top: 1px solid #eee;
256256
}
257257

258+
/* GitHub corner styling */
259+
.github-corner {
260+
position: fixed;
261+
top: 0;
262+
right: 0;
263+
z-index: 1000;
264+
}
265+
266+
.github-corner:hover .octo-arm {
267+
animation: octocat-wave 560ms ease-in-out;
268+
}
269+
270+
@keyframes octocat-wave {
271+
0%,100% { transform: rotate(0); }
272+
20%,60% { transform: rotate(-25deg); }
273+
40%,80% { transform: rotate(10deg); }
274+
}
275+
276+
@media (max-width: 500px) {
277+
.github-corner:hover .octo-arm {
278+
animation: none;
279+
}
280+
281+
.github-corner .octo-arm {
282+
animation: octocat-wave 560ms ease-in-out;
283+
}
284+
}
285+
258286
/* Responsive design */
259287
@media (max-width: 1024px) {
260288
.container {
@@ -295,6 +323,13 @@
295323
</style>
296324
</head>
297325
<body>
326+
<a href="https://github.com/secnotes/fuzzing-tutorial" class="github-corner" aria-label="View source on GitHub">
327+
<svg width="80" height="80" viewBox="0 0 250 250" style="fill:#2c3e50; color:#fff; position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true">
328+
<path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"/>
329+
<path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"/>
330+
<path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"/>
331+
</svg>
332+
</a>
298333
<div class="container">
299334
<div class="main-content">
300335
<header>

markdown_to_html.py

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,34 @@ def convert_markdown_to_html(input_file, output_dir):
364364
border-top: 1px solid #eee;
365365
}}
366366
367+
/* GitHub corner styling */
368+
.github-corner {{
369+
position: fixed;
370+
top: 0;
371+
right: 0;
372+
z-index: 1000;
373+
}}
374+
375+
.github-corner:hover .octo-arm {{
376+
animation: octocat-wave 560ms ease-in-out;
377+
}}
378+
379+
@keyframes octocat-wave {{
380+
0%,100% {{ transform: rotate(0); }}
381+
20%,60% {{ transform: rotate(-25deg); }}
382+
40%,80% {{ transform: rotate(10deg); }}
383+
}}
384+
385+
@media (max-width: 500px) {{
386+
.github-corner:hover .octo-arm {{
387+
animation: none;
388+
}}
389+
390+
.github-corner .octo-arm {{
391+
animation: octocat-wave 560ms ease-in-out;
392+
}}
393+
}}
394+
367395
/* Responsive design */
368396
@media (max-width: 1024px) {{
369397
.container {{
@@ -404,6 +432,13 @@ def convert_markdown_to_html(input_file, output_dir):
404432
</style>
405433
</head>
406434
<body>
435+
<a href="https://github.com/secnotes/fuzzing-tutorial" class="github-corner" aria-label="View source on GitHub">
436+
<svg width="80" height="80" viewBox="0 0 250 250" style="fill:#2c3e50; color:#fff; position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true">
437+
<path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"/>
438+
<path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"/>
439+
<path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"/>
440+
</svg>
441+
</a>
407442
<div class="container">
408443
<div class="main-content">
409444
<header>
@@ -438,6 +473,8 @@ def convert_markdown_to_html(input_file, output_dir):
438473
</body>
439474
</html>"""
440475

476+
# Generate output filename
477+
441478
# Generate output filename
442479
filename = Path(input_file).stem
443480
if filename.lower() == 'readme':

0 commit comments

Comments
 (0)