Skip to content

Commit 680e2f0

Browse files
secnotesclaude
andcommitted
Add Markdown to HTML conversion script and GitHub Actions workflow
- Create markdown_to_html.py script that converts Markdown files to HTML with responsive design - Include sidebar table of contents with proper styling and navigation - Add GitHub Actions workflow to automatically convert Markdown to HTML when source files change - Generate HTML files with unified "Fuzzing Tutorial" header title - Implement responsive layout with separate main content and TOC sidebar Co-Authored-By: Claude (qwen3-coder-plus) <noreply@anthropic.com>
1 parent 4792840 commit 680e2f0

File tree

9 files changed

+2536
-1702
lines changed

9 files changed

+2536
-1702
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Convert Markdown to HTML
2+
3+
on:
4+
push:
5+
paths:
6+
- 'README.md'
7+
- 'README_en.md'
8+
- 'CONTRIBUTING.md'
9+
- 'markdown_to_html.py'
10+
workflow_dispatch:
11+
12+
jobs:
13+
convert-markdown:
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: write
17+
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
22+
- name: Set up Python
23+
uses: actions/setup-python@v5
24+
with:
25+
python-version: '3.x'
26+
27+
- name: Install dependencies
28+
run: |
29+
pip install markdown
30+
31+
- name: Create docs directory
32+
run: mkdir -p docs
33+
34+
- name: Run markdown to HTML conversion
35+
run: python markdown_to_html.py
36+
37+
- name: Commit and push changes
38+
run: |
39+
git config --local user.email "action@github.com"
40+
git config --local user.name "GitHub Action"
41+
git add docs/
42+
if [[ -n $(git status --porcelain docs/) ]]; then
43+
git commit -m "Auto-update HTML files from Markdown [skip ci]"
44+
git push
45+
else
46+
echo "No changes to commit"
47+
fi
48+
env:
49+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99

1010
<hr />
1111

12-
## Table of Contents
13-
14-
[TOC]
15-
1612
## Books
1713

1814
- [The Fuzzing Book, 2019](https://www.Fuzzingbook.org/) - 该书以原理+代码练习为基础,从 0 到 1 完成一个 Fuzz 测试框架,结合实际的练习,如果想编写自己的测试框架,可以参考本书。

0 commit comments

Comments
 (0)