CSS Fixes, editdocs.md simplification.

pull/43/head
John Mulhausen 2016-02-16 15:33:27 -08:00
parent 05d3f39510
commit 28d657729d
3 changed files with 46 additions and 34 deletions

View File

@ -7,6 +7,7 @@
<link href='https://fonts.googleapis.com/css?family=Roboto+Mono' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="/css/styles.css"/>
<script src="/js/script.js"></script>
<script src="/js/jquery-2.2.0.min.js"></script>
<title>Kubernetes - {{ page.title }}</title>
</head>
<body>

View File

@ -765,7 +765,8 @@ section {
line-height: 58px; }
#docsContent h2 {
font-size: 32px;
line-height: 40px; }
line-height: 40px;
margin: 30px 0px 15px 0px; }
#docsContent h3 {
font-size: 28px;
line-height: 35px; }
@ -778,17 +779,20 @@ section {
#docsContent p + p {
margin-top: 30px; }
#docsContent code {
display: block;
white-space: pre-wrap;
margin: 30px 0;
padding: 30px;
background-color: #f7f7f7;
background-color: #f7f7f7;
color: #303030;
font-family: "Roboto Mono", monospace;
font-size: 14px;
font-size: 16px;
padding: 2px 4px; }
#docsContent pre code {
display: block;
white-space: pre-wrap;
margin: 20px 0;
padding: 15px;
font-size: 14px;
line-height: 32px;
overflow: auto; }
#docsContent code::-webkit-scrollbar {
#docsContent pre code::-webkit-scrollbar {
background-color: transparent; }
#docsContent ul li {
list-style: disc; }

View File

@ -4,8 +4,40 @@ title: Contributing to Kubernetes Documentation
Welcome! We are very pleased you want to contribute to the docs for Kubernetes.
<!-- BEGIN: Gotta keep this section JS/HTML because it swaps out content dynamically -->
<script language="JavaScript">
var forwarding=window.location.hash.replace("#","");
$( document ).ready(function() {
if(forwarding) {
$("#generalInstructions").hide();
$("#continueEdit").show();
$("#continueEditButton").text("Edit " + forwarding);
$("#continueEditButton").attr("href", "https://github.com/kubernetes/kubernetes.github.io/edit/master/" + forwarding)
} else {
$("#generalInstructions").show();
$("#continueEdit").hide();
}
});
</script>
<div id="continueEdit">
{% raw %}<span id="editlink"></span>{% endraw %}
<h2>Continue your edit</h2>
<p>Click the below link to edit the page you were just on. When you are done, press "Commit Changes" at the bottom of the screen. This will create a copy of our site on your GitHub account called a "fork." You can make other changes in your fork after it is created, if you want. When you are ready to send us all your changes, go to the index page for your fork and click "New Pull Request" to let us know about it.</p>
<p><a id="continueEditButton" class="button"></a></p>
</div>
<div id="generalInstructions">
<h2>Edit our site in the cloud</h2>
<p>Click the below button to visit the repo for our site. You can then click the "Fork" button in the upper-right area of the screen to create a copy of our site on your GitHub account called a "fork." Make any changes you want in your fork, and when you are ready to send those changes to us, go to the index page for your fork and click "New Pull Request" to let us know about it.</p>
<p><a class="button">https://github.com/kubernetes/kubernetes.github.io/</a></p>
</div>
<!-- END: Dynamic section -->
## Staging your changes in the cloud
@ -69,28 +101,3 @@ might help for Windows users.
Kubernetes thrives on community participation and we really appreciate your
contributions to our site and our documentation!
<script language="JavaScript">
(function(){
π.listen(init);
function init(){
π.clean(init);
var editLink = πd('editlink');
var h2 = π.h2();
var p = π.p();
var a = π.a('button');
if(window.location.hash) {
var page = window.location.hash.substring(1,window.location.hash.length);
h2.fill('Continue with your edit');
p.fill('Click the below link to edit the page you were just on. When you are done, press "Commit Changes" at the bottom of the screen. This will create a copy of our site on your GitHub account called a "fork." You can make other changes in your fork after it is created, if you want. When you are ready to send us all your changes, go to the index page for your fork and click "New Pull Request" to let us know about it.');
a.href = 'https://github.com/kubernetes/kubernetes.github.io/edit/master/' + page;
a.fill('Edit ' + page);
} else {
h2.fill('Editing the site in the cloud');
p.fill('Click the below button to visit the repo for our site. You can then click the "Fork" button in the upper-right area of the screen to create a copy of our site on your GitHub account called a "fork." Make any changes you want in your fork, and when you are ready to send those changes to us, go to the index page for your fork and click "New Pull Request" to let us know about it.');
a.href = 'https://github.com/kubernetes/kubernetes.github.io/';
a.fill('Visit our GitHub repo');
}
editLink.fill([h2, p, a]);
}
})();
</script>