Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jsimonclark committed Sep 30, 2024
1 parent 0f105d4 commit aebfd46
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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!"
Expand All @@ -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!"
Expand Down
4 changes: 2 additions & 2 deletions docs/scripts/ttl_to_rst.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")

Expand Down

0 comments on commit aebfd46

Please sign in to comment.