提交 c793de34 编写于 作者: J Jesse Wilson

Use HTTPS links in documentation where possible.

Closes: https://github.com/square/retrofit/issues/2425
上级 0ea86b8a
......@@ -3,7 +3,7 @@
# Deploy a jar, source jar, and javadoc jar to Sonatype's snapshot repo.
#
# Adapted from https://coderwall.com/p/9b_lfq and
# http://benlimmer.com/2013/12/26/automatically-publish-javadoc-to-gh-pages-with-travis-ci/
# https://benlimmer.com/2013/12/26/automatically-publish-javadoc-to-gh-pages-with-travis-ci/
SLUG="square/retrofit"
JDK="oraclejdk8"
......
......@@ -367,7 +367,7 @@ Version 1.5.0 *(2014-03-20)*
* Fix: Support empty HTTP response status reason.
* If an `ErrorHandler` is supplied it will be invoked for `Callback` and `Observable` methods.
* HTTP `PATCH` method using `HttpUrlConnection` is no longer supported. Add the
[OkHttp](http://square.github.io/okhttp) jar to your project if you need this behavior.
[OkHttp](https://square.github.io/okhttp) jar to your project if you need this behavior.
* Custom `Client` implementations should no longer set `Content-Type` or `Content-Length` headers
based on the `TypedInput` body of the `Request`. These headers will now be added automatically
as part of the standard `Request` header list.
......@@ -420,7 +420,7 @@ Version 1.2.2 *(2013-09-12)*
Version 1.2.1 *(2013-08-30)*
----------------------------
* New: Converter for [Wire protocol buffers](http://github.com/square/wire)!
* New: Converter for [Wire protocol buffers](https://github.com/square/wire)!
Version 1.2.0 *(2013-08-23)*
......
......@@ -61,6 +61,6 @@ License
limitations under the License.
[1]: http://square.github.io/retrofit/
[1]: https://square.github.io/retrofit/
[2]: https://search.maven.org/remote_content?g=com.squareup.retrofit2&a=retrofit&v=LATEST
[snap]: https://oss.sonatype.org/content/repositories/snapshots/
......@@ -30,7 +30,7 @@
<name>Retrofit (Parent)</name>
<description>Type-safe HTTP client for Android and Java by Square, Inc.</description>
<url>http://github.com/square/retrofit/</url>
<url>https://github.com/square/retrofit/</url>
<modules>
<module>retrofit</module>
......@@ -78,7 +78,7 @@
</properties>
<scm>
<url>http://github.com/square/retrofit</url>
<url>https://github.com/square/retrofit</url>
<connection>scm:git:git://github.com/square/retrofit.git</connection>
<developerConnection>scm:git:ssh://git@github.com/square/retrofit.git</developerConnection>
<tag>HEAD</tag>
......@@ -86,19 +86,19 @@
<issueManagement>
<system>GitHub Issues</system>
<url>http://github.com/square/retrofit/issues</url>
<url>https://github.com/square/retrofit/issues</url>
</issueManagement>
<licenses>
<license>
<name>Apache 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<organization>
<name>Square, Inc.</name>
<url>http://squareup.com</url>
<url>https://squareup.com</url>
</organization>
<dependencyManagement>
......
......@@ -22,8 +22,8 @@
<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/retrofit" 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>
<li><a href="https://github.com/square/retrofit" data-title="View GitHub Project" class="menu github"><img src="static/icon-github.png" alt="GitHub"/></a></li>
<li><a href="https://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>
......@@ -160,7 +160,7 @@ GitHubService service = retrofit.create(GitHubService.class);</pre>
<section id="download">
<h3>Download</h3>
<p><a href="https://search.maven.org/remote_content?g=com.squareup.retrofit2&a=retrofit&v=LATEST" class="dl version-href">&darr; <span class="version-tag">Latest</span> JAR</a></p>
<p>The source code to the Retrofit, its samples, and this website is <a href="http://github.com/square/retrofit">available on GitHub</a>.</p>
<p>The source code to the Retrofit, its samples, and this website is <a href="https://github.com/square/retrofit">available on GitHub</a>.</p>
<h4>Maven</h4>
<pre class="prettyprint">&lt;dependency>
&lt;groupId>com.squareup.retrofit2&lt;/groupId>
......@@ -192,7 +192,7 @@ compile 'com.squareup.retrofit2:retrofit:<span class="version pln"><em>(insert l
<h3>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>
<p>Before your code can be accepted into the project you must also sign the <a href="https://squ.re/sign-the-cla">Individual Contributor License Agreement (CLA)</a>.</p>
</section>
<section id="license">
......@@ -224,7 +224,7 @@ limitations under the License.</pre>
</ul>
<ul class="nav nav-pills nav-stacked secondary">
<li><a href="2.x/retrofit/">Javadoc</a></li>
<li><a href="http://stackoverflow.com/questions/tagged/retrofit?sort=active">StackOverflow</a></li>
<li><a href="https://stackoverflow.com/questions/tagged/retrofit?sort=active">StackOverflow</a></li>
</ul>
</div>
</div>
......
......@@ -5,4 +5,4 @@
* Author: Jake Wharton
* License: Apache 2.0
*/
(function($){function downloadUrl(groupId,artifactId,version,type){var groupPath=groupId.replace(/\./g,"/");return"http://repo1.maven.org/maven2/"+groupPath+"/"+artifactId+"/"+version+"/"+artifactId+"-"+version+type}$.fn.artifactVersion=function(groupId,artifactId,callback){if(typeof groupId!=="string"||typeof artifactId!=="string"){console.log("Error: groupId and artifactId are required.");return}if(typeof callback==="undefined"){console.log("Error: callback function required.");return}var url='http://search.maven.org/solrsearch/select/?q=g:"'+groupId+'"+AND+a:"'+artifactId+'"&wt=json&json.wrf=?';$.getJSON(url,function(response){var versions=response.response.docs;if(versions.length==0){return}var version=versions[0].latestVersion;var versionUrl=downloadUrl(groupId,artifactId,version,".jar");callback(version,versionUrl)})};$.fn.artifactVersions=function(groupId,artifactId,callback){if(typeof groupId!=="string"||typeof artifactId!=="string"){console.log("Error: groupId and artifactId are required.");return}if(typeof callback==="undefined"){console.log("Error: callback function required.");return}var url='http://search.maven.org/solrsearch/select/?q=g:"'+groupId+'"+AND+a:"'+artifactId+'"&wt=json&rows=10&core=gav&json.wrf=?';$.getJSON(url,function(response){var versions=response.response.docs;if(versions.length==0){return}versions.sort(function(o1,o2){return o1.v>o2.v?-1:1});var newVersions=[];for(var i=0;i<versions.length;i++){var version=versions[i].v;newVersions.push({name:version,url:downloadUrl(groupId,artifactId,version,".jar")})}callback(newVersions)})}})(jQuery);
\ No newline at end of file
(function($){function downloadUrl(groupId,artifactId,version,type){var groupPath=groupId.replace(/\./g,"/");return"https://repo1.maven.org/maven2/"+groupPath+"/"+artifactId+"/"+version+"/"+artifactId+"-"+version+type}$.fn.artifactVersion=function(groupId,artifactId,callback){if(typeof groupId!=="string"||typeof artifactId!=="string"){console.log("Error: groupId and artifactId are required.");return}if(typeof callback==="undefined"){console.log("Error: callback function required.");return}var url='https://search.maven.org/solrsearch/select/?q=g:"'+groupId+'"+AND+a:"'+artifactId+'"&wt=json&json.wrf=?';$.getJSON(url,function(response){var versions=response.response.docs;if(versions.length==0){return}var version=versions[0].latestVersion;var versionUrl=downloadUrl(groupId,artifactId,version,".jar");callback(version,versionUrl)})};$.fn.artifactVersions=function(groupId,artifactId,callback){if(typeof groupId!=="string"||typeof artifactId!=="string"){console.log("Error: groupId and artifactId are required.");return}if(typeof callback==="undefined"){console.log("Error: callback function required.");return}var url='https://search.maven.org/solrsearch/select/?q=g:"'+groupId+'"+AND+a:"'+artifactId+'"&wt=json&rows=10&core=gav&json.wrf=?';$.getJSON(url,function(response){var versions=response.response.docs;if(versions.length==0){return}versions.sort(function(o1,o2){return o1.v>o2.v?-1:1});var newVersions=[];for(var i=0;i<versions.length;i++){var version=versions[i].v;newVersions.push({name:version,url:downloadUrl(groupId,artifactId,version,".jar")})}callback(newVersions)})}})(jQuery);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册