You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make the gh_deploy command and support multiple targets (i.e. PyPI) #431
With the deployment list in the mkdocs.yaml, and with github as the default.
Further future (not worth a ticket yet) we could have this extensible via plugins.
The mkdocs gh-deploy command can also be used without GitHub Pages, i.e., to simply build the site and push the site_dir contents to a branch of your choice, e.g., mkdocs gh-deploy -b my_branch.
This even works if the repo isn't a GitHub repo! The contents will then be pushed to a local branch.
My only issues with this are
that the command name is a bit misleading if you don't use GitHub or GH Pages
info messages are displayed stating "... pushing to GitHub" and "Your site should be available on xy.github.io/abc shortly", which isn't true if I don't use GH.
So maybe simply renaming the existing command to mkdocs deploy and editing the info messages would be enough?
@wilhelmer the existing command is a light wrapper around a vendored (and slightly modified) copy of the GitHub Pages Import script. That script is specifically designed for GitHub Pages and outputs the messages which specifically name "GitHub." As we intend to only maintain our own modified copy until c-w/ghp-import#69 is accepted and released, making additional modifications to the vendored script doesn't really make sense.
That said, you make some valid points. My proposal for this issue is to create a new command deploy, which contains a list of subcommands, each of which is supplied by a plugin. That way, various third-party plugins could be created to handle all sorts of different deployment scenarios. A "deploy to git" plugin certainly seems like a great candidate, among others.
Great. My only wish is that the "deploy to git" plugin is available right from the start so we won't lose the current functionality (which may only be an unintended side effect but is still super useful).
Activity
[-]Support cheeseshop docs hosting[/-][+]Support PyPI/cheeseshop docs hosting[/+]lovelydinosaur commentedon Jun 25, 2015
Seconded. Was considering the same.
Alternative:
With the deployment list in the
mkdocs.yaml, and withgithubas the default.Further future (not worth a ticket yet) we could have this extensible via plugins.
[-]Support PyPI/cheeseshop docs hosting[/-][+]Make the gh_deploy command and support multiple targets (i.e. PyPI)[/+]wilhelmer commentedon Jun 5, 2019
The
mkdocs gh-deploycommand can also be used without GitHub Pages, i.e., to simply build the site and push the site_dir contents to a branch of your choice, e.g.,mkdocs gh-deploy -b my_branch.This even works if the repo isn't a GitHub repo! The contents will then be pushed to a local branch.
My only issues with this are
So maybe simply renaming the existing command to
mkdocs deployand editing the info messages would be enough?waylan commentedon Jun 5, 2019
@wilhelmer the existing command is a light wrapper around a vendored (and slightly modified) copy of the GitHub Pages Import script. That script is specifically designed for GitHub Pages and outputs the messages which specifically name "GitHub." As we intend to only maintain our own modified copy until c-w/ghp-import#69 is accepted and released, making additional modifications to the vendored script doesn't really make sense.
That said, you make some valid points. My proposal for this issue is to create a new command
deploy, which contains a list of subcommands, each of which is supplied by a plugin. That way, various third-party plugins could be created to handle all sorts of different deployment scenarios. A "deploy to git" plugin certainly seems like a great candidate, among others.wilhelmer commentedon Jun 5, 2019
Great. My only wish is that the "deploy to git" plugin is available right from the start so we won't lose the current functionality (which may only be an unintended side effect but is still super useful).