fix anchors

This commit is contained in:
jomo 2015-10-15 01:03:49 +02:00
parent 18d054e664
commit f69eb85c58

View File

@ -62,12 +62,12 @@
<h2>Documentation</h2> <h2>Documentation</h2>
<div class="row"> <div class="row">
<section> <section id="avatars">
<a id="avatars" class="anchor"></a><a href="#avatars"><h3>Avatars</h3></a> <a href="#avatars"><h3>Avatars</h3></a>
<div class="code"><%= domain %>/avatars/<mark class="green">uuid</mark> <div class="code"><%= domain %>/avatars/<mark class="green">uuid</mark>
</div> </div>
<section> <section id="avatar-parameters">
<a id="avatar-parameters" class="anchor"></a><a href="#avatar-parameters"><h4>Avatar Parameters</h4></a> <a href="#avatar-parameters"><h4>Avatar Parameters</h4></a>
<table class="table table-striped"> <table class="table table-striped">
<thead> <thead>
<tr> <tr>
@ -101,8 +101,8 @@
</tbody> </tbody>
</table> </table>
</section> </section>
<section> <section id="avatar-examples">
<a id="avatar-examples" class="anchor"></a><a href="#avatar-examples"><h4>Avatar Examples</h4></a> <a href="#avatar-examples"><h4>Avatar Examples</h4></a>
<div class="code"> <div class="code">
<div id="avatar-example-1" class="example-wrapper"> <div id="avatar-example-1" class="example-wrapper">
<div class="example"><%= domain %>/avatars/853c80ef3c3749fdaa49938b674adae6</div> <div class="example"><%= domain %>/avatars/853c80ef3c3749fdaa49938b674adae6</div>
@ -133,13 +133,13 @@
<div class="preview-background"></div> <div class="preview-background"></div>
</section> </section>
</section> </section>
<section> <section id="renders">
<a id="renders" class="anchor"></a><a href="#renders"><h3>3D Renders</h3></a> <a href="#renders"><h3>3D Renders</h3></a>
<p>Crafatar also provides support for 3D renders of Minecraft skins.<br> <p>Crafatar also provides support for 3D renders of Minecraft skins.<br>
Please note that <b>this feature is currently beta</b>!<br> Please note that <b>this feature is currently beta</b>!<br>
The <b>head</b> render type returns a render of the skin's head.<span class="code"><%= domain %>/renders/head/<mark class="green">uuid</mark></span>The <b>body</b> render returns a render of the entire skin.<span class="code"><%= domain %>/renders/body/<mark class="green">uuid</mark></span></p> The <b>head</b> render type returns a render of the skin's head.<span class="code"><%= domain %>/renders/head/<mark class="green">uuid</mark></span>The <b>body</b> render returns a render of the entire skin.<span class="code"><%= domain %>/renders/body/<mark class="green">uuid</mark></span></p>
<section> <section id="render-parameters">
<a id="render-parameters" class="anchor"></a><a href="#render-parameters"><h4>Render Parameters</h4></a> <a href="#render-parameters"><h4>Render Parameters</h4></a>
<table class="table table-striped"> <table class="table table-striped">
<thead> <thead>
<tr> <tr>
@ -173,8 +173,8 @@
</tbody> </tbody>
</table> </table>
</section> </section>
<section> <section id="render-examples">
<a id="render-examples" class="anchor"></a><a href="#render-examples"><h4>Render Examples</h4></a> <a href="#render-examples"><h4>Render Examples</h4></a>
<div class="code"> <div class="code">
<div id="render-example-1" class="example-wrapper"> <div id="render-example-1" class="example-wrapper">
<div class="example"><%= domain %>/renders/body/853c80ef3c3749fdaa49938b674adae6?helm&amp;scale=4</div> <div class="example"><%= domain %>/renders/body/853c80ef3c3749fdaa49938b674adae6?helm&amp;scale=4</div>
@ -189,13 +189,13 @@
<div class="preview-background"></div> <div class="preview-background"></div>
</section> </section>
</section> </section>
<section> <section id="skins">
<a id="skins" class="anchor"></a><a href="#skins"><h3>Skins</h3></a> <a href="#skins"><h3>Skins</h3></a>
<p>You can also get the full skin file of a player.<br> <p>You can also get the full skin file of a player.<br>
The user's skin is returned, or the default image is served.<br> The user's skin is returned, or the default image is served.<br>
You can use the default parameter here as well.<span class="code"><%= domain %>/skins/<mark class="green">uuid</mark></span></p> You can use the default parameter here as well.<span class="code"><%= domain %>/skins/<mark class="green">uuid</mark></span></p>
<section> <section id="skin-parameters">
<a id="skin-parameters" class="anchor"></a><a href="#skin-parameters"><h4>Skin Parameters</h4></a> <a href="#skin-parameters"><h4>Skin Parameters</h4></a>
<table class="table table-striped"> <table class="table table-striped">
<thead> <thead>
<tr> <tr>
@ -217,8 +217,8 @@
</tbody> </tbody>
</table> </table>
</section> </section>
<section> <section id="skin-examples">
<a id="skin-examples" class="anchor"></a><a href="#skin-examples"><h4>Skin Examples</h4></a> <a href="#skin-examples"><h4>Skin Examples</h4></a>
<div class="code"> <div class="code">
<div id="skin-example-1" class="example-wrapper"> <div id="skin-example-1" class="example-wrapper">
<div class="example"><%= domain %>/skins/853c80ef3c3749fdaa49938b674adae6</div> <div class="example"><%= domain %>/skins/853c80ef3c3749fdaa49938b674adae6</div>
@ -233,15 +233,15 @@
<div class="preview-background"></div> <div class="preview-background"></div>
</section> </section>
</section> </section>
<section> <section id="capes">
<a id="capes" class="anchor"></a><a href="#capes"><h3>Capes</h3></a> <a href="#capes"><h3>Capes</h3></a>
<p>A cape endpoint is also available to get the active cape of a user.<br> <p>A cape endpoint is also available to get the active cape of a user.<br>
The user's cape is returned, otherwise a 404 is returned.<br> The user's cape is returned, otherwise a 404 is returned.<br>
<div class="code"><%= domain %>/capes/<mark class="green">uuid</mark> <div class="code"><%= domain %>/capes/<mark class="green">uuid</mark>
</div> </div>
</p> </p>
<section> <section id="cape-examples">
<a id="cape-examples" class="anchor"></a><a href="#cape-examples"><h4>Cape Examples</h4></a> <a href="#cape-examples"><h4>Cape Examples</h4></a>
<div class="code"> <div class="code">
<div id="cape-example-1" class="example-wrapper"> <div id="cape-example-1" class="example-wrapper">
<div class="example"><%= domain %>/capes/61699b2ed3274a019f1e0ea8c3f06bc6</div> <div class="example"><%= domain %>/capes/61699b2ed3274a019f1e0ea8c3f06bc6</div>
@ -256,22 +256,22 @@
<div class="preview-background"></div> <div class="preview-background"></div>
</section> </section>
</section> </section>
<section> <section id="meta">
<a id="meta" class="anchor"></a><a href="#meta"><h2>Meta</h2></a> <a href="#meta"><h2>Meta</h2></a>
<section> <section id="meta-cors">
<a id="meta-cors" class="anchor"></a><a href="#meta-cors"><h3>CORS</h3></a> <a href="#meta-cors"><h3>CORS</h3></a>
<p>Crafatar supports CORS so you can make AJAX request from within the browser!</p> <p>Crafatar supports CORS so you can make AJAX request from within the browser!</p>
</section> </section>
<section> <section id="meta-http-headers">
<a id="meta-http-headers" class="anchor"></a><a href="#meta-http-headers"><h3>HTTP Headers</h3></a> <a href="#meta-http-headers"><h3>HTTP Headers</h3></a>
<p>Responses come with these HTTP headers, useful for debugging.<br> <p>Responses come with these HTTP headers, useful for debugging.<br>
Please note that these headers are cached by CloudFlare <small>(CF-Cache-Status: HIT)</small>.</p> Please note that these headers are cached by CloudFlare <small>(CF-Cache-Status: HIT)</small>.</p>
<section> <section id="meta-response-time">
<a id="meta-response-time" class="anchor"></a><a href="#meta-response-time"><h4>Response-Time</h4></a> <a href="#meta-response-time"><h4>Response-Time</h4></a>
<p>The time, in milliseconds, it took Crafatar to process the request.</p> <p>The time, in milliseconds, it took Crafatar to process the request.</p>
</section> </section>
<section> <section id="meta-x-storage-type">
<a id="meta-x-storage-type" class="anchor"></a><a href="#meta-x-storage-type"><h4>X-Storage-Type</h4></a> <a href="#meta-x-storage-type"><h4>X-Storage-Type</h4></a>
<p>Details about how the requested image was stored on the server</p> <p>Details about how the requested image was stored on the server</p>
<ul> <ul>
<li><b>none</b>: No external requests. Cached: User has no skin.</li> <li><b>none</b>: No external requests. Cached: User has no skin.</li>
@ -285,8 +285,8 @@
Check the response body for details.</li> Check the response body for details.</li>
</ul> </ul>
</section> </section>
<section> <section id="meta-x-request-id">
<a id="meta-x-request-id" class="anchor"></a><a href="#meta-x-request-id"><h4>X-Request-ID</h4></a> <a href="#meta-x-request-id"><h4>X-Request-ID</h4></a>
<p>The internal ID assigned to this request.<br> <p>The internal ID assigned to this request.<br>
If you think something is wrong with your request, please <a href="#contact">contact us</a> and provide this ID.</p> If you think something is wrong with your request, please <a href="#contact">contact us</a> and provide this ID.</p>
</section> </section>
@ -302,20 +302,20 @@
Malformed usernames are rejected. Malformed usernames are rejected.
</p> </p>
</section> </section>
<section> <section id="meta-about-uuids">
<a id="meta-about-uuids" class="anchor"></a><a href="#meta-about-uuids"><h3>About UUIDs</h3></a> <a href="#meta-about-uuids"><h3>About UUIDs</h3></a>
<p>UUIDs may use the blank or dashed format.<br> <p>UUIDs may use the blank or dashed format.<br>
Malformed UUIDs are rejected.</p> Malformed UUIDs are rejected.</p>
</section> </section>
<section> <section id="meta-about-caching">
<a id="meta-about-caching" class="anchor"></a><a href="#meta-about-caching"><h3>About Caching</h3></a> <a href="#meta-about-caching"><h3>About Caching</h3></a>
<p>Crafatar caches skins for <%= config.caching.local / 60 %> minutes before checking for skin changes.<br> <p>Crafatar caches skins for <%= config.caching.local / 60 %> minutes before checking for skin changes.<br>
Images are cached in your browser for <%= config.caching.browser / 60 %> minutes until a new request to Crafatar is made.<br> Images are cached in your browser for <%= config.caching.browser / 60 %> minutes until a new request to Crafatar is made.<br>
When you changed your skin you can try clearing your browser cache to see the change faster.</p> When you changed your skin you can try clearing your browser cache to see the change faster.</p>
</section> </section>
</section> </section>
<section> <section id="contact">
<a id="contact" class="anchor"></a><a href="#contact"><h2>Contact</h2></a> <a href="#contact"><h2>Contact</h2></a>
<ul> <ul>
<li>Follow us on twitter <a href="https://twitter.com/crafatar" target="_blank">@crafatar</a></li> <li>Follow us on twitter <a href="https://twitter.com/crafatar" target="_blank">@crafatar</a></li>
<li>Open an issue <a href="https://github.com/crafatar/crafatar/issues" target="_blank">on GitHub</a></li> <li>Open an issue <a href="https://github.com/crafatar/crafatar/issues" target="_blank">on GitHub</a></li>