Skip to content

Commit

Permalink
Merge pull request #328 from apivideo/view-on-github-button
Browse files Browse the repository at this point in the history
Add GitHub button
  • Loading branch information
olivier-lando authored Nov 10, 2023
2 parents bac474d + 3086bd9 commit 05e25cb
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
.view-on-github-button {
display: inline-flex;
align-items: center;
gap: 0.2rem;
background-color: #EFE9F2;
margin: 0 !important;
padding: 0 1rem 0 0.5rem !important;
height: 2rem !important;
border-radius: 0.5rem;
text-decoration: none !important;
}

.view-on-github-button span {
color: #814B97 !important;
font-size: 1rem !important;
font-family: sans-serif !important;
font-weight: 600 !important;
}

.view-on-github-button img {
height: 2rem !important;
margin: 0 !important;
padding: 0rem !important;
}
8 changes: 8 additions & 0 deletions templates/documentation/_partials/view-on-github-button.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

<a class="view-on-github-button" href="{{link}}">

![]({{"/_assets/icons/github.svg"}})

<span>view on GitHub</span>

</a>
1 change: 1 addition & 0 deletions templates/documentation/doctave.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ styles:
- _assets/css/components/product-card.css
- _assets/css/components/hero.css
- _assets/css/components/content-card.css
- _assets/css/components/view-on-github-button.css
- _assets/css/components/dark-light-image.css

open_api:
Expand Down

0 comments on commit 05e25cb

Please sign in to comment.