Deploy to GitHub Pages

If you are looking for a place to publish your blog, GitHub Pages might be the place for you.

Assuming that you have a GitHub account, here are what you need to do to get published:

  1. Head over to GitHub and create a new repository named username.github.io, where username is your username (or organization name) on GitHub.

  2. (optional) If you followed the link, you might as well give a star to ABlog ;)

  3. Set github_pages configuration variable in conf.py file.

  4. Run ablog build in your project folder.

  5. Run ablog deploy. This command will

    1. clone your GitHub pages repository to project folder,

    2. copy all files from build folder (_website) to username.github.io,

    3. add and commit copied files,

    4. add .nojekyll file, since this ain’t no Jekyll

    5. and finally push the changes to publish.

Let us know how this works for you!

Comments

comments powered by Disqus