vscode-blogger README
This is an extension that allows you to post and update Blogger articles written in Markdown format.
Features
- Convert Markdown articles to HTML and post them to Blogger.
- You can post either a post or a page.
- You can post new posts or update existing articles.
Requirements
Google account (Blogger account)
Google Cloud Platform
- Use Google Cloud Platform to use the Blogger API. You need to enable the Blogger API on Google Cloud Platform and get the client secret in advance.
Optional
Pandoc
- If you want to use TOC, you need to install pandoc.
Extension Settings
Follow the procedure below to set.
- Set
vscode-blogger.client-secret-path
.
- Set
vscode-blogger.credentials-path
.
- Run
Authorize access to blogger
command.
This extension contributes the following settings:
vscode-blogger.client-secret-path
: Path to save client secret(client_secret.json) for Blogger API.
vscode-blogger.credentials-path
: Path to save credentials(googleapi.json) for Blogger API.
How to use
Follow the steps below to post an article.
- Write articles in markdown or html files (ex: content.md, content.html).
For markdown files, VSCode Blogger Extension convert to HTML with pandoc or marked.js.
- Write meta information in meta.json.
(store meta.json in the same folder as markdown file.)
- Run
Post a blog to blogger
command.
meta.json is described in the following format for each article.
{
"blogId": "0123456789012345678",
"isDraft": true,
"publish": false,
"revert": false,
"isPage": false,
"resource": {
"title": "sample content",
"published": "2021-01-01T00:00:00+09:00"
}
}
Parameter |
Description |
blogId |
Blog Id |
isDraft |
true:Draft false:Publish |
publish |
true:Draft->Published |
revert |
true:Published->Draft |
isPage |
true:Page false:Post |
title |
Page or post title |
published |
Published date and time |
Known Issues
Notting
Release Notes
0.0.1
Initial release.
0.0.2
Clerical error correction.
0.0.3
Bug fix.
0.0.4
Bug fix.
0.0.5
Added sidebar feature to edit articles and properties.
0.0.6
Bilingual(English, Japanese)
0.0.7
New article button and New folder button on CONTENT tree view.
0.0.8
Supports posting HTML files.
0.0.9
Bug fix.
0.0.10
Bug fix.
0.0.11
HTML input When posting, output inside the body element.