Inspired by Aaronphy/Blogger.
This VS Code extension lets you create and manage GitHub Issues as blog posts. It uses the GitHub REST API and GraphQL API to handle your Issues, with all content stored in your GitHub repository.
Perhaps you can use it in conjunction with github-issue-toc, which generates the table of contents on the issue page.
- Get the extension from the Marketpalce.
- Prepare your Github Personal Access Token.
- Open the command palette (
Command + Shift + P
on macOS,Ctrl + Shift + P
on Windows/Linux), then typeConfig Github Blogger
to finish the initial setup. - Open the command palette, type
Open Github Blogger
, and start writing your blog.
{
"github-blogger.token": "xxx", // Your GitHub Personal Access Token
"github-blogger.user": "xxx", // Your GitHub Username
"github-blogger.repo": "xxx", // Your Blog Repository Name
"github-blogger.branch": "main" // Your Blog Repository Branch Name
}
- Make sure your blog repository is public, as images use jsDelivr + GitHub for CDN acceleration, incompatible with private repos. jsdelivr #18243
- Issues and images are stored in the archives and images directories. The
github-blogger.branch
specifies the branch, usually the default. Ensure this branch exists, or archiving and image uploads may fail.
The extension uses:
- ant-design for the UI.
- bytemd for markdown parsing.
- octokit.js for GitHub API interaction.