Skip to content

Commit c8fcbef

Browse files
committed
quarto create extension support
1 parent 92d7b35 commit c8fcbef

File tree

4 files changed

+34
-0
lines changed

4 files changed

+34
-0
lines changed

src/command/create/artifacts/extension.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ const kExtensionTypes: Array<string | ExtensionType> = [
4040
},
4141
{ name: "journal format", value: "journal", openfiles: ["template.qmd"] },
4242
{ name: "custom format", value: "format", openfiles: ["template.qmd"] },
43+
{ name: "metadata", value: "metadata", openfiles: [] },
4344
];
4445

4546
const kExtensionSubtypes: Record<string, string[]> = {
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*.html
2+
*.pdf
3+
*_files/
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# <%= title %> Extension For Quarto
2+
3+
_TODO_: Add a short description of your extension.
4+
5+
## Installing
6+
7+
_TODO_: Replace the `<github-organization>` with your GitHub organization.
8+
9+
```bash
10+
quarto add <github-organization>/<%= filesafename %>
11+
```
12+
13+
This will install the extension under the `_extensions` subdirectory.
14+
If you're using version control, you will want to check in this directory.
15+
16+
## Using
17+
18+
_TODO_: Describe how to use your extension.
19+
20+
## Example
21+
22+
Here is the source code for a minimal example: [example.qmd](example.qmd).
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
title: <%= title %>
2+
author: <%= author %>
3+
version: <%= version %>
4+
quarto-required: ">=<%= quartoversion %>"
5+
contributes:
6+
metadata:
7+
project:
8+
# your per-project metadata goes here

0 commit comments

Comments
 (0)