Closed nejch closed 2 years ago
Those settings are part of vanilla MkDocs: https://www.mkdocs.org/user-guide/configuration/#remote_branch. I think mike should consult those for compatibility purposes, especially since they're used via mkdocs gh-deploy
, and mike deploy
is really just a more-featureful version of gh-deploy
. I think the current behavior is the right thing here.
If there are some values of either of these settings that work under gh-deploy
but not with mike, that's a bug and it should be fixed. If you've come across a problem like that, feel free to file an issue about it.
Those settings are part of vanilla MkDocs: https://www.mkdocs.org/user-guide/configuration/#remote_branch. I think mike should consult those for compatibility purposes, especially since they're used via
mkdocs gh-deploy
, andmike deploy
is really just a more-featureful version ofgh-deploy
. I think the current behavior is the right thing here.If there are some values of either of these settings that work under
gh-deploy
but not with mike, that's a bug and it should be fixed. If you've come across a problem like that, feel free to file an issue about it.
Ah, I totally missed that. Thanks!
Currently
remote_name
andremote_branch
are configured at the root ofmkdocs.yml
. I think it might be clearer if all options were available in the plugins section, as they're really mike-specific and not mkdocs, even if they're not actually processed by the plugin.It'd also maybe be easier to bring them closer to the CLI flags and prevent colliding with potential mkdocs-native options or other tooling, as they're scoped to mike. E.g.
remote_name
currently isn't 100% accurate, it can also be a URL, and same withremote_branch
techinically, without--push
it's a local branch. https://github.com/jimporter/mike/issues/51 is another candidate maybe.So you'd have something like:
The only thing that feels a bit weird is that since it's not processed by the plugin I guess you'd have to set some dummy defaults there and duplicate them in
load_mkdocs_config()
I suppose :thinking: .