Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add table of contents / toc id

  • Loading branch information...
commit eff40fb21ab08369dcd4e006e733f9b7f5101792 1 parent 933e10b
@wting authored
View
6 _posts/2012-04-02-ror-setup-on-dreamhost.md
@@ -15,7 +15,7 @@ The steps below need to be performed on at a [DreamHost SSH
prompt](http://wiki.dreamhost.com/SSH), but should also be performed locally to
setup the same development environment.
-## Setting Up RVM
+### Setting Up RVM
[Ruby Version Manager](http://beginrescueend.com/) (RVM) is a great tool for
maintaining environment between different machines. This setup will install a
@@ -42,7 +42,7 @@ local single user version into `~/.rvm/`.
Read up on [Gem Sets](http://beginrescueend.com/gemsets/basics/) for even more
control over gems compartmentalization.
-## Setting Up Ruby on Rails
+### Setting Up Ruby on Rails
1. Install a Ruby version to work on:
@@ -56,7 +56,7 @@ Read up on [Gem Sets](http://beginrescueend.com/gemsets/basics/) for even more
$ gem install rails
-## Final Words
+### Final Words
Don't forget to [enable Passenger](http://wiki.dreamhost.com/Passenger#Configuration_Steps) on your domain for web apps.
View
31 _posts/2012-04-18-django-setup-on-dreamhost.md
@@ -6,21 +6,20 @@ tags: [python, django, dreamhost, pythonbrew, virtualenv]
---
{% include JB/setup %}
-## Table of Contents
-
-<pre>
-- Overview
-- Automatic Install
-- Manual Install via pythonbrew
+<pre id="toc">
+- <a href="#overview">Overview</a>
+- <a href="#auto">Automatic Install</a>
+- <a href="#pythonbrew">Manual Install via pythonbrew</a>
- Install Python Tools
- Create Isolated Environment, Install Django
-- Manual Install via Source Code
+- <a href="#source">Manual Install via Source Code</a>
- Install Python Tools
- Create Isolated Environment, Install Django
-- Final Words
+- <a href="#final">Final Words</a>
</pre>
-## Overview
+<a name="overview"> </a>
+### Overview
Dreamhost is stable, cheap, web hosting with good support. However one of the biggest drawbacks is the outdated Ruby and Python installations on the Debian servers. At the time of this writing, the latest Python is v2.7.3 while the server is still on v2.5.2.
@@ -28,9 +27,10 @@ While I've mentioned how simple it is to [set up Ruby on Rails for Dreamhost][ro
Trying to install a custom Python environment has been an exercise in frustration, but hopefully the instructions below can help others.
-There are two methods of installation, from source or via pythonbrew. Pythonbrew helps streamline the process and is preferable. If you prefer installing from source, jump to the [source code instructions below](#sourcecodeinstructions).
+There are two methods of installation, from source or via pythonbrew. Pythonbrew helps streamline the process and is preferable. If you prefer installing from source, jump to the [source code instructions below](#source).
-## Automatic Install
+<a name="auto"> </a>
+### Automatic Install
I've written a script to help streamline the instructions below. Log in to your Dreamhost account via ssh and download the script:
@@ -45,7 +45,8 @@ Run the script, choosing `--pythonbrew` or `--source` installation type.
That's it! Jump down to [final words](#final).
-## Manual Install Python via pythonbrew
+<a name="pythonbrew"> </a>
+### Manual Install Python via pythonbrew
1. Run the following script to install into `~/.pythonbrew/`:
@@ -97,8 +98,8 @@ That's it! Jump down to [final words](#final).
For more information on how to use pythonbrew refer to the [documentation][pb].
-<a name="sourcecodeinstructions"> </a>
-## Manual Install Python via Source Code
+<a name="source"> </a>
+### Manual Install Python via Source Code
1. Download the preferred version of Python. Replace 2.7.3 with your preferred version.
@@ -160,7 +161,7 @@ For more information on how to use pythonbrew refer to the [documentation][pb].
$ pip install django
<a name="final"> </a>
-## Final Words
+### Final Words
Don't forget to [enable Passenger](http://wiki.dreamhost.com/Passenger#Configuration_Steps) on your domain for web apps.
View
16 assets/themes/min-ting/css/style.css
@@ -236,6 +236,22 @@ pre {
-moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.6);
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.6);
}
+pre#toc {
+ font-family: 'Proxima Nova', 'Open Sans', 'Helvetica Neue', Helvetica, 'Segoe UI', Sans-Serif;
+ font-size: 1em;
+ line-height: 1.625em;
+ margin: 0px 2px 10px;
+ padding: 2px 5px;
+ color: #000;
+ background-color: #F8F8F8;
+ border: 1px solid #CCC;
+ -webkit-border-radius: 3px;
+ -moz-border-radius: 3px;
+ border-radius: 3px;
+ -moz-background-clip: padding;
+ -webkit-background-clip: padding-box;
+ background-clip: padding-box;
+}
/* meta */
/* HEADER
--------------------------------------------------------------------------------- */
Please sign in to comment.
Something went wrong with that request. Please try again.