question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

docker social icon

See original GitHub issue

Hey @squidfunk ! Hopefully this is a simple issue to resolve! I am wanting to get the font awesome icon for Docker Hub (this one --> https://fontawesome.com/icons/docker?style\=brands&style=brands) to link to our Docker organization under social extra.

extra:
  social:
    - type: 'github'
      link: 'https://github.com/openbases'
    - type: 'docker'
      link: 'http://hub.docker.com/r/openbases'
    - type: 'twitter'
      link: 'https://twitter.com/vsoch'
    - type: 'linkedin'
      link: 'https://linkedin.com/in/vsochat'

It doesn’t seem to render. I noticed that the font awesome icons also designate fa-docker fab so I added fab, and that didn’t render either.

image

Is there a way to support the icon?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
vsochcommented, Aug 29, 2018

Thanks @squidfunk! For all those interested, here is a quick workaround. First I created a directory on the same level as my site source (src) to put a custom theme, and created a “partials” subfolder, like this:

├── mkdocs.yml
├── src
└── theme
    ├── 404.html
    └── partials
        └── social.html

And in the mkdocs.yml I added the custom theme folder (and note that I installed mkdocs-material from pip!

theme: 
  name: material
  custom_dir: 'theme'

I’m showing the structure because I originally put “theme” under the “src” folder and well, that was wrong 😛

I then added an image for the docker icon that I wanted under src/img. This location is pretty arbitrary.

├── favicon.ico
├── icon
│   ├── docker-clear.png
│   └── docker.png

Here he is! Yes, that’s transparent, lol. He’s there, trust me.

docker-clear

And then the partials file “social.html” just has an extra link to render it:

{% if config.extra.social %}
  <div class="md-footer-social">
    <link rel="stylesheet" href="{{ base_url }}/assets/fonts/font-awesome.css">
    {% for social in config.extra.social %}
      <a href="{{ social.link }}" target="_blank" class="md-footer-social__link fa fa-{{ social.type }}"></a>
    {% endfor %}
      <a href="http://hub.docker.com/r/openbases" class="md-footer-social__link fa" target="_blank">
        <img src="{{ base_url }}/img/icon/docker-clear.png" style="margin-left:10px" width="20px">
      </a>
  </div>
{% endif %}

And tada, happy whale boat 😃

image

0reactions
squidfunkcommented, Aug 28, 2018

Thanks, glad to hear! Hope to find some time soon to address some open issues.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Docker, logo, media, social icon - Free download
Download this docker, logo, media, social icon in outline style from the Social media category. Available in PNG and SVG formats. No signup...
Read more >
46 Docker Icons - Free in SVG, PNG, ICO
Download 46 Docker Vector Icons for commercial and personal use. Available for free or premium in line, flat, gradient, isometric, glyph, sticker &...
Read more >
Docker Icons & Symbols
23 docker icons. Vector icons in SVG, PSD, PNG, EPS and ICON FONT. ... Social media. Get exclusive images straight in your inbox....
Read more >
Trademark Guidelines
The website should otherwise comply with domain name registry policies and applicable laws regarding trademark infringement and dilution. SOCIAL MEDIA. Any and ...
Read more >
socialmedia , social , media , logo , docker icon
Download socialmedia icon, social icon, media icon, logo icon, docker icon.This icon included in Glyph style.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found