GitToTheHub commented on PR #1463: URL: https://github.com/apache/cordova-docs/pull/1463#issuecomment-3871468322
Can you try another approach? We can normalize `my_entry` before it enters `toc_recursive_main.html` and `toc_recursive_dropdown.html`. `my_entry` is given to the includes in [_layouts/docs.html](https://github.com/apache/cordova-docs/blob/master/www/_layouts/docs.html). On line 18 `MY_ENTRY` is set: https://github.com/apache/cordova-docs/blob/7f2a7dc34b42644626b7e83db96238d3094d9af6/www/_layouts/docs.html#L18 Her you can add: ```liquid {% if MY_ENTRY | slice: -1 == "/" %} {% assign MY_ENTRY = MY_ENTRY | slice: 0, MY_ENTRY.size | minus: 1 %} {% endif %} ``` This will remove a trailing slash for `my_entry`. You can remove the changes you made in `toc_recursive_main.html` and `toc_recursive_dropdown.html`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
