Skip to content

Commit

Permalink
try adding project root to path to fix mkdocs build CI
Browse files Browse the repository at this point in the history
  • Loading branch information
slobentanzer committed Jan 30, 2025
1 parent a9e074d commit e045d5e
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions docs/scripts/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
"""

import os
import sys
from pathlib import Path

import pandas as pd

from ._plotting import (
from docs.scripts._plotting import (
plot_accuracy_per_model,
plot_accuracy_per_quantisation,
plot_accuracy_per_task,
Expand All @@ -21,9 +23,13 @@
plot_text2cypher,
plot_text2cypher_safety_only,
)
from ._preprocess import create_overview_table, preprocess_results_for_frontend
from ._stats import calculate_stats
from docs.scripts._preprocess import create_overview_table, preprocess_results_for_frontend
from docs.scripts._stats import calculate_stats

# Add the project root to Python path
project_root = str(Path(__file__).parent.parent.parent)
if project_root not in sys.path:
sys.path.insert(0, project_root)

def on_pre_build(config, **kwargs) -> None:
"""Run pre-processing and plotting scripts.
Expand Down

0 comments on commit e045d5e

Please sign in to comment.