a tonne of improvements! We got maps updaTed, a tonne of documentaiton done, and several small upgrades to hook logic and other things. Fixed the looping problem for mkdocs and claude is not integrated with coder; if people wanna have a ai anyway
This commit is contained in:
Binary file not shown.
@@ -6,6 +6,7 @@ Fetches repository data and generates JSON files during build
|
||||
import json
|
||||
import os
|
||||
import requests
|
||||
import sys
|
||||
from pathlib import Path
|
||||
from typing import Dict, Any
|
||||
import logging
|
||||
@@ -19,6 +20,11 @@ def on_pre_build(config: Dict[str, Any]) -> None:
|
||||
Hook that runs before MkDocs builds the site
|
||||
Generates repository JSON data files
|
||||
"""
|
||||
# Skip during serve mode to prevent infinite loops
|
||||
if _is_serve_mode():
|
||||
logger.info("Serve mode detected, skipping repository widget data generation")
|
||||
return
|
||||
|
||||
logger.info("Generating repository widget data...")
|
||||
|
||||
# Define repositories to fetch - all repos from services.md
|
||||
@@ -60,6 +66,10 @@ def on_pre_build(config: Dict[str, Any]) -> None:
|
||||
{
|
||||
"repo": "gethomepage/homepage",
|
||||
"github": True
|
||||
},
|
||||
{
|
||||
"repo": "anthropics/claude-code",
|
||||
"github": True
|
||||
}
|
||||
]
|
||||
|
||||
@@ -137,4 +147,9 @@ def generate_repo_data(repo_config: Dict[str, Any], output_dir: Path) -> None:
|
||||
|
||||
def on_post_build(config: Dict[str, Any]) -> None:
|
||||
"""Hook that runs after MkDocs builds the site"""
|
||||
logger.info("Repository widget data generation complete")
|
||||
logger.info("Repository widget data generation complete")
|
||||
|
||||
def _is_serve_mode() -> bool:
|
||||
"""Check if MkDocs is running in serve mode"""
|
||||
# Check command line arguments
|
||||
return 'serve' in sys.argv
|
||||
Reference in New Issue
Block a user