Skip to content

Commit

Permalink
add script and task to add a github discussion for all blog posts
Browse files Browse the repository at this point in the history
  • Loading branch information
SjoerdV committed Sep 4, 2023
1 parent 14974d3 commit 5cbdf51
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
1 change: 1 addition & 0 deletions .vscode/scripts/auto_discussion_for_jekyl_blog_post.py
27 changes: 23 additions & 4 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,19 @@
"isDefault": true
},
"isBackground": false,
"problemMatcher": ["$jekyll-error-watch", "$jekyll-warning-watch"]
"problemMatcher": [
"$jekyll-error-watch",
"$jekyll-warning-watch"
]
},
{
"label": "Build",
"type": "shell",
"command": "bundle exec jekyll build",
"problemMatcher": ["$jekyll-error", "$jekyll-warning"],
"problemMatcher": [
"$jekyll-error",
"$jekyll-warning"
],
"group": {
"kind": "build",
"isDefault": true
Expand All @@ -28,7 +34,8 @@
"label": "display_file",
//"command": "${command:workbench.action.files.save}"
"type": "shell",
"command": "echo ${file}"
"command": "echo ${file}",
"problemMatcher": []
},
{
"label": "add_keywords",
Expand All @@ -38,7 +45,7 @@
"cwd": "${workspaceFolder}/.vscode/scripts"
},
"presentation": {
"reveal": "never",
"reveal": "never ",
"focus": true
}
},
Expand All @@ -49,6 +56,18 @@
"display_file",
"add_keywords"
]
},
{
"label": "add_discussions_to_posts",
"type": "shell",
"command": "python3 auto_discussion_for_jekyl_blog_post.py",
"options": {
"cwd": "${workspaceFolder}/.vscode/scripts"
},
"presentation": {
"reveal": "never ",
"focus": true
}
}
]
}

0 comments on commit 5cbdf51

Please sign in to comment.