Code Monkey home page Code Monkey logo

blog's Introduction

OSv/blog

This project holds the source for blog.osv.io

blog.osv.io is base on Octopress and deployed on Github Project pages

This means:

  • blog source are on branch source
  • blog generated HTML/CSS are under branch gh-pages

Checking out the blog for the first time

Check out the source branch and update dependencies.

git checkout source
bundle install

You only need to do this once.

Update the blog

  1. git clone https://github.com/osv-io/blog.git
  2. cd blog
  3. git checkout source
  4. rake setup_github_pages Repository url: https://github.com/osv-io/blog.git
  5. do the changes, additions (see below)
  6. rake generate # Generates posts and pages into the public directory
  7. rake preview # Watches, and mounts a webserver at http://localhost:4000
  8. rake deploy # upload the generated site to branch gh-pages

In a case you have "Updates were rejected because the tip of your current branch is behind" on the deploy" error on deploy, you can bypass it with the following steps before you generate the site (step 6 above):

  1. cd _deploy
  2. git pull origin gh-pages
  3. cd ..

Update the blog source

The above process only update the gh-pages branch. Once publishing done, remember to commit your source update to the source branch!

With out this, you changes will be lost when someone else update the blog.

Suggest updates without publishing

  1. Fork the blog
  2. Execute steps 1-7 above
  3. Do a Pull Request to the source branch

How to add a new post / update a post?

http://octopress.org/docs/blogging/

blog's People

Contributors

dmarti avatar tzach avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.