Skip to content
Discussion options

You must be logged in to vote

The actions.html isn't such a big partial to worry about maintainability, if a breaking change will happen it should be a quick fix. 🤔 Also typically all breaking changes are reported in the changelog or on the https://squidfunk.github.io/mkdocs-material/upgrade/ page.

Yeah I totally get that, but we're building our wiki via an automated pipeline and I won't always be around, so it's too much of a risk.

That said, I was able to get it working using your example! For posterity:

# Added to mkdocs.yml:
extra_javascript:
  - javascripts/extra.js
// created docs/javascripts/extra.js with this content:
"use strict";

window.addEventListener("DOMContentLoaded", _ => {
    myModifyViewPageButto…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@ryran
Comment options

@kamilkrzyskow
Comment options

@ryran
Comment options

Answer selected by ryran
@kamilkrzyskow
Comment options

@kamilkrzyskow
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants