Skip to content

Commit 2b5e377

Browse files
YosefAshenaficlaude
andcommitted
docs: configure mkdocs for documentation deployment and GitHub Pages hosting
Set up MkDocs Material theme with comprehensive navigation structure that mirrors the repository hierarchy. Includes all README.md files throughout the codebase as documentation content. ## Changes - `mkdocs.yml`: Complete MkDocs Material theme configuration with: - Auto-navigation structure mapping repository hierarchy - All 180+ generated README files organized by module and app - Search, offline, and code copy plugins - Light/dark mode theme support - Semantic HTML and accessibility features - `.github/workflows/deploy-docs.yml`: CI/CD workflow for: - Automatic documentation building on push to gh-pages - Deployment to GitHub Pages - Python 3.12 environment setup - Dependency installation from docs-requirements.txt - `docs-requirements.txt`: MkDocs and dependencies - Updated `.gitignore` to exclude MkDocs build artifacts ## Documentation Structure The navigation hierarchy follows the repository structure: - Core modules (admin, api, cache, decorators, etc.) - Django apps (accounts, changelog, organizations, etc.) - Library integrations (google, stripe, slack, etc.) - Utilities and test scaffolding ## Hosting Documentation will be automatically built and deployed to GitHub Pages at: https://hacktoolkit.github.io/django-htk/ 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent efd728d commit 2b5e377

File tree

4 files changed

+201
-0
lines changed

4 files changed

+201
-0
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build and Deploy Documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- gh-pages
7+
pull_request:
8+
branches:
9+
- gh-pages
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Set up Python
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: '3.12'
23+
24+
- name: Install dependencies
25+
run: |
26+
pip install -r docs-requirements.txt
27+
28+
- name: Build documentation
29+
run: |
30+
mkdocs build
31+
32+
- name: Deploy to GitHub Pages
33+
if: github.event_name == 'push' && github.ref == 'refs/heads/gh-pages'
34+
uses: peaceiris/actions-gh-pages@v3
35+
with:
36+
github_token: ${{ secrets.GITHUB_TOKEN }}
37+
publish_dir: ./site
38+
cname: hacktoolkit.github.io

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
*.pyc
22
site/
3+
site/

docs-requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
mkdocs==1.5.3
2+
mkdocs-material==9.4.14
3+
pymdown-extensions==10.5

mkdocs.yml

Lines changed: 159 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
1+
site_name: Django HTK (Hacktoolkit)
2+
site_description: Production-ready Django toolkit with 29 apps, 47+ integrations, and 24 utility categories
3+
site_author: Jonathan Tsai & HTK Contributors
4+
site_url: https://hacktoolkit.github.io/django-htk/
5+
repo_url: https://github.com/hacktoolkit/django-htk
6+
repo_name: django-htk
7+
copyright: Copyright &copy; 2024 HTK Contributors. MIT License.
8+
9+
theme:
10+
name: material
11+
palette:
12+
- scheme: default
13+
primary: deep purple
14+
accent: deep orange
15+
toggle:
16+
icon: material/brightness-7
17+
name: Switch to dark mode
18+
- scheme: slate
19+
primary: deep purple
20+
accent: deep orange
21+
toggle:
22+
icon: material/brightness-4
23+
name: Switch to light mode
24+
25+
features:
26+
- navigation.instant
27+
- navigation.tracking
28+
- navigation.top
29+
- search.suggest
30+
- search.highlight
31+
- content.code.copy
32+
33+
plugins:
34+
- search
35+
- offline
36+
37+
markdown_extensions:
38+
- admonition
39+
- pymdownx.arithmatex
40+
- pymdownx.betterem:
41+
smart_enable: all
42+
- pymdownx.caret
43+
- pymdownx.critic
44+
- pymdownx.details
45+
- pymdownx.emoji:
46+
emoji_generator: !!python/name:pymdownx.emoji.to_svg
47+
- pymdownx.inlinehilite
48+
- pymdownx.keys
49+
- pymdownx.mark
50+
- pymdownx.smartsymbols
51+
- pymdownx.superfences
52+
- pymdownx.tabbed:
53+
alternate_style: true
54+
- pymdownx.tasklist:
55+
custom_checkbox: true
56+
- pymdownx.tilde
57+
- codehilite
58+
- footnotes
59+
- tables
60+
- toc:
61+
permalink: true
62+
63+
nav:
64+
- Home: README.md
65+
- Admin: admin/README.md
66+
- Admin Tools: admintools/README.md
67+
- API:
68+
- API Overview: api/README.md
69+
- Authentication: api/auth/README.md
70+
- Cache: cache/README.md
71+
- Constants: constants/README.md
72+
- Decorators: decorators/README.md
73+
- Extensions: extensions/README.md
74+
- Forms: forms/README.md
75+
- Middleware: middleware/README.md
76+
- Models: models/README.md
77+
- Utils: utils/README.md
78+
- Validators: validators/README.md
79+
- Django Apps:
80+
- Apps Overview: apps/README.md
81+
- Accounts:
82+
- Accounts: apps/accounts/README.md
83+
- API: apps/accounts/api/README.md
84+
- Addresses: apps/addresses/README.md
85+
- Assessments: apps/assessments/README.md
86+
- Async Task: apps/async_task/README.md
87+
- Bible: apps/bible/README.md
88+
- Blob Storage: apps/blob_storage/README.md
89+
- Changelog: apps/changelog/README.md
90+
- Conversations: apps/conversations/README.md
91+
- CPQ: apps/cpq/README.md
92+
- Customers: apps/customers/README.md
93+
- Documentation Automation: apps/documentation_automation/README.md
94+
- Features: apps/features/README.md
95+
- Feedback: apps/feedback/README.md
96+
- File Storage: apps/file_storage/README.md
97+
- Forums: apps/forums/README.md
98+
- Geolocations: apps/geolocations/README.md
99+
- I18n: apps/i18n/README.md
100+
- Invitations: apps/invitations/README.md
101+
- KV Storage: apps/kv_storage/README.md
102+
- Maintenance Mode: apps/maintenance_mode/README.md
103+
- Mobile: apps/mobile/README.md
104+
- MP: apps/mp/README.md
105+
- Notifications: apps/notifications/README.md
106+
- Organizations: apps/organizations/README.md
107+
- Prelaunch: apps/prelaunch/README.md
108+
- Sites: apps/sites/README.md
109+
- Store: apps/store/README.md
110+
- Tokens: apps/tokens/README.md
111+
- URL Shortener: apps/url_shortener/README.md
112+
- Libraries:
113+
- Libraries Overview: lib/README.md
114+
- Airtable: lib/airtable/README.md
115+
- Alexa: lib/alexa/README.md
116+
- Amazon: lib/amazon/README.md
117+
- Awesome Bible: lib/awesomebible/README.md
118+
- AWS: lib/aws/README.md
119+
- Dark Sky: lib/darksky/README.md
120+
- Discord: lib/discord/README.md
121+
- Dynamic Screening Solutions: lib/dynamic_screening_solutions/README.md
122+
- Egauge: lib/egauge/README.md
123+
- ESV: lib/esv/README.md
124+
- Facebook: lib/facebook/README.md
125+
- Fitbit: lib/fitbit/README.md
126+
- Full Contact: lib/fullcontact/README.md
127+
- Geoip: lib/geoip/README.md
128+
- GitHub: lib/github/README.md
129+
- Glassdoor: lib/glassdoor/README.md
130+
- Google: lib/google/README.md
131+
- Gravatar: lib/gravatar/README.md
132+
- Indeed: lib/indeed/README.md
133+
- Iterable: lib/iterable/README.md
134+
- LinkedIn: lib/linkedin/README.md
135+
- Literal Word: lib/literalword/README.md
136+
- Mailchimp: lib/mailchimp/README.md
137+
- Mapbox: lib/mapbox/README.md
138+
- MongoDB: lib/mongodb/README.md
139+
- OEmbed: lib/oembed/README.md
140+
- OhmyGreen: lib/ohmygreen/README.md
141+
- OpenAI: lib/openai/README.md
142+
- Plivo: lib/plivo/README.md
143+
- QR Code: lib/qrcode/README.md
144+
- RabbitMQ: lib/rabbitmq/README.md
145+
- Redfin: lib/redfin/README.md
146+
- SFBART: lib/sfbart/README.md
147+
- Shopify: lib/shopify_lib/README.md
148+
- Slack: lib/slack/README.md
149+
- Song Select: lib/songselect/README.md
150+
- Stripe: lib/stripe_lib/README.md
151+
- Twitter: lib/twitter/README.md
152+
- Yahoo: lib/yahoo/README.md
153+
- Yelp: lib/yelp/README.md
154+
- Zesty: lib/zesty/README.md
155+
- Zillow: lib/zillow/README.md
156+
- Zip Recruiter: lib/ziprecruiter/README.md
157+
- Zuora: lib/zuora/README.md
158+
- Test Scaffold: test_scaffold/README.md
159+
- Scripts: scripts/README.md

0 commit comments

Comments
 (0)