Blog.
  • TypeScript 100%
Find a file
2022-03-28 10:05:06 +01:00
.codedoc Bump minimist from 1.2.5 to 1.2.6 in /.codedoc 2022-03-26 21:50:20 +00:00
.github/workflows Initial commit 2020-06-13 12:57:05 +01:00
img Initial commit 2020-06-13 12:57:05 +01:00
posts Initial commit 2020-06-13 12:57:05 +01:00
.gitignore Initial commit 2020-06-13 12:57:05 +01:00
favicon.ico Initial commit 2020-06-13 12:57:05 +01:00
LICENSE Initial commit 2020-06-13 12:57:05 +01:00
README.md Initial commit 2020-06-13 12:57:05 +01:00

coding.blog boilerplate

Starter project for coding.blog blogs.

Prerequisites

You need NPM, git, and CODEDOC cli.

Local Setup

  1. Fork this repo
  2. Clone your fork
  3. Go to the cloned folder and run this:
codedoc install
codedoc serve

By default, your blog will be served on localhost:3000/coding-blog-boilerplate. Checkout CODEDOC documentation to learn how to change that (or generally work with CODEDOC).

Publishing

To coding.blog

You need to have an account with a domain (i.e. <your>.coding.blog) setup. You can request one over here.

If you have an account with a domain, simply head to your account page and connect your domain with your Git repo, i.e. https://github.com/<your-username>/<your-coding-blog>.git. You can then either publish your blog directly from that interface, or use the provided webhook to automatically publish for example when you push to master branch.

NOTE that always your master branch will be published.

To GitHub Pages

This boilerplate comes with a preset workflow for publishing to GitHub Pages. Push something so that your gh-pages branch is created, enable GitHub Pages and set it to use gh-pages branch, and push another time for GitHub to pick up your blog. Note that the contents of gh-pages will be automatically generated via the preset workflow.