Skip to content

Commit

Permalink
correct baseURL, set favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
BenTheElder committed Feb 13, 2019
1 parent 8eadb59 commit a3e2fdd
Show file tree
Hide file tree
Showing 18 changed files with 101 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<img alt="Build Status" src="https://prow.k8s.io/badge.svg?jobs=ci-kind-build">
</a> <a href="https://godoc.org/sigs.k8s.io/kind"><img src="https://godoc.org/sigs.k8s.io/kind?status.svg"></a> <a href="https://goreportcard.com/report/sigs.k8s.io/kind"><img alt="Go Report Card" src="https://goreportcard.com/badge/sigs.k8s.io/kind" /></a></p>

### [View the documentation](https://kindocs.netlify.com)
### [View The Documentation](https://kind.sigs.k8s.io)

kind is a tool for running local Kubernetes clusters using Docker container "nodes".
kind is primarily designed for testing Kubernetes 1.11+, initially targeting the [conformance tests].
Expand Down
8 changes: 8 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,18 @@
[build]
base = "site/"
publish = "site/public/"
command = "hugo"

[build.environment]
HUGO_VERSION = "0.53"

[context.production.environment]
# this controls our robots.txt
HUGO_ENV = "production"
HUGO_BASEURL = "https://kind.sigs.k8s.io/"

[context.deploy-preview]
command = "hugo --enableGitInfo --buildFuture -b $DEPLOY_PRIME_URL"

[context.branch-deploy]
command = "hugo --enableGitInfo --buildFuture -b $DEPLOY_PRIME_URL"
6 changes: 2 additions & 4 deletions site/Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
serve:
hugo server \
--buildDrafts \
--buildFuture \
--disableFastRender \
--ignoreCache
--ignoreCache \
--buildFuture

build:
hugo
3 changes: 1 addition & 2 deletions site/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# kind's docs

kind's docs are built with [hugo], and can be browsed live at
https://kindocs.netlify.com/
kind's docs are built with [hugo], and can be browsed live at https://kind.sigs.k8s.io/

To browse them locally, install hugo and run `make serve` from this directory.

Expand Down
4 changes: 4 additions & 0 deletions site/config.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
title = "kind"
baseURL = "https://kind.sigs.k8s.io"
languageCode = "en-us"

# we use this to disable indexing for the non-production build
Expand All @@ -11,6 +12,9 @@ enableGitInfo = true
pygmentsCodeFences = true
pygmentsStyle = "tango"

# we don't use these currently
disableKinds = ["taxonomy", "taxonomyTerm"]

# enable hugo's menu system for the site, name the primary menu
sectionPagesMenu = "main"
# menu entries
Expand Down
7 changes: 7 additions & 0 deletions site/layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,11 @@
{{ partialCached "inlinecss.html" . }}
{{ partialCached "inlinescript.html" . }}
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" sizes="180x180" href="{{ "apple-touch-icon.png" | relURL }}">
<link rel="icon" type="image/png" sizes="32x32" href="{{ "favicon-32x32.png" | relURL }}">
<link rel="icon" type="image/png" sizes="16x16" href="{{ "favicon-16x16.png" | relURL }}">
<link rel="manifest" href="{{ "site.webmanifest" | relURL }}">
<link rel="mask-icon" href="{{ "safari-pinned-tab.svg" | relURL }}" color="#5bbad5">
<meta name="msapplication-TileColor" content="#2d89ef">
<meta name="theme-color" content="#ffffff">
</head>
2 changes: 1 addition & 1 deletion site/layouts/partials/navbar.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<div id="navbar">
<span id="sidebar-toggle" onclick="toggleSidebar()">&#9776;</span><span id="navbar-title"><a href="/">kind</a></span><span id="github"><a href="https://github.com/kubernetes-sigs/kind/"><img alt="github" title="github" src="/third_party/GitHub-Mark-120px-plus.png"></a></span>
<span id="sidebar-toggle" onclick="toggleSidebar()">&#9776;</span><span id="navbar-title"><a href="{{.Site.BaseURL}}">kind</a></span><span id="github"><a href="https://github.com/kubernetes-sigs/kind/"><img alt="github" title="github" src="{{ "third_party/GitHub-Mark-120px-plus.png" | relURL }}"></a></span>
</div>
3 changes: 1 addition & 2 deletions site/layouts/partials/sidebar.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<div id="sidebar">
<a href="/" id="sidebar-logo"><img src="/logo/logo.png" width="100%" /></a>
<a href="/" id="sidebar-title">kind</a>
<a href="{{.Site.BaseURL}}" id="sidebar-logo"><img src="{{ "logo/logo.png" | relURL }}" width="100%" /></a>
<div style="background-color: rgba(0, 0, 0, 0.1); width: 100%; height: 1px"></div>
<ul>
{{ $currentPage := . }}
Expand Down
Binary file added site/static/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added site/static/android-chrome-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added site/static/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions site/static/browserconfig.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square150x150logo src="/mstile-150x150.png"/>
<TileColor>#2d89ef</TileColor>
</tile>
</msapplication>
</browserconfig>
Binary file added site/static/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added site/static/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added site/static/favicon.ico
Binary file not shown.
Binary file added site/static/mstile-150x150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 48 additions & 0 deletions site/static/safari-pinned-tab.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions site/static/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "",
"short_name": "",
"icons": [
{
"src": "/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}

0 comments on commit a3e2fdd

Please sign in to comment.