Skip to content

Commit

Permalink
chore: Update pkgdown site setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubnowicki committed Nov 30, 2023
1 parent d9e2760 commit 926d972
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 19 deletions.
16 changes: 14 additions & 2 deletions pkgdown/_pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ template:
gtag('js', new Date());
gtag('config', 'G-FQQZL5V93G');
</script>
<script async defer src="https://buttons.github.io/buttons.js"></script>
before_navbar: |
<a href="https://rhinoverse.dev" class="home"><i class="fa fa-lg fa-chevron-left"></i></a>
url: https://appsilon.github.io/shiny.semantic/

Expand All @@ -38,8 +41,8 @@ navbar:
text: "Reference"
href: reference/index.html
- icon: fa-newspaper-o
text: "Changes"
href: CHANGELOG.html
text: "Changelog"
href: news/index.html
- icon: fa-user-o
text: "CoC"
href: CODE_OF_CONDUCT.html
Expand All @@ -49,6 +52,15 @@ navbar:
- icon: fa-twitter fa-lg
href: https://twitter.com/Appsilon

home:
sidebar:
structure: [star, links, license, community, citation, authors, dev]
components:
star:
title: GitHub
text: |
<a class="github-button" href="https://github.com/appsilon/shiny.semantic" data-size="large" data-show-count="true" aria-label="Star Appsilon/shiny.semantic on GitHub">Star</a>
articles:
- title: All tutorials
desc: ~
Expand Down
39 changes: 22 additions & 17 deletions pkgdown/extra.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
:root {
--primary-color: #F0873B;
}

.navbar {
background-color: #F0873B !important;
background-color: var(--primary-color) !important;
}

#navbar > ul.navbar-nav > li.nav-item a:hover {
background-color: #F0873B !important;
background-color: var(--primary-color) !important;
}

.navbar-dark .navbar-nav .active>.nav-link {
background-color: #F0873B !important;
background-color: var(--primary-color) !important;
color: #fff;
}

Expand All @@ -21,24 +25,25 @@ nav .text-muted {
}

a {
color: #F0873B;
color: var(--primary-color);
}

a:hover {
color: #b6652b;
color: #2c2b2b;
}

button.btn.btn-primary.btn-copy-ex {
background-color: #F0873B;
border-color: #F0873B;
}

.app-preview {
margin: 1.5em 0.75em;
padding: 0.25em;
box-shadow:
0 3.9px 4.6px rgba(0, 0, 0, 0.08),
0 12.3px 8.4px rgba(0, 0, 0, 0.056),
0 18.8px 19.2px rgba(0, 0, 0, 0.037),
0 22px 40px rgba(0, 0, 0, 0.019);
background-color: var(--primary-color);
border-color: var(--primary-color);
}

.home {
left: 0px;
position: absolute;
padding: 8px 30px;
color: rgba(255,255,255,0.55);
}

.home:hover {
color: rgba(255,255,255,0.9);
}

0 comments on commit 926d972

Please sign in to comment.