Skip to content

Commit

Permalink
Merge pull request #2066 from OctopusDeploy/sf/frontmatter-cms-support
Browse files Browse the repository at this point in the history
Frontmatter CMS Support
  • Loading branch information
steve-fenton-octopus authored Nov 2, 2023
2 parents 991615d + 1f117d5 commit b304e2f
Show file tree
Hide file tree
Showing 6 changed files with 131 additions and 0 deletions.
1 change: 1 addition & 0 deletions .frontmatter/database/mediaDb.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"users":{"steve":{"repos":{"docs":{"public":{"docs":{"overview.png":{"caption":"","alt":"Octopus works with any tool chain, any application, and any environment."}}}}}}}}
1 change: 1 addition & 0 deletions .frontmatter/database/pinnedItemsDb.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions .frontmatter/database/taxonomyDb.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@
"files.associations": {
"*.mdx": "markdown"
},
"[markdown]": {
},
}
1 change: 1 addition & 0 deletions dictionary-octopus.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apikey
astro
cutover
datetime
deallocate
deallocated
DONTVALIDATEPATH
Expand Down
125 changes: 125 additions & 0 deletions frontmatter.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
{
"$schema": "https://frontmatter.codes/frontmatter.schema.json",
"frontMatter.framework.id": "astro",
"frontMatter.preview.host": "http://localhost:3000",
"frontMatter.content.publicFolder": "public/docs",
"frontMatter.content.supportedFileTypes": [
"md",
"mdx"
],
"frontMatter.content.pageFolders": [
{
"title": "docs",
"path": "[[workspace]]"
}
],
"frontMatter.taxonomy.contentTypes": [
{
"name": "default",
"pageBundle": false,
"previewPath": "",
"filePrefix": null,
"clearEmpty": true,
"fields": [
{
"title": "layout",
"name": "layout",
"type": "string"
},
{
"title": "title",
"name": "title",
"type": "string"
},
{
"title": "subtitle",
"name": "subtitle",
"type": "string"
},
{
"title": "description",
"name": "description",
"type": "string"
},
{
"title": "pubDate",
"name": "pubDate",
"type": "datetime"
},
{
"title": "modDate",
"name": "modDate",
"type": "datetime"
},
{
"title": "navTitle",
"name": "navTitle",
"type": "string"
},
{
"title": "navSection",
"name": "navSection",
"type": "string"
},
{
"title": "navOrder",
"name": "navOrder",
"type": "number"
}
]
}
],
"frontMatter.framework.startCommand": "pnpm dev",
"frontMatter.snippets.wrapper.enabled": false,
"frontMatter.content.snippets": {
"Image figure (above the fold)": {
"description": "Creates an image within a figure",
"body": [
":::figure",
"<img src=\"&mediaUrl\" alt=\"[[alt]]\" height=\"[[mediaHeight]]\" width=\"[[mediaWidth]]\" />",
":::"
],
"isMediaSnippet": true
},
"Image figure (below the fold)": {
"description": "Creates an image within a figure",
"body": [
":::figure",
"<img src=\"&mediaUrl\" alt=\"[[alt]]\" height=\"[[mediaHeight]]\" width=\"[[mediaWidth]]\" loading=\"lazy\" />",
":::"
],
"isMediaSnippet": true
},
"Information box": {
"description": "Inserts a box for hints, errors, or warnings.",
"body": [
":::div{.[[type]]}",
"[[message]]",
":::"
],
"fields": [
{
"name": "type",
"title": "type",
"type": "choice",
"choices": [
"hint",
"info",
"success",
"warning",
"problem"
],
"single": true,
"default": ""
},
{
"name": "message",
"title": "message",
"type": "string",
"single": true,
"default": ""
}
]
}
}
}

0 comments on commit b304e2f

Please sign in to comment.