Skip to content

Commit

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

0 comments on commit f67b2cf

Please sign in to comment.