diff --git a/docs/_static/apache-incubator-logo.svg b/docs/_static/apache-incubator-logo.svg new file mode 100644 index 000000000..072ab8c29 --- /dev/null +++ b/docs/_static/apache-incubator-logo.svg @@ -0,0 +1 @@ + diff --git a/docs/_static/custom.css b/docs/_static/custom.css new file mode 100644 index 000000000..ab045a25b --- /dev/null +++ b/docs/_static/custom.css @@ -0,0 +1,59 @@ +/* Custom styles for the Apache footer */ +.apache-footer { + background-color: var(--color-background-secondary) !important; + color: var(--color-foreground-secondary) !important; + padding: 1.5rem; + margin-top: 2rem; + border-top: 1px solid var(--color-background-border); +} + +.apache-footer p { + color: var(--color-foreground-secondary) !important; + margin: 0.5rem 0; + font-size: 0.9em; +} + +.apache-footer a { + color: var(--color-link) !important; + text-decoration: none; + border-bottom: 1px solid var(--color-link-underline); +} + +.apache-footer a:hover { + color: var(--color-link--hover) !important; + border-bottom-color: var(--color-link-underline--hover); +} + +/* Base styles that apply to all modes */ +.apache-footer .apache-incubator-logo { + width: 200px !important; + height: auto !important; + margin: 0 auto 1rem auto; + display: block; +} + +/* Light mode - make logo dark */ +[data-theme="light"] .apache-footer .apache-incubator-logo { + filter: invert(0.9) brightness(0.2) contrast(1.2); +} + +/* Dark mode - use original colors */ +[data-theme="dark"] .apache-footer .apache-incubator-logo { + filter: none !important; +} + +/* Override bottom page icons */ +.bottom-of-page .icons svg { + width: 1.5rem !important; + height: 1.5rem !important; + color: var(--color-foreground-muted) !important; +} + +/* Dark mode overrides */ +[data-theme="dark"] .apache-footer { + background-color: var(--color-background-secondary) !important; +} + +[data-theme="dark"] .apache-footer a { + color: var(--color-link) !important; +} diff --git a/docs/_templates/layout.html b/docs/_templates/layout.html deleted file mode 100644 index ba460dcbe..000000000 --- a/docs/_templates/layout.html +++ /dev/null @@ -1,8 +0,0 @@ -{# _templates/layout.html #} - -{% extends "!layout.html" %} - -{% block extrahead %} - {{ super() }} - -{% endblock %} diff --git a/docs/asf/index.rst b/docs/asf/index.rst new file mode 100644 index 000000000..88e9ef25b --- /dev/null +++ b/docs/asf/index.rst @@ -0,0 +1,29 @@ +================ +ASF +================ + +Apache Software Foundation links. + +.. toctree:: + :maxdepth: 1 + :caption: ASF Links + :glob: + :hidden: + + Apache Software Foundation + License + Events + Privacy + Security + Sponsorship + Thanks + Code of Conduct + +- `Foundation `_ +- `License `_ +- `Events `_ +- `Privacy `_ +- `Security `_ +- `Sponsorship `_ +- `Thanks `_ +- `Code of Conduct `_ diff --git a/docs/conf.py b/docs/conf.py index 74eee205a..44681b6b7 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -6,6 +6,19 @@ # required to get reference documentation to be built sys.path.insert(0, os.path.abspath("..")) +apache_footer = """ + +""" + +copyright = "The Apache Software Foundation, Licensed under the Apache License, Version 2.0." project = "Hamilton" html_theme = "furo" @@ -24,12 +37,20 @@ "color-announcement-background": "#ffba00", "color-announcement-text": "#091E42", }, + "footer_icons": [ + { + "name": "Apache Stuff", + "html": apache_footer, + "url": "https://incubator.apache.org/", + }, + ], } html_static_path = ["_static"] templates_path = ['_templates'] html_css_files = [ "testimonials.css", + "custom.css", ] extensions = [ "sphinx.ext.autodoc", diff --git a/docs/index.md b/docs/index.md index 1005734bb..b88d3b610 100644 --- a/docs/index.md +++ b/docs/index.md @@ -45,6 +45,13 @@ reference/dataflows/index reference/disabling-telemetry.md ``` +```{toctree} +:hidden: True +:caption: ASF + +asf/index +``` + ```{toctree} :hidden: True :caption: EXTERNAL RESOURCES