machinetranslate.org
machinetranslate.org copied to clipboard
No search snippet for auto-generated pages
The text snippet for both engine pages and language pages is empty in the search.


We would expect them to have text snippets like the other articles.
The issue is that these pages' contents are built dynamically with Jekyll layouts, and it seems like the built-in Just The Docs search indexing runs before the pages are built, so only the frontmatter gets indexed.
This also hurts the search ranking, like in the first screenshot. (We'd expect the main page to be 1st, not 2nd.)
It could just be that it doesn't crawl pages that don't have layout: default
.
See https://github.com/just-the-docs/just-the-docs/issues/795
This may be the fix: https://github.com/just-the-docs/just-the-docs/issues/795#issuecomment-1221500381