[GRASS-git] [OSGeo/grass-addons] ad36f5: cronjobs: inject canonical URLs into older manual ...

Markus Neteler noreply at github.com
Mon Dec 2 12:41:20 PST 2024


  Branch: refs/heads/grass8
  Home:   https://github.com/OSGeo/grass-addons
  Commit: ad36f57519d4b401f09fa20b10c7127b87264f4e
      https://github.com/OSGeo/grass-addons/commit/ad36f57519d4b401f09fa20b10c7127b87264f4e
  Author: Markus Neteler <neteler at osgeo.org>
  Date:   2024-12-02 (Mon, 02 Dec 2024)

  Changed paths:
    M utils/cronjobs_osgeo_lxd/cron_grass_current_stable_build_binaries.sh
    M utils/cronjobs_osgeo_lxd/cron_grass_legacy_build_binaries.sh
    M utils/cronjobs_osgeo_lxd/cron_grass_old_build_binaries.sh
    M utils/cronjobs_osgeo_lxd/cron_grass_preview_build_binaries.sh
    M utils/cronjobs_osgeo_lxd/cron_job_list_grass
    M utils/cronjobs_osgeo_lxd/robots.txt

  Log Message:
  -----------
  cronjobs: inject canonical URLs into older manual pages (SEO) (#1241)

The GRASS GIS manual pages of the different versions have been published for a long time with a difficult to understand concept of being invisible, redirected or shown, which also strongly affects the search engine ranking.

SEO: Without indication of "canonical" URLs different versions wipe each out out in search engines. Canonical tags help consolidate duplicate or similar content by specifying the preferred version of a page, ensuring search engines index and rank the desired URL while avoiding duplicate content issues.

This PR changes the cronjob scripts to
- inject "grass-stable" as the "canonical" into older manual pages under versioned URL
- inject "grass-devel" as the "canonical" into the development manual pages under versioned URL

Like this no "duplicate content" from a SEO perspective should occur.

Also [robots.txt](https://grass.osgeo.org/robots.txt) is updated to reactivate the manual pages of old GRASS GIS versions (which now contain "grass-stable" as the canonical).

Additionally, rewrite red box injection to avoid globbing error `argument list too long` old versions of libpython manual.

Fixes https://github.com/OSGeo/grass/issues/4579



To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass-addons/settings/notifications


More information about the grass-commit mailing list