Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ site
# Generated files
generated/
.DS_Store

# Python cache
__pycache__/
*.pyc
17 changes: 17 additions & 0 deletions mkdocs/hooks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
"""MkDocs hooks to configure SSL certificates for include-markdown plugin."""
import ssl
import certifi

# Monkey patch urllib to use certifi's certificate bundle
def on_startup(**kwargs):
"""Configure SSL context to use certifi certificates."""
import urllib.request

# Create SSL context with certifi's certificate bundle
ssl_context = ssl.create_default_context(cafile=certifi.where())

# Set the default opener to use this context
https_handler = urllib.request.HTTPSHandler(context=ssl_context)
opener = urllib.request.build_opener(https_handler)
urllib.request.install_opener(opener)

5 changes: 5 additions & 0 deletions mkdocs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ markdown_extensions:
class: mermaid
format: !!python/name:pymdownx.superfences.fence_code_format

hooks:
- hooks.py

plugins:
search:
awesome-pages:
Expand Down Expand Up @@ -73,6 +76,8 @@ plugins:
raise_error: false
raise_error_after_finish: false
validate_external_urls: true
include-markdown:

theme:
name: material
custom_dir: overrides
Expand Down
2 changes: 2 additions & 0 deletions mkdocs/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ dependencies = [
"agntcy-iomapper==0.2.2",
"beautifulsoup4>=4.13.3",
"mkdocs-swagger-ui-tag==0.7.1",
"mkdocs-include-markdown-plugin>=7.2.0",
# Linting and testing tools
"codespell>=2.2.0",
"pymarkdownlnt>=0.9.0",
"mkdocs-htmlproofer-plugin>=1.0.0",
"certifi>=2025.1.31",
]
17 changes: 17 additions & 0 deletions mkdocs/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading