You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-```a6b420c6-9bb2-4060-869c-20c171fc9827.md``` Article file. The file name is the same as the directory name, this time using a random value (UUID).
99
-
-```config.yaml``` Config file. This file is used to set the title of the article, the name of the author, etc.
97
+
-~~```config.yaml``` Config file. This file is used to set the title of the article, the name of the author, etc.~~
100
98
101
99
```yaml:config.yaml
102
100
title: article title
103
101
author: your name
104
102
```
105
103
104
+
**config.yaml is obsolete. Configuration information such as article title and author name has been changed to be included as metadata in the article markdown file.**
105
+
106
106
3. Create article image.
107
107
108
108
The following command will generate ``output.png``.
@@ -136,9 +136,9 @@ Icons can also be placed on the image by providing an icon image. You can also c
136
136
```create article``` command creates a directory with a unique random value (UUID). The following files will also be created and placed in the directory.
137
137
138
138
-```<directory name>.md``` Article file.The content of the article you wish to submit will be written in this file.
139
-
-```config.yaml``` This file contains settings related to the generation of articles and image files.
139
+
-~~```config.yaml``` This file contains settings related to the generation of articles and image files.~~
140
140
141
-
### config.yaml
141
+
### ~~config.yaml~~
142
142
143
143
```yaml
144
144
title: article title
@@ -150,6 +150,26 @@ author: your name
150
150
|title|string|Article Title|
151
151
|author|string|Article Author|
152
152
153
+
### \<directory name>.md
154
+
155
+
The markdown file will have the following metadata The ``title`` and ``author`` fields are used for image output.
156
+
157
+
```yaml:article.md
158
+
---
159
+
title: ""
160
+
tags: []
161
+
date: "2023-09-29"
162
+
author: ""
163
+
---
164
+
```
165
+
166
+
| Field | Type | Description |
167
+
| --- | --- | --- |
168
+
|title|string|Article Title|
169
+
|tags|[]string|tags|
170
+
|date|string|File created day|
171
+
|author|string|Article Author|
172
+
153
173
### ```--time(-t)```
154
174
155
175
This flag allows directories and files to be created with the current time instead of the default UUID. The current time depends on the time zone of the operating system under which the command is executed and is generated in the format ``YYYY-mm-dd``.
@@ -158,7 +178,6 @@ This flag allows directories and files to be created with the current time inste
158
178
% note-cli create article -t
159
179
Create directory. 2023-09-08
160
180
Create file. 2023-09-08.md
161
-
Create file. config.yaml
162
181
```
163
182
164
183
If the directory already exists, it creates the directory by incrementing number in the form ``YYYY-mm-dd-{number}``.
@@ -167,7 +186,6 @@ If the directory already exists, it creates the directory by incrementing number
167
186
% note-cli create article -t
168
187
Create directory. 2023-09-08-2
169
188
Create file. 2023-09-08-2.md
170
-
Create file. config.yaml
171
189
```
172
190
173
191
### ```--name(-n)```
@@ -178,12 +196,31 @@ This flag allows you to create a directory with an arbitrary name. **If the dire
178
196
% note-cli create article -n article-A
179
197
Create directory. article-A
180
198
Create file. article-A.md
181
-
Create file. config.yaml
199
+
```
200
+
201
+
### ```--author(-a)```
202
+
203
+
This flag allows the name of the article author to be passed in advance.
Image like [OGP](https://ogp.me/) can be generated by executing the ```create image``` command.The <a href="#configyaml">config.yaml</a> must exist in the current directory to generate images.If config.yaml does not exist, the command will fail.
221
+
Image like [OGP](https://ogp.me/) can be generated by executing the ```create image``` command.~~The <ahref="#configyaml">config.yaml</a> must exist in the current directory to generate images.If config.yaml does not exist, the command will fail.~~
222
+
223
+
**config.yaml is obsolete. Instead, the metadata for the markdown file must be present. If the metadata cannot be read, config.yaml is searched for compatibility, and if it is still missing, the command will fail.**
0 commit comments