Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scripted Logo Generation #3764

Closed
wants to merge 17 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<h1 align="center">
<a href="https://scitools.org.uk/iris/docs/latest/">
<img src="docs/iris/src/_static/iris-logo-title.png" alt="Iris" width="300"></a><br>
<img src="https://scitools-iris.readthedocs.io/en/latest/_static/iris-logo-title.svg" alt="Iris" width="300"></a><br>
</h1>


Expand Down
Binary file removed docs/iris/src/_static/Iris7_1_trim_100.png
Binary file not shown.
Binary file removed docs/iris/src/_static/Iris7_1_trim_full.png
Binary file not shown.
Binary file removed docs/iris/src/_static/favicon.ico
Binary file not shown.
Binary file removed docs/iris/src/_static/iris-logo-title.png
Binary file not shown.
89 changes: 0 additions & 89 deletions docs/iris/src/_static/iris-logo-title.svg

This file was deleted.

12 changes: 10 additions & 2 deletions docs/iris/src/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ def autolog(message):
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
"generate_logo",
"sphinx.ext.todo",
"sphinx.ext.duration",
"sphinx.ext.coverage",
Expand Down Expand Up @@ -188,11 +189,18 @@ def autolog(message):

# -- Options for HTML output --------------------------------------------------

from pathlib import Path

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_logo = "_static/iris-logo-title.png"
html_favicon = "_static/favicon.ico"
project_prefix = project.lower()
os.environ["PROJECT_PREFIX"] = project_prefix
logo_root = Path("_static")
logo_name = f"{project_prefix}-logo-title.svg"
favicon_name = f"{project_prefix}-logo.svg"
html_logo = logo_root / logo_name
html_favicon = logo_root / favicon_name
html_theme = "sphinx_rtd_theme"

html_theme_options = {
Expand Down
Loading