From c94443cf1c3b5c511a5d9a966c4468749a6c1783 Mon Sep 17 00:00:00 2001 From: Quentin Date: Thu, 11 Sep 2025 21:59:16 +0200 Subject: [PATCH] Fix URLs in generated readme.md --- .../__snapshots__/generator.spec.ts.snap | 2 +- .../app/__snapshots__/generator.spec.ts.snap | 6 ++--- .../__snapshots__/application.spec.ts.snap | 2 +- .../base-simple-application/application.ts | 3 +-- .../__snapshots__/generator.spec.ts.snap | 2 +- .../__snapshots__/generator.spec.ts.snap | 2 +- .../__snapshots__/generator.spec.ts.snap | 16 +++++++------- .../__snapshots__/generator.spec.ts.snap | 2 +- generators/common/templates/README.md.jhi.ejs | 22 +++++++++---------- .../__snapshots__/generator.spec.ts.snap | 2 +- .../__snapshots__/generator.spec.ts.snap | 2 +- .../__snapshots__/generator.spec.ts.snap | 2 +- .../__snapshots__/generator.spec.ts.snap | 2 +- .../__snapshots__/generator.spec.ts.snap | 2 +- .../__snapshots__/generator.spec.ts.snap | 2 +- 15 files changed, 34 insertions(+), 35 deletions(-) diff --git a/generators/angular/generators/bootstrap/__snapshots__/generator.spec.ts.snap b/generators/angular/generators/bootstrap/__snapshots__/generator.spec.ts.snap index b8d62ebf323f..d3793ddb1b2b 100644 --- a/generators/angular/generators/bootstrap/__snapshots__/generator.spec.ts.snap +++ b/generators/angular/generators/bootstrap/__snapshots__/generator.spec.ts.snap @@ -117,7 +117,7 @@ exports[`generator - angular:bootstrap bootstrapping default config should prepa "devServerPortProxy": 9000, "dockerContainers": Any, "dockerServicesDir": "src/main/docker/", - "documentationArchiveUrl": "https://www.jhipster.tech/documentation-archive/vJHIPSTER_VERSION", + "documentationArchiveUrl": "https://www.jhipster.tech/", "dtoSuffix": "DTO", "dynamic": undefined, "embeddableLaunchScript": undefined, diff --git a/generators/app/__snapshots__/generator.spec.ts.snap b/generators/app/__snapshots__/generator.spec.ts.snap index 236f5c4cf963..cf4b3eb66924 100644 --- a/generators/app/__snapshots__/generator.spec.ts.snap +++ b/generators/app/__snapshots__/generator.spec.ts.snap @@ -451,7 +451,7 @@ exports[`generator - app with default config should match snapshot 1`] = ` "postgresql", ], "dockerServicesDir": "src/main/docker/", - "documentationArchiveUrl": "https://www.jhipster.tech/documentation-archive/vJHIPSTER_VERSION", + "documentationArchiveUrl": "https://www.jhipster.tech/", "domains": [ "com.mycompany.myapp", ], @@ -1135,7 +1135,7 @@ exports[`generator - app with gateway should match snapshot 1`] = ` "postgresql", ], "dockerServicesDir": "src/main/docker/", - "documentationArchiveUrl": "https://www.jhipster.tech/documentation-archive/vJHIPSTER_VERSION", + "documentationArchiveUrl": "https://www.jhipster.tech/", "domains": [ "com.mycompany.myapp", ], @@ -1804,7 +1804,7 @@ exports[`generator - app with microservice should match snapshot 1`] = ` "postgresql", ], "dockerServicesDir": "src/main/docker/", - "documentationArchiveUrl": "https://www.jhipster.tech/documentation-archive/vJHIPSTER_VERSION", + "documentationArchiveUrl": "https://www.jhipster.tech/", "domains": [ "com.mycompany.myapp", ], diff --git a/generators/base-simple-application/__snapshots__/application.spec.ts.snap b/generators/base-simple-application/__snapshots__/application.spec.ts.snap index 98f84548ed77..e0704ca7b35d 100644 --- a/generators/base-simple-application/__snapshots__/application.spec.ts.snap +++ b/generators/base-simple-application/__snapshots__/application.spec.ts.snap @@ -3,7 +3,7 @@ exports[`application mutation test expects mutateApplication to match snapshot 1`] = ` { "customizeTemplatePaths": [], - "documentationArchiveUrl": "https://www.jhipster.tech/documentation-archive/vjhipsterVersion", + "documentationArchiveUrl": "https://www.jhipster.tech/", "hipsterBugTrackerLink": "https://github.com/jhipster/generator-jhipster/issues?state=open", "hipsterBugTrackerProductName": "JHipster", "hipsterChatLink": "https://gitter.im/jhipster/generator-jhipster", diff --git a/generators/base-simple-application/application.ts b/generators/base-simple-application/application.ts index 8f86f084564c..6f7bdfcd3a2d 100644 --- a/generators/base-simple-application/application.ts +++ b/generators/base-simple-application/application.ts @@ -76,8 +76,7 @@ export const mutateApplication = { hipsterChatLink: 'https://gitter.im/jhipster/generator-jhipster', projectDescription: ({ projectDescription, humanizedBaseName }) => projectDescription ?? `Description for ${humanizedBaseName}`, - documentationArchiveUrl: ({ jhipsterVersion, hipsterDocumentationLink }) => - `${hipsterDocumentationLink}documentation-archive/v${jhipsterVersion}`, + documentationArchiveUrl: ({ hipsterDocumentationLink }) => `${hipsterDocumentationLink}`, jhipsterPackageJson: packageJson, } as const satisfies MutateDataPropertiesWithRequiredProperties< diff --git a/generators/ci-cd/__snapshots__/generator.spec.ts.snap b/generators/ci-cd/__snapshots__/generator.spec.ts.snap index 5867046c9890..4d83e4e2dd1e 100644 --- a/generators/ci-cd/__snapshots__/generator.spec.ts.snap +++ b/generators/ci-cd/__snapshots__/generator.spec.ts.snap @@ -139,7 +139,7 @@ exports[`generator - ci-cd cli with multiples values should match context snapsh "dockerContainers": Any, "dockerImage": undefined, "dockerServicesDir": "src/main/docker/", - "documentationArchiveUrl": "https://www.jhipster.tech/documentation-archive/vJHIPSTER_VERSION", + "documentationArchiveUrl": "https://www.jhipster.tech/", "domains": [ "com.mycompany.myapp", ], diff --git a/generators/client/generators/bootstrap/__snapshots__/generator.spec.ts.snap b/generators/client/generators/bootstrap/__snapshots__/generator.spec.ts.snap index 3fa9fc0d1629..a7498086de0c 100644 --- a/generators/client/generators/bootstrap/__snapshots__/generator.spec.ts.snap +++ b/generators/client/generators/bootstrap/__snapshots__/generator.spec.ts.snap @@ -117,7 +117,7 @@ exports[`generator - client:bootstrap bootstrapping default config should prepar "devServerPortProxy": 9000, "dockerContainers": Any, "dockerServicesDir": "src/main/docker/", - "documentationArchiveUrl": "https://www.jhipster.tech/documentation-archive/vJHIPSTER_VERSION", + "documentationArchiveUrl": "https://www.jhipster.tech/", "dtoSuffix": "DTO", "dynamic": undefined, "embeddableLaunchScript": undefined, diff --git a/generators/common/__snapshots__/generator.spec.ts.snap b/generators/common/__snapshots__/generator.spec.ts.snap index 6f4eef9e661a..34c55f7c16a1 100644 --- a/generators/common/__snapshots__/generator.spec.ts.snap +++ b/generators/common/__snapshots__/generator.spec.ts.snap @@ -123,7 +123,7 @@ plugins: "README.md": { "contents": "# jhipster -This application was generated using JHipster JHIPSTER_VERSION, you can find documentation and help at [https://www.jhipster.tech/documentation-archive/vJHIPSTER_VERSION](https://www.jhipster.tech/documentation-archive/vJHIPSTER_VERSION). +This application was generated using JHipster JHIPSTER_VERSION, you can find documentation and help at [https://www.jhipster.tech/releases/](https://www.jhipster.tech/releases/). ## Project Structure @@ -141,13 +141,13 @@ This application was generated using JHipster JHIPSTER_VERSION, you can find doc [JHipster Homepage and latest documentation]: https://www.jhipster.tech/ -[JHipster JHIPSTER_VERSION archive]: https://www.jhipster.tech/documentation-archive/vJHIPSTER_VERSION -[Using JHipster in development]: https://www.jhipster.tech/documentation-archive/vJHIPSTER_VERSION/development/ -[Using Docker and Docker-Compose]: https://www.jhipster.tech/documentation-archive/vJHIPSTER_VERSION/docker-compose -[Using JHipster in production]: https://www.jhipster.tech/documentation-archive/vJHIPSTER_VERSION/production/ -[Running tests page]: https://www.jhipster.tech/documentation-archive/vJHIPSTER_VERSION/running-tests/ -[Code quality page]: https://www.jhipster.tech/documentation-archive/vJHIPSTER_VERSION/code-quality/ -[Setting up Continuous Integration]: https://www.jhipster.tech/documentation-archive/vJHIPSTER_VERSION/setting-up-ci/ +[JHipster releases]: https://www.jhipster.tech/releases/ +[Using JHipster in development]: https://www.jhipster.tech/development/ +[Using Docker and Docker-Compose]: https://www.jhipster.tech/docker-compose +[Using JHipster in production]: https://www.jhipster.tech/production/ +[Running tests page]: https://www.jhipster.tech/running-tests/ +[Code quality page]: https://www.jhipster.tech/code-quality/ +[Setting up Continuous Integration]: https://www.jhipster.tech/setting-up-ci/ [Node.js]: https://nodejs.org/ [NPM]: https://www.npmjs.com/ diff --git a/generators/common/generators/bootstrap/__snapshots__/generator.spec.ts.snap b/generators/common/generators/bootstrap/__snapshots__/generator.spec.ts.snap index 9fed5fc90c8c..52f3c1618b86 100644 --- a/generators/common/generators/bootstrap/__snapshots__/generator.spec.ts.snap +++ b/generators/common/generators/bootstrap/__snapshots__/generator.spec.ts.snap @@ -109,7 +109,7 @@ exports[`generator - common:bootstrap bootstrapping default config should prepar "devServerPortProxy": 9000, "dockerContainers": Any, "dockerServicesDir": "src/main/docker/", - "documentationArchiveUrl": "https://www.jhipster.tech/documentation-archive/vJHIPSTER_VERSION", + "documentationArchiveUrl": "https://www.jhipster.tech/", "dtoSuffix": "DTO", "dynamic": undefined, "embeddableLaunchScript": undefined, diff --git a/generators/common/templates/README.md.jhi.ejs b/generators/common/templates/README.md.jhi.ejs index 338919c3cf44..7dc773795b3c 100644 --- a/generators/common/templates/README.md.jhi.ejs +++ b/generators/common/templates/README.md.jhi.ejs @@ -34,7 +34,7 @@ _&> # <%= baseName %> -This application was generated using JHipster <%= jhipsterVersion %>, you can find documentation and help at [<%= documentationArchiveUrl %>](<%= documentationArchiveUrl %>). +This application was generated using JHipster <%= jhipsterVersion %>, you can find documentation and help at [<%= documentationArchiveUrl %>releases/](<%= documentationArchiveUrl %>releases/). <&- fragments.introSection() &> ## Project Structure @@ -57,22 +57,22 @@ This application was generated using JHipster <%= jhipsterVersion %>, you can fi <&- fragments.othersSection() &> <& } &> [JHipster Homepage and latest documentation]: <%= hipsterDocumentationLink %> -[JHipster <%= jhipsterVersion %> archive]: <%= documentationArchiveUrl %> +[JHipster releases]: <%= documentationArchiveUrl %>releases/ <%_ if (applicationTypeGateway || applicationTypeMicroservice) { _%> -[Doing microservices with JHipster]: <%= documentationArchiveUrl %>/microservices-architecture/ +[Doing microservices with JHipster]: <%= documentationArchiveUrl %>microservices-architecture/ <%_ } _%> -[Using JHipster in development]: <%= documentationArchiveUrl %>/development/ +[Using JHipster in development]: <%= documentationArchiveUrl %>development/ <%_ if (serviceDiscoveryEureka) { _%> -[Service Discovery and Configuration with the JHipster-Registry]: <%= documentationArchiveUrl %>/microservices-architecture/#jhipster-registry +[Service Discovery and Configuration with the JHipster-Registry]: <%= documentationArchiveUrl %>microservices-architecture/#jhipster-registry <%_ } _%> <%_ if (serviceDiscoveryConsul) { _%> -[Service Discovery and Configuration with Consul]: <%= documentationArchiveUrl %>/microservices-architecture/#consul +[Service Discovery and Configuration with Consul]: <%= documentationArchiveUrl %>microservices-architecture/#consul <%_ } _%> -[Using Docker and Docker-Compose]: <%= documentationArchiveUrl %>/docker-compose -[Using JHipster in production]: <%= documentationArchiveUrl %>/production/ -[Running tests page]: <%= documentationArchiveUrl %>/running-tests/ -[Code quality page]: <%= documentationArchiveUrl %>/code-quality/ -[Setting up Continuous Integration]: <%= documentationArchiveUrl %>/setting-up-ci/ +[Using Docker and Docker-Compose]: <%= documentationArchiveUrl %>docker-compose +[Using JHipster in production]: <%= documentationArchiveUrl %>production/ +[Running tests page]: <%= documentationArchiveUrl %>running-tests/ +[Code quality page]: <%= documentationArchiveUrl %>code-quality/ +[Setting up Continuous Integration]: <%= documentationArchiveUrl %>setting-up-ci/ [Node.js]: https://nodejs.org/ [NPM]: https://www.npmjs.com/ diff --git a/generators/java/generators/bootstrap/__snapshots__/generator.spec.ts.snap b/generators/java/generators/bootstrap/__snapshots__/generator.spec.ts.snap index e3af7ac6551a..d1f4949fabb3 100644 --- a/generators/java/generators/bootstrap/__snapshots__/generator.spec.ts.snap +++ b/generators/java/generators/bootstrap/__snapshots__/generator.spec.ts.snap @@ -112,7 +112,7 @@ exports[`generator - java:bootstrap bootstrapping default config should prepare "devServerPortProxy": 9000, "dockerContainers": Any, "dockerServicesDir": "src/main/docker/", - "documentationArchiveUrl": "https://www.jhipster.tech/documentation-archive/vJHIPSTER_VERSION", + "documentationArchiveUrl": "https://www.jhipster.tech/", "domains": Any, "dtoSuffix": "DTO", "dynamic": undefined, diff --git a/generators/javascript-simple-application/generators/bootstrap/__snapshots__/generator.spec.ts.snap b/generators/javascript-simple-application/generators/bootstrap/__snapshots__/generator.spec.ts.snap index 4a5b7629ed90..14a5adc00266 100644 --- a/generators/javascript-simple-application/generators/bootstrap/__snapshots__/generator.spec.ts.snap +++ b/generators/javascript-simple-application/generators/bootstrap/__snapshots__/generator.spec.ts.snap @@ -12,7 +12,7 @@ exports[`generator - javascript-simple-application:bootstrap bootstrapping defau "creationTimestamp": 1577836800000, "customizeTemplatePaths": Any, "dasherizedBaseName": "jhipster", - "documentationArchiveUrl": "https://www.jhipster.tech/documentation-archive/vJHIPSTER_VERSION", + "documentationArchiveUrl": "https://www.jhipster.tech/", "eslintConfigFile": "eslint.config.mjs", "hipster": "jhipster_family_member_3", "hipsterBugTrackerLink": "https://github.com/jhipster/generator-jhipster/issues?state=open", diff --git a/generators/react/generators/bootstrap/__snapshots__/generator.spec.ts.snap b/generators/react/generators/bootstrap/__snapshots__/generator.spec.ts.snap index 4d9f1571fc03..1571f35051a2 100644 --- a/generators/react/generators/bootstrap/__snapshots__/generator.spec.ts.snap +++ b/generators/react/generators/bootstrap/__snapshots__/generator.spec.ts.snap @@ -117,7 +117,7 @@ exports[`generator - react:bootstrap bootstrapping default config should prepare "devServerPortProxy": 9000, "dockerContainers": Any, "dockerServicesDir": "src/main/docker/", - "documentationArchiveUrl": "https://www.jhipster.tech/documentation-archive/vJHIPSTER_VERSION", + "documentationArchiveUrl": "https://www.jhipster.tech/", "dtoSuffix": "DTO", "dynamic": undefined, "embeddableLaunchScript": undefined, diff --git a/generators/server/generators/bootstrap/__snapshots__/generator.spec.ts.snap b/generators/server/generators/bootstrap/__snapshots__/generator.spec.ts.snap index a932f85c3139..c185205dee0b 100644 --- a/generators/server/generators/bootstrap/__snapshots__/generator.spec.ts.snap +++ b/generators/server/generators/bootstrap/__snapshots__/generator.spec.ts.snap @@ -112,7 +112,7 @@ exports[`generator - server:bootstrap bootstrapping default config should prepar "devServerPortProxy": 9000, "dockerContainers": Any, "dockerServicesDir": "src/main/docker/", - "documentationArchiveUrl": "https://www.jhipster.tech/documentation-archive/vJHIPSTER_VERSION", + "documentationArchiveUrl": "https://www.jhipster.tech/", "dtoSuffix": "DTO", "dynamic": undefined, "embeddableLaunchScript": undefined, diff --git a/generators/spring-boot/generators/bootstrap/__snapshots__/generator.spec.ts.snap b/generators/spring-boot/generators/bootstrap/__snapshots__/generator.spec.ts.snap index 8721756d41b5..420fe1cf2c70 100644 --- a/generators/spring-boot/generators/bootstrap/__snapshots__/generator.spec.ts.snap +++ b/generators/spring-boot/generators/bootstrap/__snapshots__/generator.spec.ts.snap @@ -112,7 +112,7 @@ exports[`generator - spring-boot:bootstrap bootstrapping default config should p "devServerPortProxy": 9000, "dockerContainers": Any, "dockerServicesDir": "src/main/docker/", - "documentationArchiveUrl": "https://www.jhipster.tech/documentation-archive/vJHIPSTER_VERSION", + "documentationArchiveUrl": "https://www.jhipster.tech/", "domains": Any, "dtoSuffix": "DTO", "dynamic": undefined, diff --git a/generators/vue/generators/bootstrap/__snapshots__/generator.spec.ts.snap b/generators/vue/generators/bootstrap/__snapshots__/generator.spec.ts.snap index 92ade9380db1..68c8c72958ed 100644 --- a/generators/vue/generators/bootstrap/__snapshots__/generator.spec.ts.snap +++ b/generators/vue/generators/bootstrap/__snapshots__/generator.spec.ts.snap @@ -117,7 +117,7 @@ exports[`generator - vue:bootstrap bootstrapping default config should prepare a "devServerPortProxy": 9000, "dockerContainers": Any, "dockerServicesDir": "src/main/docker/", - "documentationArchiveUrl": "https://www.jhipster.tech/documentation-archive/vJHIPSTER_VERSION", + "documentationArchiveUrl": "https://www.jhipster.tech/", "dtoSuffix": "DTO", "dynamic": undefined, "embeddableLaunchScript": undefined,