Skip to content

Fix invalid Jekyll include for docs index and adjust tocfile generation in gen_defaults.js#1505

Open
MatrixNeoKozak wants to merge 1 commit into
apache:masterfrom
MatrixNeoKozak:scout-improvement-1780226641919
Open

Fix invalid Jekyll include for docs index and adjust tocfile generation in gen_defaults.js#1505
MatrixNeoKozak wants to merge 1 commit into
apache:masterfrom
MatrixNeoKozak:scout-improvement-1780226641919

Conversation

@MatrixNeoKozak
Copy link
Copy Markdown

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant