From 8a1b6a1c62cc6c2324e2cbb8546952bd84836a3e Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Thu, 7 Aug 2025 10:38:52 +0200 Subject: [PATCH] Simplify PMD vars --- _config.yml | 10 ++++++---- _includes/downloads.html | 18 +----------------- _includes/home.html | 6 +++--- _includes/quickstart.html | 24 ++++++++++++------------ 4 files changed, 22 insertions(+), 36 deletions(-) diff --git a/_config.yml b/_config.yml index b44897cab2..965f29ca5e 100644 --- a/_config.yml +++ b/_config.yml @@ -8,7 +8,7 @@ title: PMD author: PMD description: PMD is a source code analyzer. It finds unused variables, empty catch blocks, unnecessary object creation, and so forth. keywords: PMD,Java,Salesforce.com Apex,Code Analyzer,Clean Code,Software Development -copyright: 'Copyright © 2024 PMD. All Rights Reserved.' +copyright: 'Copyright © 2025 PMD. All Rights Reserved.' credits: 'Credits: Landing Page Theme, based on free to use, open source Bootstrap theme created by Start Bootstrap.' exclude: @@ -25,9 +25,11 @@ exclude: # PMD vars # # ----------------------- # pmd: - latestVersion: 7.16.0 - latestVersionDate: 25-July-2025 - downloads: + # the first version is the latest + # all the versions are available in the download section + versions: + - version: 7.16.0 + date: 25-July-2025 - version: 7.15.0 date: 27-June-2025 - version: 7.14.0 diff --git a/_includes/downloads.html b/_includes/downloads.html index 0ed7ae9072..c6fd4dc37d 100644 --- a/_includes/downloads.html +++ b/_includes/downloads.html @@ -6,29 +6,13 @@

Downloads


-

{{ site.pmd.latestVersion }} ({{ site.pmd.latestVersionDate }})

- - - {% for download in site.pmd.downloads %} + {% for download in site.pmd.versions %}

{{ download.version }} ({{ download.date }})

{% endfor %} diff --git a/_includes/home.html b/_includes/home.html index 3e9ae04580..a379073fdd 100644 --- a/_includes/home.html +++ b/_includes/home.html @@ -11,12 +11,12 @@

{{ page.title }}

{{ page.subTitle }}



- Latest Version: {{ site.pmd.latestVersion }} ({{ site.pmd.latestVersionDate }})
- Release Notes | + Latest Version: {{ site.pmd.versions[0].version }} ({{ site.pmd.versions[0].date }})
+ Release Notes | Source diff --git a/_includes/quickstart.html b/_includes/quickstart.html index 3afbd19cdb..256e894ef0 100644 --- a/_includes/quickstart.html +++ b/_includes/quickstart.html @@ -5,7 +5,7 @@

QuickStart


- See also Getting Started + See also Getting Started
- Checkout the existing rules for Java. + Checkout the existing rules for Java.