I provided detailed comments in the updated code that should provide any missing context in the summary below
Summary:
Problem:
The previous default github URL referenced the develop branch, which no longer exists
I also noticed several edge cases where the logic failed to account that the path in the github repo led to a file named index.md (and therefore not represented the URL)
Solution:
Tested and covered all edge cases where the documentation directory pointed to an index.md
Made code more readable using switchcasing (Jon showed me this as a good alternative to elseif awhile back)
Removed redundant url.includes
Updated Song documentation folder from configurations to configuration, this is uniform naming across products, so one less edge case
Linked to issue: https://github.com/overture-stack/website/issues/389
I provided detailed comments in the updated code that should provide any missing context in the summary below
Summary:
Problem:
Solution: