Skip to content

Commit

Permalink
Make external TOC links open in new tab; incremental build; better .g…
Browse files Browse the repository at this point in the history
…itignore
  • Loading branch information
johndmulhausen committed Feb 13, 2016
1 parent 8cc6e64 commit e8720d7
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 15 deletions.
9 changes: 3 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@

.DS_Store

_includes/.DS_Store

docs.html
**/.DS_Store
.jekyll-metadata
_site/**
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ Clone our site

git clone https://github.com/kubernetes/kubernetes.github.io.git

Then, see it run locally:
Then, to see it run locally:

cd kubernetes.github.io
jekyll serve .
jekyll serve

Your copy of the site will then be viewable at: [http://0.0.0.0:4000](http://0.0.0.0:4000)
(or wherever Ruby tells you).
Expand Down
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ kramdown:
hard_wrap: false
enable_coderay: true
baseurl: /
destination: ../kubernetes.github.io-built/

safe: false
lsi: false
Expand Down
4 changes: 2 additions & 2 deletions _includes/tree.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
<div class="item" data-title="{{ item.title }}">
<div class="container">{% assign tree = item.section %}{% include tree.html %}
</div>
</div>{% else %}
<a class="item" data-title="{{ item.title }}" href="{{ item.path }}" ></a>{% endif %}{% endfor %}
</div>{% else %}{% assign prefix = item.path | slice: 0, 4 %}{% if prefix == "http" %}{% assign target=" target='_blank'" %}{% else %}{% assign target="" %}{% endif %}
<a class="item" data-title="{{ item.title }}" href="{{ item.path }}"{{ target }}></a>{% endif %}{% endfor %}
2 changes: 1 addition & 1 deletion _layouts/docwithnav.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: headerfooter
---
<!-- HERO -->
{% for thistoc in site.data[page.versionfilesafe].globals.tocs %}{% assign tree = site.data[page.versionfilesafe][thistoc].toc %}{% include tocsearch.html %}{% endfor %}
{% for thistoc in site.data[page.versionfilesafe].globals.tocs %}{% if foundTOC %}{% break %}{% else %}{% assign tree = site.data[page.versionfilesafe][thistoc].toc %}{% include tocsearch.html %}{% endif %}{% endfor %}
<section id="hero" class="light-text">
<h1>{{ site.data[page.versionfilesafe][foundTOC].bigheader }}</h1>
<h5>{{ site.data[page.versionfilesafe][foundTOC].abstract }}</h5>
Expand Down
1 change: 0 additions & 1 deletion kubernetes
Submodule kubernetes deleted from a68731

0 comments on commit e8720d7

Please sign in to comment.