Giter Club home page Giter Club logo

cfaa's Introduction

What is Octostrap?

Octostrap is Octopress blogging at its finest. And by finest, that means Bootstrap.

Basically, we're just getting started, and we've stuck to getting a runnable Octopress+Bootstrap environment going in under 5 minutes (and that's if you're internet connection is slow).

Bootstrap v2 and v3 Supported

Octostrap includes support for Bootstrap versions 2 and the currently in-development version 3 variant. Simply path your CSS and JS imports with /v2/ and /v3/ to select your version.

Immediate Gratification for the Internet Generation

###Do you want to see what Octostrap looks like?

Still interested? Read on!

Okay, here's the fun part.

[Note: We assume you're starting with an empty repo for your project]

The Impatient Guide to Getting Started

Clone the Octostrap repo:

$ git clone https://github.com/bobwaycott/octostrap.git your_project_dir

Install dependencies

$ cd your_project_dir
$ bundle install

Setup

$ rake setup

Done! Seriously. That is all.

Time for a preview?

$ rake preview

Visit http://localhost:4000/ in your browser. See Bootstrap. Shed tears (of joy).

Let's see more of what rake setup looks like.

Full Example: What does setup look like?

$ rake setup

## Copying StarterPack into ./source ...
mkdir -p source
cp -r .starterpack/. source
mkdir -p source/_posts
mkdir -p public
## StarterPack copied. You can now `rake preview` and see your Octostrap site.

Would you like to proceed with Github repo setup? [y/n] y

Starting Github setup ...
Enter the read/write url for your repository
(For example, '[email protected]:your_username/your_repo.git')
           or 'https://github.com/your_username/your_repo.git')

Repository url: [email protected]:username/repo_name.git

Altering git config to use [email protected]:username/repo_name.git as origin...

Renaming remote origin to octostrap
Added remote [email protected]:username/repo_name.git as origin
Set origin as default remote

I can go ahead and push this to origin if you'd like
NOTE: You should probably only do this with a bare repository and an internet connection

Shall I push to your repo? (y/n) y

Pushing to your repo ...

Counting objects: 460, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (249/249), done.
Writing objects: 100% (460/460), 309.38 KiB | 0 bytes/s, done.
Total 460 (delta 194), reused 453 (delta 191)
To [email protected]:username/repo_name.git
 * [new branch]      master -> master
Branch master set up to track remote branch master from origin.

---
## Takeover complete! ##

Would you like to proceed with Github Pages setup? [y/n] y

Starting Github Pages setup ...

rm -rf public
mkdir -p public/repo_name
## Site's root directory is now '/repo_name' ##
rm -rf _deploy
mkdir _deploy
cd _deploy
Initialized empty Git repository in /path/to/repo_name/_deploy/.git/
[master (root-commit) 1fdca24] Octostrap init
 1 file changed, 1 insertion(+)
 create mode 100644 index.html
cd -

---
## Success! Now you can deploy to http://username.github.io/repo_name with `rake gen_deploy` ##

Github Pages: Setup being super helpful

Okay, so you ran rake setup and told Octostrap to setup Github Pages. Ready to prove that everything worked?

$ rake gen_deploy

Watch as your Octostrap site is uploaded to Github before your eyes. Wahoo.

Disclaimer: Github can take up to 10 minutes to register your new site before you'll see it. But trust us. This works.

[IMPORTANT] When you setup_github_pages, your site root is going to switch to be the repo_name name from your Github repo instead of the default / path. This ensures that all assets have properly generated URLs (or else Github Pages won't show you any Bootstrap prettiness). This means that when you rake preview an Octostrap site that has Github Pages enabled, you'll visit http://localhost:4000/repo_name/ instead of the default http://localhost:4000/ location.

Documentation

Check out Octopress docs for guides and documentation specific to Octopress. Check out Bootstrap docs for guides and documentation specific to Bootstrap.

Stuff to Do

Here's a quick list of things that are totally untested that tend to work out-of-the-box with vanilla Octopress:

  • syntax highlighting for code samples
  • plugins working with Bootstrap styles
  • Octopress-specific JavaScript
  • Bootstrap JavaScript-based components and interactivity
  • probably more

What's Missing

SASS/LESS.

Bootstrap CSS and JavaScript is included in the source/stylesheets/bootstrap and source/javascripts/bootstrap folders, respectively. There's a couple example pages included and example layouts. We haven't even begun to dig into allowing Bootstrap styles to work in SASS/LESS form.

Contributing

Build Status

We love to see people contributing to Octostrap, whether it's a bug report, feature suggestion or a pull request. At the moment, there's plenty left to get working just right in Octostrap, some of which is noted in the Stuff to Do section.

License

(The MIT License)

Copyright © 2009-2013 Brandon Mathis

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ‘Software’), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

If you want to be awesome.

  • Proudly display the 'Powered by Octopress and Bootstrap' credit in the footer of your Octostrap site.
  • Be active and healthy.
  • Love people.
  • Make the world a better place.

cfaa's People

Contributors

bobwaycott avatar okdistribute avatar

Watchers

 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.