MatrixNeoKozak opened a new pull request, #1505:
URL: https://github.com/apache/cordova-docs/pull/1505
The `www/_includes/generated_docs_index.html` file uses
`site.data.toc.[page.tocfile]` which is invalid Liquid syntax (dot after
bracket) and will raise Jekyll errors. Changed to
`site.data.toc[page.tocfile]`. Additionally, `tools/bin/gen_defaults.js`
generates `tocfile` entries using the full filename (e.g., `en_12-0-0_gen`) but
the toc plugin expects the basename without `.yml`; however the line `tocfile:
tocfile.replace('.yml', '')` is already present but the `tocfile` variable is
derived from `util.genTocfileName(langName, versionName)` which returns a name
with `.yml`. Fixed the `genTocfileName` by removing the hardcoded `gen` suffix
and adjusting the logic so the generated file is correctly referenced (tocfile
without extension). This is a critical bug fix that prevents build failures and
broken navigation.
--
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]