-
Notifications
You must be signed in to change notification settings - Fork 18
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
New option cache_safe_extras
#19
Conversation
Thanks for contributing! Indeed, these are a lot of changes, I'm not sure what to do with this. I could approve everything in good faith, as you are probably a better developer than me. But it feels a bit overwhelming. Also, this PR addresses at least two topics at once: a) the new It would be great if you could you split this in multiple PRs, so we could theoretically add the caching option without changing the entire code base. I know it's some extra work, but I think it's better for everyone involved in this project. |
@wilhelmer I started with the code cleanup, because I was in the process of figuring out how things work here, so I could add the new option with more ease, however I understand the idea of "don't fix what isn't broken", so I expected a decline for the PR merge after I saw how much I changed.馃槄 I'll send the 2 PRs later today or tomorrow. |
Two PRs should be enough IMHO. One for the new option (including the test for that option + docs), one for everything else. Thanks 馃憤 |
Continued in #20 |
Hi, 馃憢
I'm new to mkDocs and came across an issue with cached extra css/js files.
I read here mkdocs/mkdocs#1979 that it's an ongoing issue since years, and is supposedly being solved in the next 1.5.0 version https://github.com/mkdocs/mkdocs/milestone/15
I didn't want to wait, but also didn't want to dive deep into plugin/mkDocs development, then I found this plugin that both accesses the files and edits the names to
.min.ext
, so I knew I could simply adjust it slightly and add the hashes to the file names.In the process of adding the new option I've:
isort
,black -l100
,pylint
, andmypy
. Manually, as I didn't want to setup automated hooks and tinker with configuring them 馃槄,I've also bumped the version of all dependencies to latest and Python >=3.7 to align with the mkDocs 1.4.1. The added f-strings and type hints break support for older <3.6 Python versions, but I don't really see this as an issue.
If I done too many changes, and you'd like only some part of it, I can cooperate 馃