From 85e95719a06bc257d528d29dfe21692e463bc1f0 Mon Sep 17 00:00:00 2001 From: Marcus Da Coregio Date: Tue, 29 Jun 2021 15:52:55 -0300 Subject: [PATCH] Update docs links to point to minor version branches Closes gh-9986 --- docs/guides/spring-security-docs-guides.gradle | 3 +-- docs/manual/spring-security-docs-manual.gradle | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/guides/spring-security-docs-guides.gradle b/docs/guides/spring-security-docs-guides.gradle index fa12dede40..bce20f0081 100644 --- a/docs/guides/spring-security-docs-guides.gradle +++ b/docs/guides/spring-security-docs-guides.gradle @@ -5,8 +5,7 @@ asciidoctor { baseDir = file('src/docs/asciidoc') options eruby: 'erubis' - def ghTag = snapshotBuild ? 'main' : project.version - def ghSamplesUrl = "https://github.com/spring-projects/spring-security-samples/tree/$ghTag" + def ghSamplesUrl = "https://github.com/spring-projects/spring-security-samples/tree/$samplesBranch" attributes copycss : '', icons : 'font', 'source-highlighter': 'prettify', diff --git a/docs/manual/spring-security-docs-manual.gradle b/docs/manual/spring-security-docs-manual.gradle index c0d94050da..b622b1730e 100644 --- a/docs/manual/spring-security-docs-manual.gradle +++ b/docs/manual/spring-security-docs-manual.gradle @@ -18,7 +18,7 @@ asciidoctorj { def ghTag = snapshotBuild ? 'main' : project.version def ghUrl = "https://github.com/spring-projects/spring-security/tree/$ghTag" def ghOldSamplesUrl = "https://github.com/spring-projects/spring-security/tree/5.4.x/samples" - def ghSamplesUrl = "https://github.com/spring-projects/spring-security-samples/tree/$ghTag" + def ghSamplesUrl = "https://github.com/spring-projects/spring-security-samples/tree/$samplesBranch" def securityDocsUrl = "https://docs.spring.io/spring-security/site/docs/$docsTag" def oldSecurityApiUrl = "https://docs.spring.io/spring-security/site/docs/5.4.x/api/" def securityApiUrl = "$securityDocsUrl/api/"