Make external TOC links open in new tab; incremental build; better .gitignore

This commit is contained in:
johndmulhausen
2016-02-13 11:58:00 -08:00
parent 8cc6e646fd
commit e8720d74f0
7 changed files with 9 additions and 15 deletions
+3 -6
View File
@@ -1,6 +1,3 @@
.DS_Store
_includes/.DS_Store
docs.html
**/.DS_Store
.jekyll-metadata
_site/**
-3
View File
@@ -1,3 +0,0 @@
[submodule "kubernetes"]
path = kubernetes
url = https://github.com/kubernetes/kubernetes
+2 -2
View File
@@ -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).
+1
View File
@@ -6,6 +6,7 @@ kramdown:
hard_wrap: false
enable_coderay: true
baseurl: /
destination: ../kubernetes.github.io-built/
safe: false
lsi: false
+2 -2
View File
@@ -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 %}
+1 -1
View File
@@ -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>
Submodule kubernetes deleted from a68731b97e