diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index c0f92a5..a4464a5 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -89,8 +89,8 @@ jobs: if [ -f "batteryquantities.ttl" ]; then python docs/scripts/apply_foops_recommendations.py batteryquantities.ttl batteryquantities-foops.ttl sudo cp "batteryquantities-foops.ttl" "docs/_build/html/versions/$TAG/batteryquantities.ttl" - elif [ -f "modules/quantities.ttl" ]; then - python docs/scripts/apply_foops_recommendations.py modules/quantities.ttl quantities-foops.ttl + elif [ -f "shared/battery-quantities.ttl" ]; then + python docs/scripts/apply_foops_recommendations.py shared/battery-quantities.ttl quantities-foops.ttl sudo cp "quantities-foops.ttl" "docs/_build/html/versions/$TAG/quantities.ttl" else echo "File not found!" @@ -112,8 +112,8 @@ jobs: if [ -f "batteryquantities.ttl" ]; then python docs/scripts/apply_foops_recommendations.py batteryquantities.ttl batteryquantities-foops.ttl sudo cp "batteryquantities-foops.ttl" "docs/_build/html/batteryquantities.ttl" - elif [ -f "modules/quantities.ttl" ]; then - python docs/scripts/apply_foops_recommendations.py modules/quantities.ttl quantities-foops.ttl + elif [ -f "shared/battery-quantities.ttl" ]; then + python docs/scripts/apply_foops_recommendations.py shared/battery-quantities.ttl quantities-foops.ttl sudo cp "quantities-foops.ttl" "docs/_build/html/quantities.ttl" else echo "battery quantities file not found!" diff --git a/docs/scripts/ttl_to_rst.py b/docs/scripts/ttl_to_rst.py index 6d93548..7259cc6 100644 --- a/docs/scripts/ttl_to_rst.py +++ b/docs/scripts/ttl_to_rst.py @@ -143,8 +143,8 @@ def rendering_workflow(): # Check for old structure (root directory) if os.path.isfile("./batteryquantities.ttl"): ttl_modules.append({"section title": "Quantities used in Batteries", "path": "./batteryquantities.ttl"}) - elif os.path.isfile("./modules/quantities.ttl"): - ttl_modules.append({"section title": "Quantities used in Batteries", "path": "./modules/quantities.ttl"}) + elif os.path.isfile("./shared/battery-quantities.ttl"): + ttl_modules.append({"section title": "Quantities used in Batteries", "path": "./shared/battery-quantities.ttl"}) else: raise FileNotFoundError("No suitable TTL file found for battery quantities.")