Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dw/add vs code md plugin #240

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .frontmatter/content/mediaDb.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
24 changes: 24 additions & 0 deletions .frontmatter/templates/post.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
date: 2020-01-02
title: Draft post example
slug: my-custom-slug
description: This is an example post!
seo:
title: seo title
description: seo description
authors:
- Vendia
categories:
- company
- announcements
relatedPosts:
- 2020-07-01-meet-vendias-founders
- 2020-11-05-track-and-trace
tags:
- funding
updatedBy: David Wells
updatedAt: 2022-11-10T21:10:56.060Z
draft: true
---

Post content
49 changes: 48 additions & 1 deletion .github/workflows/update-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,51 @@ jobs:
# https://github.com/stefanzweifel/git-auto-commit-action
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
# Get job id for better links https://github.com/marketplace/actions/github-actions-job_id-parser
- id: jobDetails
name: Get Current Job Log URL
uses: Tiryoh/[email protected]
if: ${{ failure() }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
job_name: "update" # input job.<job-id>
# Send error message via https://github.com/marketplace/actions/slack-send
- name: Send custom JSON data to Slack workflow
id: slack
if: ${{ failure() }}
uses: slackapi/[email protected]
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
with:
# For posting a rich message using Block Kit
payload: |
{
"blocks": [
{
"type": "header",
"text": {
"type": "plain_text",
"text": "🚨 github.com/${{ github.repository }} \"${{ github.job }}\" job error with images"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Details: ${{ steps.jobDetails.outputs.html_url }}"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Action Link:\n<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|https://github.com/${{ github.repository }} job '${{ github.job }}' - ${{github.run_id}}>"
}
},
{
"type": "divider"
}
]
}
101 changes: 101 additions & 0 deletions frontmatter.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
{
"$schema": "https://frontmatter.codes/frontmatter.schema.json",
"frontMatter.taxonomy.contentTypes": [
{
"name": "default",
"pageBundle": false,
"previewPath": null,
"fields": [
{
"title": "Title",
"name": "title",
"type": "string"
},
{
"title": "Description",
"name": "description",
"type": "string"
},
{
"title": "Publishing date",
"name": "date",
"type": "datetime",
"default": "{{now}}",
"isPublishDate": true
},
{
"title": "Content preview",
"name": "preview",
"type": "image"
},
{
"title": "Is in draft",
"name": "draft",
"type": "draft"
},
{
"title": "Tags",
"name": "tags",
"type": "tags"
},
{
"title": "Categories",
"name": "categories",
"type": "categories"
}
]
}
],
"frontMatter.framework.id": "next",
"frontMatter.content.publicFolder": "public",
"frontMatter.content.pageFolders": [
{
"path": "[[workspace]]/posts",
"title": "posts"
},
{
"path": "[[workspace]]/releases",
"title": "releases"
},
{
"title": "pages",
"path": "[[workspace]]/pages"
}
],
"frontMatter.taxonomy.tags": [
"ACID Semantics",
"AWS",
"Azure",
"Developer Experience",
"Enhancements",
"GraphQL",
"Improvements",
"New Features",
"Operations",
"Polycloud",
"STAMTI",
"Security",
"Share Tiers and Pricing",
"Share Web",
"Smart Contracts",
"User Experience",
"decentralization",
"developers",
"funding",
"origin"
],
"frontMatter.taxonomy.categories": [
"announcements",
"architecture",
"blockchain",
"company",
"concepts",
"data-alliance",
"data-modeling",
"graphql",
"podcast",
"product",
"realtime-data-sharing",
"tutorials"
]
}