This repository has been archived by the owner on May 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 382
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Documentation Site Framework (#1924)
* Initial doc site * Make build happy * Fix link * Add missing boilerplate header Our original boilerplate checker used regex and was incorrectly ignoring this file. Now that I've fixed the grep call, this file is being picked up in my PR. * Do not validate bundler deps from docsite
- Loading branch information
Showing
163 changed files
with
9,645 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Copyright 2018 The Kubernetes Authors. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
set -xeuo pipefail | ||
|
||
REPO_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )" | ||
DOCSITE=$REPO_ROOT/docsite | ||
DEST=$DOCSITE/_site | ||
|
||
clean() { | ||
# Start fresh so that removed files are picked up | ||
if [[ -d $DEST ]]; then | ||
rm -r $DEST | ||
fi | ||
mkdir -p $DEST | ||
} | ||
|
||
# Serve a live preview of the site | ||
preview() { | ||
clean | ||
|
||
docker run -it --rm \ | ||
-v $DOCSITE:/srv/jekyll \ | ||
-v $REPO_ROOT/docs:/srv/docs \ | ||
-v $DOCSITE/.bundler:/usr/local/bundle \ | ||
-p 4000:4000 jekyll/jekyll jekyll serve | ||
} | ||
|
||
# Generate the static site's content | ||
generate() { | ||
clean | ||
|
||
echo "Generating site..." | ||
docker run -it --rm \ | ||
-v $DOCSITE:/srv/jekyll \ | ||
-v $REPO_ROOT/docs:/srv/docs \ | ||
-v $DOCSITE/.bundler:/usr/local/bundle \ | ||
jekyll/jekyll jekyll build | ||
} | ||
|
||
"$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
title: Concepts | ||
layout: docwithnav | ||
--- | ||
|
||
The Concepts section helps you learn about the parts of the Service Catalog system. | ||
|
||
## Overview | ||
|
||
TODO | ||
|
||
## Service Catalog Resources | ||
|
||
TODO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
title: What is Service Catalog? | ||
layout: docwithnav | ||
--- | ||
|
||
{% capture overview %} | ||
This page is an overview of Service Catalog. | ||
{% endcapture %} | ||
|
||
{% capture body %} | ||
Service Catalog is awesome! | ||
|
||
#### Why would I want Service Catalog on my cluster? | ||
|
||
Because it's awesome? | ||
|
||
{% endcapture %} | ||
|
||
{% capture whatsnext %} | ||
* Ready to [Get Started](../walkthrough.md)? | ||
* For more details, see the [Service Catalog Documentation](../README.md). | ||
{% endcapture %} | ||
{% include templates/concept.md %} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
title: Contribute to our Docs | ||
layout: docwithnav | ||
--- | ||
|
||
1. Clone this repository | ||
1. Run `make docs-preview` | ||
1. Navigate to [http://localhost:4000](http://localhost:4000) to view the site. | ||
1. Make changes to the files in /docs and reload the web page to view the | ||
changes (changes take about 4 seconds to be rebuilt). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
--- | ||
title: Parameters | ||
layout: docwithnav | ||
--- | ||
|
||
# Passing parameters to brokers | ||
|
||
Table of Contents | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
_site | ||
.bundler | ||
.sass-cache | ||
.jekyll-metadata |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2.4.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
layout: docwithnav | ||
title: 404 Error! | ||
permalink: /404.html | ||
no_canonical: true | ||
sitemap: false | ||
--- | ||
|
||
<script src="/js/redirects.js"></script> | ||
|
||
Sorry, this page was not found. :( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
source "https://rubygems.org" | ||
|
||
# gem "github-pages", group: :jekyll_plugins | ||
|
||
gem "jekyll", "3.6.0" | ||
|
||
group :github_pages_compatible do | ||
gem "json", "~> 1.7", ">= 1.7.7" | ||
gem "coffee-script", "~> 2.4" | ||
gem "coffee-script-source", "~> 1.12" | ||
gem "ethon", "~> 0.10" | ||
gem "execjs", "~> 2.7" | ||
gem "minima", "~> 2.0" | ||
gem "terminal-table", "~> 1.4" | ||
gem "unicode-display_width", "~> 1.1" | ||
end | ||
|
||
group :jekyll_plugins do | ||
gem "jekyll-feed", "~> 0.6" | ||
gem "jekyll-sitemap" | ||
gem "jekyll-gist" | ||
gem "jekyll-paginate", "1.1.0" | ||
gem "jekyll-seo-tag" | ||
gem "jekyll-avatar", "~> 0.4" | ||
gem "jekyll-coffeescript", "~> 1.0" | ||
gem "jekyll-default-layout", "~> 0.1" | ||
gem "jekyll-github-metadata", "~> 2.2" | ||
gem "jekyll-optional-front-matter", "~> 0.1" | ||
gem "jekyll-readme-index", "0.0.3" | ||
gem "jekyll-redirect-from", "~> 0.13" | ||
gem "jekyll-relative-links", "~> 0.5.3" | ||
gem "jekyll-swiss", "~> 0.4" | ||
gem "jekyll-theme-architect", "0.0.3" | ||
gem "jekyll-theme-cayman", "0.0.3" | ||
gem "jekyll-theme-dinky", "0.0.3" | ||
gem "jekyll-theme-hacker", "0.0.3" | ||
gem "jekyll-theme-leap-day", "0.0.3" | ||
gem "jekyll-theme-merlot", "0.0.3" | ||
gem "jekyll-theme-midnight", "0.0.3" | ||
gem "jekyll-theme-minimal", "0.0.3" | ||
gem "jekyll-theme-modernist", "0.0.3" | ||
gem "jekyll-theme-primer", "~> 0.1" | ||
gem "jekyll-theme-slate", "0.0.3" | ||
gem "jekyll-theme-tactile", "0.0.3" | ||
gem "jekyll-theme-time-machine", "0.0.3" | ||
gem "jekyll-titles-from-headings", "~> 0.1" | ||
gem "jekyll-include-cache", "~> 0.1" | ||
gem 'jekyll-youtube', '~> 1.0' | ||
end | ||
|
||
gem "kramdown", "~> 1.11" | ||
gem "rouge", "~> 2.0" | ||
gem "pry" |
Oops, something went wrong.