Skip to content

Commit

Permalink
Docs: Add GitHub link to top navbar (AY2122S1-CS2103T-W15-1#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
j-lum authored Jul 31, 2020
1 parent 86f65cc commit 292f90a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ header_pages:
markdown: kramdown

repository: "se-edu/addressbook-level3"
github_icon: "images/github-icon.png"

plugins:
- jemoji
5 changes: 5 additions & 0 deletions docs/_includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
<a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
{%- endif -%}
{%- endfor -%}
{%- if site.repository -%}
<a class="page-link no-hover" href="https://github.com/{{site.repository}}">
<img src="{{site.github_icon | relative_url}}" class="icon" alt="View on GitHub">
</a>
{%- endif -%}
</div>
</nav>
{%- endif -%}
Expand Down
5 changes: 5 additions & 0 deletions docs/assets/css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,8 @@
@import
"minima/skins/{{ site.minima.skin | default: 'classic' }}",
"minima/initialize";

.icon {
height: 21px;
width: 21px
}
Binary file added docs/images/github-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 292f90a

Please sign in to comment.