Add github star button

This commit is contained in:
Roman Hotsiy 2016-04-20 02:48:06 +03:00
parent 4f2e1a29e6
commit 44acba7c72
2 changed files with 13 additions and 0 deletions

View File

@ -12,6 +12,8 @@
<input id="schema-url-input" value='http://rebilly.github.io/SwaggerTemplateRepo/swagger.yaml'>
<button type="submit"> Explore </button>
</form>
<iframe src="https://ghbtns.com/github-btn.html?user=Rebilly&repo=ReDoc&type=star&count=true&size=large"
frameborder="0" scrolling="0" width="130px" height="30px"></iframe>
</nav>
<redoc scroll-y-offset="body > nav" spec-url='http://rebilly.github.io:80/SwaggerTemplateRepo/swagger.yaml'></redoc>

View File

@ -105,6 +105,13 @@ nav {
box-sizing: border-box;
}
nav iframe {
margin: 10px 0;
position: absolute;
right: 0;
top: 0;
}
@media (min-width: 1000px) {
nav header {
position: absolute;
@ -118,4 +125,8 @@ nav {
nav header {
display: none;
}
nav iframe {
display: none;
}
}