Skip to content

Remove site_favicon #725

Closed
Closed

Description

@carlwgeorge

The documentation states that the default for site_favicon is "null".

**default**: `null`

However, if site_favicon is not specified, the favicon is set to a book icon.

{% if favicon %}<link rel="shortcut icon" href="{{ base_url }}/{{ favicon }}">
{% else %}<link rel="shortcut icon" href="{{ base_url }}/img/favicon.ico">{% endif %}

book

What is the intention? Should the book icon be used if site_favicon is not set? Or should it be completely disabled if site_favicon is not set? I think either the behavior should be modified to match the documentation, or the documentation should be updated to match the behavior.

Activity

  1. d0ugal commented on Sep 11, 2015

    @d0ugal
    Contributor

    Good question! I think we should update the theme to match the documentation.

    Ultimately it is up to the theme how it wants to handle this, but we should do this for the mkdocs themes at least.

  2. reopened this on Sep 11, 2015
  3. d0ugal commented on Sep 11, 2015

    @d0ugal
    Contributor

    (Sorry, accidental close)

  4. waylan commented on Sep 11, 2015

    @waylan
    Contributor

    I find it curious that this setting exists at all. While it certainly makes sense for users to be able to use their own custom favicon, it seems like that should be part of theme customization, not as a config setting.

    In fact, if the template was reduced to:

    <link rel="shortcut icon" href="{{ base_url }}/img/favicon.ico">
    

    Then, as a theme customization, a user could simply include there own favicon at docs/img/favicon.ico and their custom favicon will be used rather than the theme provided favicon (at least I'm assuming that it works that way based on how it works for other things). If course, if using a custom theme, the favicon could be included in the theme dir.

    Not sure what value there is in also having a setting for it.

  5. waylan commented on Sep 11, 2015

    @waylan
    Contributor

    I'll also add that if the user has a need to use a different path/filename for their favicon (or no favicon at all), then that could also be addressed as a theme customization using the methods described in #607 (includes and/or blocks). Again, this removes the need for a favicon setting.

  6. carlwgeorge commented on Oct 6, 2015

    @carlwgeorge
    ContributorAuthor

    Would the project be open to a pull request that removes the site_favicon setting completely? Or is there a deprecation process that needs to be followed first?

  7. d0ugal commented on Oct 8, 2015

    @d0ugal
    Contributor

    @carlgeorge we can probably remove it for version 1.0.

  8. changed the title [-]favicon inconsistency[/-] [+]Remove site_favicon[/+] on Feb 24, 2016
  9. added this to the 1.0.0 milestone on Feb 24, 2016
  10. modified the milestones: 0.16, 1.0.0 on Aug 18, 2016
  11. waylan commented on Aug 18, 2016

    @waylan
    Contributor

    As we are deprecating a bunch of template vars in 0.16 (see #921 and #1026), I just changed the milestone for this to 0.16.

  12. added a commit that references this issue on Aug 18, 2016
    50e1734
  13. dragos commented on Mar 28, 2018

    @dragos

    It would be good to reconsider. I think most projects will want a different favicon than the stock one, and the favicon need not be an .ico file. It seems overkill to require theme customization for something so simple.

    BTW, The readthedocs theme is still using the setting, it seems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions