Skip to content

Commit

Permalink
Add GitHub, ORCID, Twitter icons (#21)
Browse files Browse the repository at this point in the history
* Add GitHub, ORCID, Twitter icons

Adds images directory as pioneered by @slochower in
manubot/rootstock#8.
Uses symbolic link so content/images maps to output/images.

Fix https://twitter.com/gcabanac/status/886587167333642240

Makes affiliations & funding small text.

* Modify SVG icons to be gray

* Make ORCID display conditional
  • Loading branch information
dhimmel authored Jul 17, 2017
1 parent 2f51e26 commit 89e0cbc
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 5 deletions.
14 changes: 12 additions & 2 deletions ci/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,20 @@ $TRAVIS_COMMIT_MESSAGE
"

# Deploy the reference data to references
ghp-import --push --branch=references --message="$MESSAGE" references/generated
ghp-import \
--follow-links \
--push \
--branch=references \
--message="$MESSAGE" \
references/generated

# Deploy the output to gh-pages
ghp-import --push --branch=gh-pages --message="$MESSAGE" output
ghp-import \
--follow-links \
--push \
--branch=gh-pages \
--message="$MESSAGE" \
output

# Workaround https://github.com/travis-ci/travis-ci/issues/8082
ssh-agent -k
16 changes: 13 additions & 3 deletions content/00.front-matter.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,24 @@ This manuscript was automatically generated from [{{ci_source.repo_slug}}@{{ci_s

{% for author in authors %}
+ **{{author.full_name}}**<br>
[{{author.orcid}}](https://orcid.org/{{author.orcid}})
{%- if author.orcid is defined %}
![ORCID icon](images/orcid.svg){height="13px"}
[{{author.orcid}}](https://orcid.org/{{author.orcid}})
{%- endif %}
{%- if author.github_username is defined %}
· [\@{{author.github_username}}](https://github.com/{{author.github_username}})
· ![GitHub icon](images/github.svg){height="13px"}
[{{author.github_username}}](https://github.com/{{author.github_username}})
{%- endif %}
{%- if author.twitter_username is defined %}
· ![Twitter icon](images/twitter.svg){height="13px"}
[{{author.twitter_username}}](https://twitter.com/{{author.twitter_username}})
{%- endif %}<br>
<small>
{%- if author.affiliations is defined %}
· {{author.affiliations}}
{{author.affiliations}}
{%- endif %}
{%- if author.funders is defined %}
· Funded by {{author.funders}}
{%- endif %}
</small>
{% endfor %}
6 changes: 6 additions & 0 deletions content/images/github.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions content/images/orcid.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions content/images/twitter.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions content/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ author_info:
full_name: Daniel S. Himmelstein
initials: DSH
orcid: 0000-0002-3012-7446
twitter_username: dhimmel
email: [email protected]
affiliations: Department of Systems Pharmacology and Translational Therapeutics, University of Pennsylvania
funders: GBMF4552
Expand Down
1 change: 1 addition & 0 deletions output/images

0 comments on commit 89e0cbc

Please sign in to comment.