Skip to content

Commit 290e98e

Browse files
committed
fix TOC with some CSS hacks
1 parent 6fd95d9 commit 290e98e

File tree

3 files changed

+23
-11
lines changed

3 files changed

+23
-11
lines changed

website/_assets/css/custom.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,10 @@ h4 {
9191
.label-request {
9292
background-color: #009800;
9393
}
94+
95+
/*Hacky way to make sure anchors are pushed down because of the sticky navbar*/
96+
h1[id], h2[id], h3[id], h4[id], h5[id] {
97+
padding-top: 70px;
98+
margin-top: -70px;
99+
display: inline-block; /* required for webkit browsers */
100+
}

website/_containers/begin/2013-10-30-setup-your-machine.md

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@ All the needed dependencies for setting up your Mac, Linux, or Windows machine f
88

99
1. [Overview](#overview-of-requirements)
1010
2. Install:
11-
* [Mac OS X](#mac-os-x)
12-
* [Linux](#linux)
13-
* [Windows](#windows)
11+
1. [Mac OS X](#mac-os-x)
12+
2. [Linux](#linux)
13+
3. [Windows](#windows)
1414
3. [Test your setup](#test-your-setup)
1515
4. [Get the Tutorial Code](#get-the-tutorial-code)
1616

17+
<br/><br/><hr/>
1718
## Overview of requirements
1819

1920
The installation will depend on your operating system, but overall, you will need:
@@ -26,7 +27,7 @@ The installation will depend on your operating system, but overall, you will nee
2627
* virtualenvwrapper
2728

2829
## Mac OS X
29-
30+
<p/>
3031
### Python
3132
Macs come with Python pre-installed. To double-check, open up the Terminal application (Applications &rarr; Utilities &rarr; Terminal like [so][2]), then type `python`:
3233

@@ -92,10 +93,12 @@ $ mkdir -p $WORKON_HOME
9293
$ source /usr/local/bin/virtualenvwrapper.sh
9394
```
9495

95-
96+
<hr/>
9697

9798
## Linux
9899

100+
<p/>
101+
99102
### Python
100103
Linux come with Python pre-installed. To double-check, open up the Terminal application, then type `python`:
101104

@@ -177,8 +180,10 @@ $ mkdir -p $WORKON_HOME
177180
$ source ~/.bash_profile
178181
```
179182

180-
## Windows
183+
<hr/>
181184

185+
## Windows
186+
<p/>
182187
### powershell
183188

184189
1. This step depends on the version of Windows you are running.
@@ -278,13 +283,14 @@ git is ready to go!
278283

279284
Success! You have installed Virtualenvwrapper!
280285

286+
<hr/>
281287

282288
## Test your setup
283289

284-
## Mac-OS-X and Linux
285-
286290
Now let’s test our installation and get familiar with creating & using virtual environments, let’s return to our terminal:
287291

292+
### Mac OS X and Linux
293+
288294

289295
```bash
290296
$ mkvirtualenv TestEnv
@@ -396,8 +402,6 @@ Here’s a run-down of useful commands for pip, virtualenv & virtualenvwrapper.
396402

397403
## Windows
398404

399-
Now let’s test our installation and get familiar with creating & using virtual environments, let’s return to our terminal:
400-
401405

402406
```powershell
403407
C:\> mkvirtualenv TestEnv
@@ -507,6 +511,7 @@ For Powershell:
507511
* `ls`:List all objects in current directory
508512
* `mkdir` : create a new directory
509513

514+
<hr/>
510515

511516
## Get the Tutorial Code
512517

website/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ social:
1515
jinja:
1616
extensions:
1717
- jinja2.ext.loopcontrols
18-
misaka:
18+
hoep:
1919
render_flags:
2020
toc: true
2121
tag_layout: tag.html

0 commit comments

Comments
 (0)