machinetranslate.org icon indicating copy to clipboard operation
machinetranslate.org copied to clipboard

No search snippet for auto-generated pages

Open bittlingmayer opened this issue 2 years ago • 3 comments

The text snippet for both engine pages and language pages is empty in the search.

Screenshot 2022-09-26 at 11 23 05 Screenshot 2022-09-26 at 11 25 25

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.

bittlingmayer avatar Sep 26 '22 07:09 bittlingmayer

This also hurts the search ranking, like in the first screenshot. (We'd expect the main page to be 1st, not 2nd.)

bittlingmayer avatar Sep 26 '22 07:09 bittlingmayer

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

bittlingmayer avatar Sep 26 '22 07:09 bittlingmayer

This may be the fix: https://github.com/just-the-docs/just-the-docs/issues/795#issuecomment-1221500381

bittlingmayer avatar Sep 26 '22 07:09 bittlingmayer