-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from io2013/jw/website-skeleton
Add website skeleton.
- Loading branch information
Showing
14 changed files
with
436 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/bash | ||
|
||
set -ex | ||
|
||
DIR=temp-clone | ||
|
||
# Delete any existing temporary website clone | ||
rm -rf $DIR | ||
|
||
# Clone the current repo into temp folder | ||
git clone git@github.com:square/okhttp.git $DIR | ||
|
||
# Move working directory into temp folder | ||
cd $DIR | ||
|
||
# Checkout and track the gh-pages branch | ||
git checkout -t origin/gh-pages | ||
|
||
# Delete everything | ||
rm -rf * | ||
|
||
# Copy website files from real repo | ||
cp -R ../website/* . | ||
|
||
# Stage all files in git and create a commit | ||
git add . | ||
git add -u | ||
git commit -m "Website at $(date)" | ||
|
||
# Push the new files up to GitHub | ||
git push origin gh-pages | ||
|
||
# Delete our temp folder | ||
cd .. | ||
rm -rf $DIR |
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,132 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>OkHttp</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<link href="static/bootstrap.min.css" rel="stylesheet"> | ||
<link href="static/bootstrap-responsive.min.css" rel="stylesheet"> | ||
<link href="static/app.css" rel="stylesheet"> | ||
<link href="static/prettify.css" rel="stylesheet"> | ||
<link href="http://fonts.googleapis.com/css?family=Roboto:400,300italic,100,100italic,300" rel="stylesheet" type="text/css"> | ||
<!--[if lt IE 9]><script src="static/html5shiv.min.js"></script><![endif]--> | ||
</head> | ||
<body data-target=".content-nav"> | ||
<header> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="span5"> | ||
<h1>OkHttp</h1> | ||
</div> | ||
<div class="span7"> | ||
<menu> | ||
<ul> | ||
<li><a href="#download" class="menu download">Download <span class="version-tag">Latest</span></a></li> | ||
<li><a href="http://github.com/square/okhttp" data-title="View GitHub Project" class="menu github"><img src="static/icon-github.png" alt="GitHub"/></a></li> | ||
<li><a href="http://square.github.io/" data-title="Square Open Source Portal" class="menu square"><img src="static/icon-square.png" alt="Square"/></a></li> | ||
</ul> | ||
</menu> | ||
</div> | ||
</div> | ||
</header> | ||
<section id="body"> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="span9"> | ||
<h3 id="introduction">Introduction</h3> | ||
<p>Write me!</p> | ||
|
||
<h3 id="examples">Examples</h3> | ||
<p>Write me!</p> | ||
|
||
<h3 id="download">Download</h3> | ||
<p><a href="http://repository.sonatype.org/service/local/artifact/maven/redirect?r=central-proxy&g=com.squareup.okhttp&a=okhttp&v=LATEST" class="dl version-href">↓ <span class="version-tag">Latest</span> JAR</a></p> | ||
<p>The source code to the OkHttp, its samples, and this website is <a href="http://github.com/square/okhttp">available on GitHub</a>.</p> | ||
|
||
<h4>Maven</h4> | ||
<pre class="prettyprint"><dependency> | ||
<groupId>com.squareup.okhttp</groupId> | ||
<artifactId>okhttp</artifactId> | ||
<version><em class="version">(insert latest version)</em></version> | ||
</dependency></pre> | ||
|
||
<h3 id="contributing">Contributing</h3> | ||
<p>If you would like to contribute code you can do so through GitHub by forking the repository and sending a pull request.</p> | ||
<p>When submitting code, please make every effort to follow existing conventions and style in order to keep the code as readable as possible. Please also make sure your code compiles by running <code>mvn clean verify</code>.</p> | ||
<p>Before your code can be accepted into the project you must also sign the <a href="http://squ.re/sign-the-cla">Individual Contributor License Agreement (CLA)</a>.</p> | ||
|
||
<h3 id="license">License</h3> | ||
<pre>Copyright 2013 Square, Inc. | ||
|
||
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.</pre> | ||
</div> | ||
<div class="span3"> | ||
<div class="content-nav" data-spy="affix"> | ||
<ul class="nav nav-tabs nav-stacked primary"> | ||
<li><a href="#introduction">Introduction</a></li> | ||
<li><a href="#examples">Examples</a></li> | ||
<li><a href="#download">Download</a></li> | ||
<li><a href="#contributing">Contributing</a></li> | ||
<li><a href="#license">License</a></li> | ||
</ul> | ||
<ul class="nav nav-pills nav-stacked secondary"> | ||
<li><a href="#">Javadoc</a></li> | ||
<li><a href="https://plus.google.com/communities/109244258569782858265">Google+</a></li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="span12 logo"> | ||
<a href="https://squareup.com"><img src="static/logo-square.png" alt="Square, Inc."/></a> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> | ||
<script src="static/bootstrap.min.js"></script> | ||
<script src="static/jquery.smooth-scroll.min.js"></script> | ||
<script src="static/jquery-maven-artifact.min.js"></script> | ||
<script src="static/prettify.js"></script> | ||
<script type="text/javascript"> | ||
$(function() { | ||
// Syntax highlight code blocks. | ||
prettyPrint(); | ||
|
||
// Spy on scroll position for real-time updating of current section. | ||
$('body').scrollspy(); | ||
|
||
// Use smooth-scroll for internal links. | ||
$('a').smoothScroll(); | ||
|
||
// Enable tooltips on the header nav image items. | ||
$('.menu').tooltip({ | ||
placement: 'bottom', | ||
trigger: 'hover', | ||
container: 'body', | ||
delay: { | ||
show: 500, | ||
hide: 0 | ||
} | ||
}); | ||
|
||
// Look up the latest version of the library. | ||
$.fn.artifactVersion('com.squareup.okhttp', 'okhttp', function(version, url) { | ||
$('.version').text(version); | ||
$('.version-tag').text('v' + version); | ||
$('.version-href').attr('href', url); | ||
}); | ||
}); | ||
</script> | ||
</body> | ||
</html> |
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,175 @@ | ||
html, body { | ||
font-family: 'Roboto', sans-serif; | ||
font-size: 15px; | ||
} | ||
body { | ||
background-color: #f6f6f6; | ||
padding-bottom: 50px; | ||
} | ||
|
||
header { | ||
background-color: #48b7b9; | ||
min-height: 80px; | ||
color: #f6f6f6; | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
border-bottom: 3px solid #ddd; | ||
} | ||
header h1 { | ||
margin: 10px 0; | ||
font-size: 50px; | ||
line-height: 60px; | ||
font-weight: 100; | ||
text-rendering: auto; | ||
} | ||
header menu { | ||
margin: 20px 0 0; | ||
padding: 0; | ||
height: 40px; | ||
} | ||
header menu ul { | ||
margin: 0; | ||
padding: 0; | ||
float: right; | ||
} | ||
header menu li { | ||
list-style: none; | ||
float: left; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
header menu li a { | ||
display: inline-block; | ||
height: 40px; | ||
font-size: 17px; | ||
line-height: 40px; | ||
padding: 0 20px; | ||
color: #f6f6f6; | ||
} | ||
header menu li a:hover { | ||
color: #f6f6f6; | ||
text-decoration: none; | ||
background-color: #40a6a7; | ||
} | ||
header menu li a img { | ||
margin: 0; | ||
padding: 5px 0; | ||
vertical-align: bottom; | ||
width: 30px; | ||
height: 30px; | ||
} | ||
|
||
a.dl { | ||
font-weight: 300; | ||
font-size: 30px; | ||
line-height: 40px; | ||
padding: 3px 10px; | ||
display: inline-block; | ||
background-color: #48b7b9; | ||
border-radius: 6px; | ||
color: #f0f0f0; | ||
margin: 5px 0; | ||
} | ||
a.dl:hover { | ||
color: #f0f0f0; | ||
background-color: #40a6a7; | ||
text-decoration: none; | ||
} | ||
|
||
.content-nav { | ||
margin-top: 130px; | ||
} | ||
.content-nav.affix { | ||
top: 0; | ||
} | ||
.content-nav .active a, .content-nav .active a:hover { | ||
/*background-color: #48b7b9; | ||
color: #fff; | ||
border-right: 2px solid #48b7b9 !important;*/ | ||
border-left: 2px solid #48b7b9 !important; | ||
background-color: transparent; | ||
color: #555; | ||
} | ||
.content-nav .secondary a { | ||
color: #aaa; | ||
} | ||
.content-nav .secondary a:hover { | ||
color: #888; | ||
} | ||
|
||
a { | ||
color: #40a6a7; | ||
} | ||
a:hover { | ||
color: #328183; | ||
} | ||
|
||
.content-nav { | ||
width: 220px; | ||
} | ||
|
||
h3 { | ||
font-weight: 300; | ||
font-style: italic; | ||
color: #888; | ||
font-size: 20px; | ||
padding-top: 115px; | ||
margin-top: 0; | ||
} | ||
|
||
h4 { | ||
font-weight: 400; | ||
text-transform: uppercase; | ||
color: #888; | ||
font-size: 15px; | ||
padding-top: 20px; | ||
} | ||
|
||
p.license { | ||
font-family: fixed-width; | ||
} | ||
|
||
.row .logo { | ||
text-align: center; | ||
margin-top: 150px; | ||
} | ||
.row .logo img { | ||
height: 30px; | ||
} | ||
|
||
pre, code { | ||
color: #666; | ||
} | ||
|
||
/* Widescreen desktop. */ | ||
@media (min-width: 1200px) { | ||
.content-nav { | ||
width: 270px; | ||
} | ||
} | ||
|
||
/* Smaller width browser, tablets. */ | ||
@media (max-width: 979px) { | ||
.content-nav { | ||
width: 166px; | ||
} | ||
} | ||
|
||
/* One-column mobile display. */ | ||
@media (max-width: 767px) { | ||
header { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
padding-left: 20px; | ||
} | ||
header menu { | ||
display: none; | ||
} | ||
.content-nav { | ||
display: none; | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,17 @@ | ||
.pln{color:#000} | ||
@media screen{ | ||
.str{color:#399395} | ||
.kwd{color:#666} | ||
.com{color:#800} | ||
.typ{color:#222} | ||
.lit{color:#666} | ||
.pun,.opn,.clo{color:#888} | ||
.tag{color:#399395} | ||
.atn{color:#606} | ||
.atv{color:#080} | ||
.dec,.var{color:#606} | ||
.fun{color:red} | ||
} | ||
ol.linenums{margin-top:0;margin-bottom:0} | ||
li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none} | ||
li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee} |
Oops, something went wrong.