Skip to content

Commit 95e882a

Browse files
committed
feat: mkdocs template updated
1 parent da0f786 commit 95e882a

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

docs/assets/data/intellij-idea-live-templates/custom-intellij-idea-live-templates.xml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
<templateSet group="Ram-custom-templates">
2-
<template name="mkdocs-meta-data" value="---&#10;author: $USER$&#10;createdAt: $DATE$&#10;updatedAt: &#10;categories:&#10; - $END$&#10;tags:&#10; - todo&#10;---" description="insert mkdocs meta data into page" toReformat="false" toShortenFQNames="true">
2+
<template name="mkdocs-meta-data" value="---&#10;title: $TITLE$&#10;description: $DESCRIPTION$&#10;author: $USER$&#10;date:&#10; created: $DATE$&#10; updated: &#10;categories:&#10; - $END$&#10;tags:&#10; - todo&#10;links:&#10; - &quot;[Author] Ram&quot;: $AUTHOR_PROFILE_URL$&#10;---" description="insert mkdocs meta data into page" toReformat="false" toShortenFQNames="true">
3+
<variable name="TITLE" expression="" defaultValue="" alwaysStopAt="true" />
4+
<variable name="DESCRIPTION" expression="" defaultValue="" alwaysStopAt="true" />
35
<variable name="USER" expression="" defaultValue="&quot;Ramachandran Nellaiyappan&quot;" alwaysStopAt="true" />
4-
<variable name="DATE" expression="date(&quot;d.MM.YYYY&quot;)" defaultValue="" alwaysStopAt="true" />
6+
<variable name="DATE" expression="" defaultValue="" alwaysStopAt="true" />
7+
<variable name="AUTHOR_PROFILE_URL" expression="" defaultValue="&quot;https://nramc.github.io/my-profile/&quot;" alwaysStopAt="true" />
58
<context>
69
<option name="ANY_OPENAPI_JSON_FILE" value="false" />
710
<option name="ANY_OPENAPI_YAML_FILE" value="false" />
@@ -36,7 +39,7 @@
3639
</context>
3740
</template>
3841
<template name="today" value="$DATE$" description="dd.mm.yyyy" toReformat="false" toShortenFQNames="true">
39-
<variable name="DATE" expression="date(&quot;d.MM.YYYY&quot;)" defaultValue="" alwaysStopAt="true" />
42+
<variable name="DATE" expression="date(&quot;YYYY-MM-dd&quot;)" defaultValue="" alwaysStopAt="true" />
4043
<context>
4144
<option name="ANY_OPENAPI_JSON_FILE" value="false" />
4245
<option name="ANY_OPENAPI_YAML_FILE" value="false" />
@@ -111,4 +114,10 @@
111114
<option name="JAVA_DECLARATION" value="true" />
112115
</context>
113116
</template>
117+
<template name="applicationRunner" value="@org.springframework.context.annotation.Bean&#10;org.springframework.boot.ApplicationRunner $BEAN_NAME$() {&#10; return args -&gt; {$END$};&#10;}" description="Create springboot ApplicationnRunner bean definition" toReformat="false" toShortenFQNames="true">
118+
<variable name="BEAN_NAME" expression="suggestVariableName()" defaultValue="" alwaysStopAt="true" />
119+
<context>
120+
<option name="JAVA_DECLARATION" value="true" />
121+
</context>
122+
</template>
114123
</templateSet>

docs/blog/articles/intellij-live-templates.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ links:
2020

2121
!!! tip "You can download all below live templates as a file"
2222

23-
[Download File](../../assets/data/intellij-idea-live-templates/custom-intellij-idea-live-templates.xml){ .md-button .md-button--primary }
23+
[Download File](../../assets/data/intellij-idea-live-templates/custom-intellij-idea-live-templates.xml){ .md-button .md-button--primary target="_blank" }
2424

2525
You can place them inside your IntelliJ IDEA in `~/Library/Application Support/JetBrains/<IntelliJIdea version>/templates/`
2626

0 commit comments

Comments
 (0)