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
[EJS](https://github.com/mde/ejs) framework is used to programmatically create content through the help of templating tags (`<% %>`).
133
+
134
+
#### Styling
135
+
136
+
`fonts`and `style` variables are respectively populated with `fonts.css` and `styles.css` files content (or will fallback to those of `classic` template inexistent).
137
+
138
+
These will define the global design of the output.
139
+
140
+
`data-optimizable="true"`tells that a `style` tag can be safely minified and purged by CSS post-processors.
141
+
142
+
#### Partials
143
+
144
+
`partials`variable is populated with `partials/_.json` file content and define which files should be included along with default ordering.
145
+
146
+
The loop iterates over this array to include all defined partials. Each partial should handle whether it should be displayed by itself.
147
+
148
+
### `#metrics-end` tag
149
+
150
+
`#metrics-end`is a special HTML tag which must remain at the bottom of SVG template.
151
+
152
+
It is used to compute height dynamically through a [puppeteer](https://github.com/puppeteer/puppeteer) headless instance. Initial height should remain a high number so it doesn't get cropped accidentally while [puppeteer](https://github.com/puppeteer/puppeteer) compute [element.getBoundingClientRect()](https://developer.mozilla.org/fr/docs/Web/API/Element/getBoundingClientRect).
153
+
154
+
### 💬 Filling `metadata.yml`
155
+
156
+
`metadata.yml`is a file which describes supported account types, output formats, scopes, etc.
[`🧱 core`](/source/plugins/core/README.md) plugin will automatically check user inputs with your defined supported `supports` and `formats` key and throw an error in case of incompatibility.
178
+
179
+
`name`, `description` and `examples` are used to auto-generate documentation in the `README.md` by replacing the following:
180
+
181
+
```markdown
182
+
<ǃ--header-->
183
+
<ǃ--/header-->
184
+
```
185
+
186
+
`extends`is used to define upon which template it should inherits its `template.mjs` when it is not trusted by user.
187
+
188
+
### 💬 Filling `examples.yml`
189
+
190
+
Workflow examples from `examples.yml` are used to auto-generate documentation in the `README.md` by replacing the following:
191
+
192
+
```markdown
193
+
#### ℹ️ Examples workflows
194
+
195
+
<ǃ--examples-->
196
+
<ǃ--/examples-->
79
197
```
80
198
81
199
### 💬 Creating partials
@@ -111,4 +229,4 @@ Here's a quick step-by-step tutorial to create base64 encoded fonts:
111
229
- 4. Convert them into base64 with `woff` format on [transfonter.org](https://transfonter.org)
112
230
- 5. Download archive and extract it
113
231
- 6. Copy content of generated stylesheet to `fonts.css`
0 commit comments