Skip to content

Commit

Permalink
Improve header in README.md based on name and description
Browse files Browse the repository at this point in the history
And also allows to not include the default content with a particular
extension.

(cherry picked from commit b44cc34)
  • Loading branch information
gsmet committed Dec 20, 2022
1 parent 28598d0 commit 82607ee
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
# {project.artifact-id} Project
{#if readme.include-default-content}
{#if project.name}
# {project.name}
{#else}
# {project.artifact-id}
{/if}
{#if project.description}

> {project.description}
{/if}

This project uses Quarkus, the Supersonic Subatomic Java Framework.

Expand Down Expand Up @@ -60,3 +69,4 @@ If you want to learn more about building native executables, please consult {bui

## Provided Code
{/if}
{/if}
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,7 @@ language:
artifact-id: quarkus-project
version: 1.0.0-SNAPSHOT
package-name: org.acme
readme:
include-default-content: true
dependencies:
- io.quarkus:quarkus-arc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# test-codestart Project
# test-codestart

This project uses Quarkus, the Supersonic Subatomic Java Framework.

Expand Down

0 comments on commit 82607ee

Please sign in to comment.