holoviz-dev / nbsite

Build a tested, sphinx-based website from notebooks
https://nbsite.pyviz.org
BSD 3-Clause "New" or "Revised" License
28 stars 14 forks source link

Add Holoviz shared icon #215

Closed maximlt closed 2 years ago

maximlt commented 2 years ago

To be used in a conf.py file as such:

html_theme_options = {
    "icon_links": [
        {
            "name": "HoloViz",
            "url": "https://holoviz.org/",
            "icon": holoviz_icon_white(__file__),
            "type": "local",
        }
    ]
}

The icon can only be relative to the doc root folder, hence the function holoviz_icon_white that calculates that relative path from the doc root folder to nbsite's shared static directory.