Fix issues in my mkdocs wiki
review¶
- premature optimization causes bugs
- download without history is faster but loses git commit times
- not deleting old html pages and only updating or adding is faster but leads to duplicate pages. believe this might also cause a bug in the search mkdocs extension
- currently doesn’t auto build
to manually build, click run workflow here
error log summary¶
The log details several issues related to deprecations and errors in the project build process. Here’s a summary:
- Deprecated Features:
material_extensions
: Deprecated and will no longer be supported in future releases.datetime.datetime.utcfromtimestamp()
: Deprecated and will be removed in future Python versions. Use timezone-aware objects instead.materialx.emoji.twemoji
: Deprecated. Emoji logic has been moved tomkdocs-material
version 9.4. Update the configuration inmkdocs.yml
to usematerial.extensions.emoji.twemoji
instead.
- Git Revision Date Localized Plugin Warnings:
- Several markdown files (e.g., ‘wind turbine.md’, ‘winget manifest query.md’) lack git logs, so the current timestamp is being used as a fallback.
- File and Link Issues:
- A documentation file (‘winget.md’) contains a link to a non-existent ‘install.gif’.
- Runtime Error:
- An error occurred while building the page ‘Chrome.md’, causing a “list index out of range” exception. This is likely due to an issue in the
material/plugins/search/plugin.py
.
- An error occurred while building the page ‘Chrome.md’, causing a “list index out of range” exception. This is likely due to an issue in the
To address these issues, consider the following actions:
- Update Deprecated Features:
- Replace
materialx.emoji.twemoji
withmaterial.extensions.emoji.twemoji
inmkdocs.yml
. - Refactor code to replace
datetime.datetime.utcfromtimestamp()
with timezone-aware alternatives.
- Replace
- Check Git Logs:
- Ensure all markdown files have corresponding git logs or handle the fallback more gracefully.
- Resolve Missing Files/Links:
- Verify the presence of ‘install.gif’ or update the documentation to remove or correct the link.
- Investigate Runtime Error:
- Debug the “list index out of range” error in the search plugin, possibly by inspecting the page content or modifying the plugin code to handle empty lists or missing data gracefully.
- todo link to my wiki page / note
- todo