Skip to content

Commit 2521d7d

Browse files
committed
fix: Comprehensive GitHub Pages Jekyll exclusion configuration
- Add .gitattributes to mark Python files as vendored - Add docs/.nojekyll to disable Jekyll in docs directory - Add comprehensive _config.yml to exclude all files except index.html - This triple-layer protection should prevent Jekyll from processing Python files
1 parent 98f9344 commit 2521d7d

File tree

3 files changed

+70
-0
lines changed

3 files changed

+70
-0
lines changed

.gitattributes

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Exclude Python files from GitHub Pages Jekyll processing
2+
*.py linguist-vendored
3+
*.pyc linguist-vendored
4+
__pycache__/ linguist-vendored
5+
*.egg-info/ linguist-vendored
6+
src/ linguist-vendored
7+
tests/ linguist-vendored
8+
venv/ linguist-vendored
9+
venv_security/ linguist-vendored
10+
scripts/ linguist-vendored
11+
examples/*.py linguist-vendored
12+
13+
# Documentation files
14+
*.md linguist-documentation
15+
*.rst linguist-documentation
16+
docs/ linguist-documentation
17+
18+
# Mark HTML as documentation
19+
*.html linguist-documentation

_config.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Jekyll configuration for GitHub Pages
2+
# This tells Jekyll to exclude all files except the ones we want
3+
4+
# Disable Jekyll plugins
5+
plugins: []
6+
7+
# Exclude everything by default
8+
exclude:
9+
- "*.py"
10+
- "*.pyc"
11+
- "*.yml"
12+
- "*.yaml"
13+
- "*.ini"
14+
- "*.cfg"
15+
- "*.toml"
16+
- "*.txt"
17+
- "*.json"
18+
- "*.sh"
19+
- "*.bat"
20+
- "*.ps1"
21+
- "Dockerfile"
22+
- "Makefile"
23+
- "LICENSE"
24+
- "README.md"
25+
- "CHANGELOG.md"
26+
- "CODE_OF_CONDUCT.md"
27+
- "CONTRIBUTING.md"
28+
- "SECURITY.md"
29+
- "MANIFEST.in"
30+
- ".github/"
31+
- "src/"
32+
- "tests/"
33+
- "docs/"
34+
- "examples/"
35+
- "scripts/"
36+
- "venv/"
37+
- "venv_security/"
38+
- "wiki/"
39+
- "dist/"
40+
- "build/"
41+
- "htmlcov/"
42+
- "__pycache__/"
43+
- ".pytest_cache/"
44+
- ".tox/"
45+
- "*.egg-info/"
46+
- ".*"
47+
48+
# Only include the index.html
49+
include:
50+
- index.html
51+
- .nojekyll

docs/.nojekyll

Whitespace-only changes.

0 commit comments

Comments
 (0)