Bug 505357

Summary: favicon missing on api.kde.org
Product: [Frameworks and Libraries] frameworks-kapidox Reporter: John Veness <john.kde>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: nicolas.fella, omerusta
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description John Veness 2025-06-08 22:13:09 UTC
SUMMARY
When viewing a page such as https://api.kde.org/frameworks/ki18n/html/prg_guide.html there is no "favicon" (the icon in the tab). Looking at the source, the file is missing on the site.

STEPS TO REPRODUCE
1. Browse to https://api.kde.org/frameworks/ki18n/html/prg_guide.html in desktop Firefox
2. Look at the tab for the page

OBSERVED RESULT
There is no icon in the tab.

EXPECTED RESULT
A KDE-specific icon in the tab.

ADDITIONAL INFORMATION
Looking at the page source, I see there are references to "../../../resources/favicon.ico", which resolves to https://api.kde.org/resources/favicon.ico, but that address 404s.
Comment 1 Ömer Fadıl USTA 2025-06-09 04:35:59 UTC
There are two possible ways to fix this :
1-  https://invent.kde.org/frameworks/kapidox/-/blob/master/kapidox/data/templates/base.html#L17 and L18 should remove {{resources}} parts
2- Which is much better to keep compatibility 
change os.rename to shutil.copy in https://invent.kde.org/frameworks/kapidox/-/blob/master/kapidox/hlfunctions.py#L59
Comment 2 Ben Cooksley 2025-06-09 10:31:09 UTC
The current api.kde.org site is planned to be replaced by a new version based on QDoc so this is probably something we should look at is ensuring is fixed under QDoc - as the current site can no longer be built following the merge of the QDoc changes to Frameworks.