Skip to content

Commit 2427277

Browse files
committed
Add in vscode
1 parent 3a73dfc commit 2427277

File tree

16 files changed

+858
-455
lines changed

16 files changed

+858
-455
lines changed

.frontmatter/database/mediaDb.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

content/docs/dashboard/content-view.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Content view
33
slug: dashboard/content-view
44
description: null
55
date: 2022-11-28T14:55:04.221Z
6-
lastmod: 2024-02-22T12:24:21.051Z
6+
lastmod: 2024-06-20T08:31:20.651Z
77
weight: 300.1
88
---
99

@@ -12,6 +12,14 @@ weight: 300.1
1212
The contents view is the default view when you open the dashboard. It will show you all the pages in
1313
your project, and allow you to filter and sort them.
1414

15+
<!-- FM:Snippet:Start data:{"id":"Open in VS Code","fields":[{"name":"title","value":"Open dashboard in VS Code"},{"name":"command","value":"frontMatter.dashboard"},{"name":"title","value":"Open dashboard in VS Code"}]} -->
16+
<a class="open_vscode" title="Open content dashboard in VS Code" href='vscode://eliostruyf.execcommand?command=frontMatter.dashboard'>
17+
Open content dashboard in VS Code
18+
</a>
19+
<!-- FM:Snippet:End -->
20+
21+
![Dashboard - Contents view][07]
22+
1523
## Card configuration
1624

1725
### Card field configuration
@@ -169,3 +177,4 @@ of the content view. This will allow you to quickly access.
169177
[03]: /docs/content-creation/fields#draft
170178
[04]: /releases/v5.3.0/draft-status.png
171179
[06]: /docs/experimental/ui-extensibility#registering-a-custom-ui-extension
180+
[07]: /releases/v7.1.0/dashboard-7.1.0.png

content/docs/dashboard/datafiles-view.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ title: Data files view
33
slug: dashboard/datafiles-view
44
description: null
55
date: 2022-11-28T14:55:04.221Z
6-
lastmod: 2024-02-22T12:23:03.653Z
7-
weight: 300.3
6+
lastmod: 2024-06-20T08:29:08.737Z
7+
weight: 300.4
88
---
99

1010
# Data files view
@@ -13,10 +13,21 @@ Data files/folders are pieces of content that do not belong to any markdown cont
1313
their own. Most of the time, these data files are used to store additional information about your
1414
project/blog/website that will be used to render the content.
1515

16-
For example: navigation, social media links, contacts, etc.
16+
For example:
17+
18+
- navigation
19+
- social media links
20+
- contacts
21+
- etc.
1722

1823
The data files dashboard allows you to quickly manage your data files.
1924

25+
<!-- FM:Snippet:Start data:{"id":"Open in VS Code","fields":[{"name":"title","value":"Open data dashboard in VS Code"},{"name":"command","value":"frontMatter.dashboard.data"},{"name":"title","value":"Open data dashboard in VS Code"}]} -->
26+
<a class="open_vscode" title="Open data dashboard in VS Code" href='vscode://eliostruyf.execcommand?command=frontMatter.dashboard.data'>
27+
Open data dashboard in VS Code
28+
</a>
29+
<!-- FM:Snippet:End -->
30+
2031
![Data files dashboard][01]
2132

2233
## Configuration

content/docs/dashboard/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Dashboard
33
slug: dashboard
44
description: null
55
date: 2021-08-30T16:13:00.546Z
6-
lastmod: 2022-09-22T06:31:23.818Z
6+
lastmod: 2024-06-20T08:21:12.684Z
77
weight: 300
88
---
99

@@ -30,7 +30,7 @@ can find your pages. Be sure to follow our [getting started][03] guide.
3030
> `publicFolder` where the extension can find them. For instance, in Hugo, this is the static
3131
> folder. You can configure this by updating the `frontMatter.content.publicFolder` setting.
3232
33-
## Commands
33+
## Types of dashboards
3434

3535
There are the following commands to open the dashboards:
3636

content/docs/dashboard/media-view.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Media view
33
slug: dashboard/media-view
44
description: null
55
date: 2022-11-28T14:55:04.221Z
6-
lastmod: 2024-02-22T12:23:07.490Z
6+
lastmod: 2024-06-20T08:23:13.876Z
77
weight: 300.2
88
---
99

@@ -13,6 +13,12 @@ The media view has been created to make it easier to look at all media files ava
1313
articles. When you click on an image, it will show a lightbox, so that it is easier to glance at
1414
small images.
1515

16+
<!-- FM:Snippet:Start data:{"id":"Open in VS Code","fields":[{"name":"title","value":"Open media dashboard in VS Code"},{"name":"command","value":"frontMatter.dashboard.media"},{"name":"title","value":"Open media dashboard in VS Code"}]} -->
17+
<a class="open_vscode" title="Open media dashboard in VS Code" href='vscode://eliostruyf.execcommand?command=frontMatter.dashboard.media'>
18+
Open media dashboard in VS Code
19+
</a>
20+
<!-- FM:Snippet:End -->
21+
1622
![Media dashboard][01]
1723

1824
## Define the media folder
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
title: Snippets view
3+
slug: dashboard/snippets-view
4+
description: null
5+
date: 2024-06-20T08:28:32.861Z
6+
lastmod: 2024-06-20T08:47:16.136Z
7+
weight: 300.3
8+
---
9+
10+
# Snippets view
11+
12+
On the snippets view you can manage all your snippets. Snippets are small pieces of code that you can re-use in your markdown files.
13+
14+
<!-- FM:Snippet:Start data:{"id":"Open in VS Code","fields":[{"name":"title","value":"Open snippets dashboard in VS Code"},{"name":"command","value":"frontMatter.dashboard.snippets"},{"name":"title","value":"Open snippets dashboard in VS Code"}]} -->
15+
<a class="open_vscode" title="Open snippets dashboard in VS Code" href='vscode://eliostruyf.execcommand?command=frontMatter.dashboard.snippets'>
16+
Open snippets dashboard in VS Code
17+
</a>
18+
<!-- FM:Snippet:End -->
19+
20+
![Snippets view](/releases/v10.2.0/snippets-view.png)
21+
22+
You can read more about snippets in the [snippets documentation](/docs/snippets).

content/docs/dashboard/taxonomy-view.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ title: Taxonomy view
33
slug: dashboard/taxonomy-view
44
description: null
55
date: 2022-11-28T14:55:04.221Z
6-
lastmod: 2024-02-22T12:23:10.461Z
7-
weight: 300.4
6+
lastmod: 2024-06-20T08:29:12.633Z
7+
weight: 300.5
88
---
99

1010
# Taxonomies view
@@ -15,6 +15,12 @@ taxonomy.
1515
On the taxonomies view, you can create, edit, delete, and move taxonomy terms from one type to
1616
another.
1717

18+
<!-- FM:Snippet:Start data:{"id":"Open in VS Code","fields":[{"name":"title","value":"Open taxonomy dashboard in VS Code"},{"name":"command","value":"frontMatter.dashboard.taxonomy"},{"name":"title","value":"Open taxonomy dashboard in VS Code"}]} -->
19+
<a class="open_vscode" title="Open taxonomy dashboard in VS Code" href='vscode://eliostruyf.execcommand?command=frontMatter.dashboard.taxonomy'>
20+
Open taxonomy dashboard in VS Code
21+
</a>
22+
<!-- FM:Snippet:End -->
23+
1824
![Taxonomies view][01]
1925

2026
## Actions

content/docs/getting-started.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Getting started
33
slug: getting-started
44
description: null
55
date: 2021-08-30T16:13:00.546Z
6-
lastmod: 2023-11-12T12:57:55.076Z
6+
lastmod: 2024-06-20T08:19:27.260Z
77
weight: 100
88
---
99

@@ -53,11 +53,14 @@ reloaded.
5353

5454
![Welcome screen to configure your website][04]
5555

56-
> **Important**: Front Matter supports light and dark mode. It will be automatically detected based
57-
> on the theme you are using.
58-
5956
> **Info**: The welcome screen will also be shown when Front Matter is not yet fully configured.
6057
58+
<!-- FM:Snippet:Start data:{"id":"Open in VS Code","fields":[{"name":"title","value":"Open dashboard in VS Code"},{"name":"command","value":"frontMatter.dashboard"},{"name":"title","value":"Open dashboard in VS Code"}]} -->
59+
<a class="open_vscode" title="Open dashboard in VS Code" href='vscode://eliostruyf.execcommand?command=frontMatter.dashboard'>
60+
Open dashboard in VS Code
61+
</a>
62+
<!-- FM:Snippet:End -->
63+
6164
## Required configuration
6265

6366
On the welcome screen, there are two tasks to complete before you can take full advantage of Front Matter.

content/docs/snippets/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Snippets
33
slug: snippets
44
description: null
55
date: 2022-03-04T14:40:10.952Z
6-
lastmod: 2023-11-02T15:00:05.728Z
6+
lastmod: 2024-06-20T08:45:46.463Z
77
weight: 850
88
---
99

@@ -243,7 +243,7 @@ shown when you insert the snippet into your content.
243243
<!-- markdownlint-enable MD013 -->
244244

245245
<!-- Link References -->
246-
[01]: /releases/v7.0.0/snippet-dashboard.png
246+
[01]: /releases/v10.2.0/snippets-view.png
247247
[02]: /docs/content-creation/content-types#define-your-own-type
248248
[03]: /docs/content-creation/placeholders
249249
[04]: /releases/v7.0.0/insert-snippet.png

frontmatter.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,37 @@
231231
"default": "FM_SELECTED_TEXT"
232232
}
233233
]
234+
},
235+
"Open in VS Code": {
236+
"description": "Trigger a VS Code command",
237+
"body": [
238+
"<a class=\"open_vscode\" title=\"[[&title]]\" href='vscode://eliostruyf.execcommand?command=[[command]]'>",
239+
" [[&title]]",
240+
"</a>"
241+
],
242+
"fields": [
243+
{
244+
"name": "title",
245+
"title": "title",
246+
"type": "string",
247+
"single": true,
248+
"default": ""
249+
},
250+
{
251+
"name": "command",
252+
"title": "command",
253+
"type": "string",
254+
"single": true,
255+
"default": ""
256+
},
257+
{
258+
"name": "title",
259+
"title": "title",
260+
"type": "string",
261+
"single": true,
262+
"default": ""
263+
}
264+
]
234265
}
235266
},
236267
"frontMatter.custom.scripts": [

0 commit comments

Comments
 (0)