processone / docs.ejabberd.im

This is documentation site for ejabberd messaging server
https://docs.ejabberd.im/
14 stars 44 forks source link

Search should specify which ejabberd version the results are from #107

Closed licaon-kter closed 3 years ago

licaon-kter commented 3 years ago

Eg. search for "sm_cache_size" see 10 results, some from /archive/version some from /admin/

Yes, browser status bar might show the URL and one can find out, but in mobile browsers that's not a feature.

badlop commented 3 years ago

Just as an experiment, I've added the version number to the archived "Modules Options" pages titles in https://github.com/processone/docs.ejabberd.im/commit/28805d462b1df12f9a1b12c9c0519829558e427d

That provides information in the Search results... as soon as the search engine uses the updated page (the crawler apprently runs every 24 hours).

Maybe it would be preferable if the /archive path is not crawled at all, since it's a duplicate of existing pages just archived for reference when using old ejabberd versions... For reference:

badlop commented 3 years ago

Fixed with this PR that avoids crawling /archive in Algolia: https://github.com/algolia/docsearch-configs/pull/4421