You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@grails.apache.org by ja...@apache.org on 2025/09/21 01:27:26 UTC

(grails-static-website) branch generate-guides-with-site created (now e05eeb175f5)

This is an automated email from the ASF dual-hosted git repository.

jamesfredley pushed a change to branch generate-guides-with-site
in repository https://gitbox.apache.org/repos/asf/grails-static-website.git


      at e05eeb175f5 Add guides generation to site build process

This branch includes the following new commits:

     new 7511f861170 Change micronaut to grails
     new e05eeb175f5 Add guides generation to site build process

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(grails-static-website) 01/02: Change micronaut to grails

Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jamesfredley pushed a commit to branch generate-guides-with-site
in repository https://gitbox.apache.org/repos/asf/grails-static-website.git

commit 7511f86117038af28b6cf0dade09fae86ff3a75f
Author: James Fredley <ja...@users.noreply.github.com>
AuthorDate: Sat Sep 20 21:26:24 2025 -0400

    Change micronaut to grails
---
 buildSrc/src/main/groovy/org/grails/gradle/GrailsWebsitePlugin.groovy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/buildSrc/src/main/groovy/org/grails/gradle/GrailsWebsitePlugin.groovy b/buildSrc/src/main/groovy/org/grails/gradle/GrailsWebsitePlugin.groovy
index e8b2c3114b4..ac22d8f7962 100644
--- a/buildSrc/src/main/groovy/org/grails/gradle/GrailsWebsitePlugin.groovy
+++ b/buildSrc/src/main/groovy/org/grails/gradle/GrailsWebsitePlugin.groovy
@@ -211,7 +211,7 @@ class GrailsWebsitePlugin implements Plugin<Project> {
             task.finalizedBy(TASK_GEN_PLUGINS)
             task.finalizedBy(TASK_RENDER_MINUTES)
             task.finalizedBy(TASK_GEN_SITEMAP)
-            task.setDescription('Build Micronaut website - generates pages with HTML entries in pages and build/temp, renders blog and RSS feed, copies assets and generates a sitemap')
+            task.setDescription('Build Grails website - generates pages with HTML entries in pages and build/temp, renders blog and RSS feed, copies assets and generates a sitemap')
 
         })
         project.tasks.named(TASK_BUILD).configure(new Action<Task>() {


(grails-static-website) 02/02: Add guides generation to site build process

Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jamesfredley pushed a commit to branch generate-guides-with-site
in repository https://gitbox.apache.org/repos/asf/grails-static-website.git

commit e05eeb175f57b07fa5e13bd430961c3730a117f5
Author: James Fredley <ja...@users.noreply.github.com>
AuthorDate: Sat Sep 20 21:27:19 2025 -0400

    Add guides generation to site build process
    
    Updated GrailsWebsitePlugin to include TASK_GEN_GUIDES as a dependency for the site generation task. Modified GuidesTask to output guides into a dedicated 'guides' directory and ensure the directory is created with mkdirs().
---
 buildSrc/src/main/groovy/org/grails/gradle/GrailsWebsitePlugin.groovy | 1 +
 buildSrc/src/main/groovy/org/grails/gradle/GuidesTask.groovy          | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/buildSrc/src/main/groovy/org/grails/gradle/GrailsWebsitePlugin.groovy b/buildSrc/src/main/groovy/org/grails/gradle/GrailsWebsitePlugin.groovy
index ac22d8f7962..aba52914a9f 100644
--- a/buildSrc/src/main/groovy/org/grails/gradle/GrailsWebsitePlugin.groovy
+++ b/buildSrc/src/main/groovy/org/grails/gradle/GrailsWebsitePlugin.groovy
@@ -207,6 +207,7 @@ class GrailsWebsitePlugin implements Plugin<Project> {
             task.dependsOn(TASK_GEN_DOWNLOADS)
             task.dependsOn(TASK_GEN_PROFILES)
             task.dependsOn(TASK_GEN_FAQ)
+            task.dependsOn(TASK_GEN_GUIDES)
             task.finalizedBy(TASK_RENDER_BLOG)
             task.finalizedBy(TASK_GEN_PLUGINS)
             task.finalizedBy(TASK_RENDER_MINUTES)
diff --git a/buildSrc/src/main/groovy/org/grails/gradle/GuidesTask.groovy b/buildSrc/src/main/groovy/org/grails/gradle/GuidesTask.groovy
index e511ca20135..206b0bb223c 100644
--- a/buildSrc/src/main/groovy/org/grails/gradle/GuidesTask.groovy
+++ b/buildSrc/src/main/groovy/org/grails/gradle/GuidesTask.groovy
@@ -58,8 +58,8 @@ class GuidesTask extends DefaultTask {
         generateGuidesPages(classLoader, pagesDir, url.get())
         File template = document.get()
         final String templateText = template.text
-        File o = new File(output.get().absolutePath + "/" + RenderSiteTask.DIST)
-        o.mkdir()
+        File o = new File(output.get().absolutePath + "/" + RenderSiteTask.DIST + "/guides")
+        o.mkdirs()
 
 
         File releasesFile = releases.get()