Make external TOC links open in new tab; incremental build; better .gitignore
This commit is contained in:
+3
-6
@@ -1,6 +1,3 @@
|
|||||||
|
**/.DS_Store
|
||||||
.DS_Store
|
.jekyll-metadata
|
||||||
|
_site/**
|
||||||
_includes/.DS_Store
|
|
||||||
|
|
||||||
docs.html
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
[submodule "kubernetes"]
|
|
||||||
path = kubernetes
|
|
||||||
url = https://github.com/kubernetes/kubernetes
|
|
||||||
@@ -45,10 +45,10 @@ Clone our site
|
|||||||
|
|
||||||
git clone https://github.com/kubernetes/kubernetes.github.io.git
|
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
|
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)
|
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).
|
(or wherever Ruby tells you).
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ kramdown:
|
|||||||
hard_wrap: false
|
hard_wrap: false
|
||||||
enable_coderay: true
|
enable_coderay: true
|
||||||
baseurl: /
|
baseurl: /
|
||||||
|
destination: ../kubernetes.github.io-built/
|
||||||
|
|
||||||
safe: false
|
safe: false
|
||||||
lsi: false
|
lsi: false
|
||||||
|
|||||||
+2
-2
@@ -2,5 +2,5 @@
|
|||||||
<div class="item" data-title="{{ item.title }}">
|
<div class="item" data-title="{{ item.title }}">
|
||||||
<div class="container">{% assign tree = item.section %}{% include tree.html %}
|
<div class="container">{% assign tree = item.section %}{% include tree.html %}
|
||||||
</div>
|
</div>
|
||||||
</div>{% else %}
|
</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 }}" ></a>{% endif %}{% endfor %}
|
<a class="item" data-title="{{ item.title }}" href="{{ item.path }}"{{ target }}></a>{% endif %}{% endfor %}
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
layout: headerfooter
|
layout: headerfooter
|
||||||
---
|
---
|
||||||
<!-- HERO -->
|
<!-- 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">
|
<section id="hero" class="light-text">
|
||||||
<h1>{{ site.data[page.versionfilesafe][foundTOC].bigheader }}</h1>
|
<h1>{{ site.data[page.versionfilesafe][foundTOC].bigheader }}</h1>
|
||||||
<h5>{{ site.data[page.versionfilesafe][foundTOC].abstract }}</h5>
|
<h5>{{ site.data[page.versionfilesafe][foundTOC].abstract }}</h5>
|
||||||
|
|||||||
-1
Submodule kubernetes deleted from a68731b97e
Reference in New Issue
Block a user