docs.gradle.org: permalink to actual version

Adds a permanent link for Gradle documentation pages (including /current/) to the exact version to help create better links to docs.gradle.org

Author
andrybak
Daily installs
0
Total installs
7
Ratings
0 0 0
Version
4
Created
2023-05-11
Updated
2025-09-20
Size
4.13 KB
License
MIT
Applies to

Search engines often link to https://docs.gradle.org/current/. Such links can easily become outdated if documentation files or sections are renamed.

This user script adds a convenient permanent link at the top of the page to an exact version of Gradle docs to help create better links to https://docs.gradle.org that won't become outdated.

If you like this userscript, you might also like userstyle "docs.gradle.org: More readable class descriptions". This script uses userscript libraries.


The script works on userguide pages:

Screenshot of the user script in action on userguide page "Command Line Interface"

on DSL reference pages: Screenshot of the user script in action on DSL reference page 'org.gradle.api.invocation.Gradle.html'
and on Javadoc pages: Screenshot of the user script in action on Javadoc page about interface 'org.gradle.api.invocation.Gradle'

If the userscript doesn't work for you, please report the issue. Feedback is always appreciated.