Repository navigation
|
If I create an override of [...]
<script src="{{ 'assets/javascripts/bundle.3981fc68.min.js' | url }}"></script>
[...]However, when a new version gets released, the original file is updated and points to another file name: [...]
<script src="{{ 'assets/javascripts/bundle.76f349be.min.js' | url }}"></script>
[...]The website generated with Is there a variable to refer to the currently available 'assets/javascripts/bundle.XXXXXX.min.js' file? |
Replies: 1 comment 1 reply
|
There's currently no variable, the content hashes are generated as part of the build. The general advice is to use template block overrides. Overriding mkdocs-material/src/overrides/main.html Lines 73 to 79 in a4a00af |
There's currently no variable, the content hashes are generated as part of the build. The general advice is to use template block overrides. Overriding
base.htmlmay bring a lot of other problems. Thus, you could just extend the respective block with asuper()call, as we do in the overrides for our own documentation:mkdocs-material/src/overrides/main.html
Lines 73 to 79 in a4a00af