Skip to content

Commit

Permalink
fix_capabilities_categories
Browse files Browse the repository at this point in the history
  • Loading branch information
elephaint committed May 3, 2024
1 parent 84e7f67 commit 34543f6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion action_files/readme_com/modify_markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ def modify_markdown(
if Path(file_path).name == 'CHANGELOG.md':
category_slug = 'getting-started'
else:
category_slug = Path(file_path).parent.name
if Path(file_path).parents[1] == 'docs':
category_slug = Path(file_path).parents[0].name
else:
category_slug = Path(file_path).parents[1].name
category = categories[category_slug]
except:
pass
Expand Down

0 comments on commit 34543f6

Please sign in to comment.