Skip to content

Fix light mode logo not displayed due to privacy plugin 429 errors#44

Merged
braniii merged 3 commits intomainfrom
copilot/fix-light-logo-display-issue
Nov 19, 2025
Merged

Fix light mode logo not displayed due to privacy plugin 429 errors#44
braniii merged 3 commits intomainfrom
copilot/fix-light-logo-display-issue

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Nov 19, 2025

The MkDocs privacy plugin was attempting to download logo images from GitHub URLs and hitting rate limits (429 errors), causing the light mode logo to fail rendering on github.io.

Changes

Logo references

  • README.md: GitHub URLs → relative paths (docs/logo_large_*.svg) for GitHub rendering
  • docs/index.md: Explicit logo tags with site-relative paths (logo_large_*.svg) for MkDocs
  • docs/tutorial/cv.md: Same pattern for silhouette images

Theme-aware display

  • docs/css/extra.css: Added .darkmode/.lightmode CSS rules using existing --md-logo-*-mode variables to toggle visibility based on theme

Build fix

  • docs/gen_ref_nav.py: src.mosaic.__main__mosaic.__main__ (matches installed package structure)

Result

Light mode:
image

Dark mode:
image

No external requests for logo assets, no 429 errors.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • cdn.jsdelivr.net
    • Triggering command: /usr/bin/python3 /home/REDACTED/.local/bin/mkdocs serve --no-livereload (dns block)
    • Triggering command: /usr/bin/python3 /home/REDACTED/.local/bin/mkdocs build --clean (dns block)
    • Triggering command: /usr/bin/python3 /home/REDACTED/.local/bin/mkdocs build --clean --verbose (dns block)
  • codecov.io
    • Triggering command: /usr/bin/python3 /home/REDACTED/.local/bin/mkdocs serve --no-livereload (dns block)
    • Triggering command: /usr/bin/python3 /home/REDACTED/.local/bin/mkdocs build --clean (dns block)
    • Triggering command: /usr/bin/python3 /home/REDACTED/.local/bin/mkdocs build --clean --verbose (dns block)
  • img.shields.io
    • Triggering command: /usr/bin/python3 /home/REDACTED/.local/bin/mkdocs serve --no-livereload (dns block)
    • Triggering command: /usr/bin/python3 /home/REDACTED/.local/bin/mkdocs build --clean (dns block)
    • Triggering command: /usr/bin/python3 /home/REDACTED/.local/bin/mkdocs build --clean --verbose (dns block)
  • numpy.org
    • Triggering command: /usr/bin/python3 /home/REDACTED/.local/bin/mkdocs serve --no-livereload (dns block)
    • Triggering command: /usr/bin/python3 /home/REDACTED/.local/bin/mkdocs build --clean (dns block)
    • Triggering command: /usr/bin/python3 /home/REDACTED/.local/bin/mkdocs build --clean --verbose (dns block)
  • polyfill.io
    • Triggering command: /usr/bin/python3 /home/REDACTED/.local/bin/mkdocs serve --no-livereload (dns block)
    • Triggering command: /usr/bin/python3 /home/REDACTED/.local/bin/mkdocs build --clean (dns block)
    • Triggering command: /usr/bin/python3 /home/REDACTED/.local/bin/mkdocs build --clean --verbose (dns block)
  • static.pepy.tech
    • Triggering command: /usr/bin/python3 /home/REDACTED/.local/bin/mkdocs serve --no-livereload (dns block)
    • Triggering command: /usr/bin/python3 /home/REDACTED/.local/bin/mkdocs build --clean (dns block)
    • Triggering command: /usr/bin/python3 /home/REDACTED/.local/bin/mkdocs build --clean --verbose (dns block)
  • unpkg.com
    • Triggering command: /usr/bin/python3 /home/REDACTED/.local/bin/mkdocs serve --no-livereload (dns block)
    • Triggering command: /usr/bin/python3 /home/REDACTED/.local/bin/mkdocs build --clean (dns block)
    • Triggering command: /usr/bin/python3 /home/REDACTED/.local/bin/mkdocs build --clean --verbose (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Light logo not displayed on github.io</issue_title>
<issue_description>Hello,

just pointing out that the logo on https://moldyn.github.io/MoSAIC/ is not displayed if I am in light mode. Happens on several devices.

Cheers :-)

</issue_description>

<agent_instructions>Please fix this issue. Running mkdocs serve works fine on the dark logo but fails on the light one with the following warning.</agent_instructions>

Comments on the Issue (you are @copilot in this section)

@braniii @taenzel thx for raising this issue. The issue seems to be that the API is limited and I am parsing too many files.
 WARNING -  Couldn't retrieve https://github.com/moldyn/MoSAIC/blob/main/docs/logo_large_light.svg?raw=true#gh-light-mode-only#gh-light-mode-only: 429 Client Error: Too Many Requests for url: https://github.com/moldyn/MoSAIC/blob/main/docs/logo_large_light.svg?raw=true#gh-light-mode-only%23gh-light-mode-only

```</body></comment_new>
</comments>


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits November 19, 2025 13:57
Co-authored-by: braniii <28560129+braniii@users.noreply.github.com>
Co-authored-by: braniii <28560129+braniii@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix light logo not displayed on github.io Fix light mode logo not displayed due to privacy plugin 429 errors Nov 19, 2025
Copilot AI requested a review from braniii November 19, 2025 14:04
@braniii braniii marked this pull request as ready for review November 19, 2025 14:20
@braniii braniii merged commit 7906c57 into main Nov 19, 2025
9 checks passed
@braniii braniii deleted the copilot/fix-light-logo-display-issue branch November 19, 2025 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Light logo not displayed on github.io

2 participants