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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update mkdocs.org automatically on a release #814
Comments
Your first link appears to be bad. In any event, I don't get this. Why does Travis need to deploy? Why can't you run a couple commands locally to deploy? I realize it is sometimes a problem when you forget which options you need each time. But a simple script which provides those options as defaults works fine. That's why I created a makefile for Python-Markdown. The two commands |
I should note that if some additions were made to MkDocs which made it easier to deploy from a CI Server, that would be beneficial. In that case, it might make sense for MkDocs to eat its own dog food. But I doubt we would want to include a Travis specific script. Perhaps a
|
Simply, I want to automate as much as possible to remove dependency on me. It isn't much, but the release process is knowldge in my head and nowhere else, if that is all handled by travis and I (or possibly somebody at some point) just needs to push a git tag, then great! Also, I would also like to see if we could have the docs for master be built and available at mkdocs.org/master/ or similar. So that would be updated on each commit, then a tag would update the main docs. |
But yeah, part of this issue is intended to make it easier to integrate MkDocs into a CI server. So I doubt I would follow the linked approach directly, but that gives me a good example of the problem, I just have the advantage that I can tweak MkDocs to make it easier ;) In a way this could be considered a duplicate of #632. So maybe I should just use that. |
Is this something that still needs doing? We've recently adopted mkdocs for the docs in our librenms/librenms and wanted to do the same thing. When a pull request to master branch is merged, we trigger travis to push a new build of our docs site to docs.librenms.org. I'd be happy to help with the same here if you still need it? |
Looking at our Note, in our case the |
It is a nice to have, but not particularly urgent. |
Sorry guys I didn't get round to this at the time. Can I just check how it works now. Do you publish the site to GitHub Pages or somewhere else? I'm assuming it's GH Pages as you have a gh-page branch, so if we did a hook via Travis to push to that it would be ok? |
Yes, it is on GitHub pages. Doing it with Travis would be best. I have done something similar here: https://github.com/d0ugal/retrace/blob/master/.travis.yml#L31-L37 However, we only want MkDocs to do this on a release - that other project does it on every commit as it is much smaller and released often. |
We do it on merges at the moment but it should be possible to do on release. I'll check into it. |
Yeah, you just need to use https://docs.travis-ci.com/user/deployment/pypi/#Running-commands-before-and-after-release |
I will close this in favor of #3642, and tag it with the "Priority" label. We're not using Travis CI anymore so the comments here are only historically helpful 🙂 |
Travis now releases to PyPI for us, it would be great if it could then also run mkdocs gh-deploy for us too.
Somebody recently figured out how to do this, we can maybe lear from it: https://mwop.net/blog/2016-01-29-automating-gh-pages.html (it looks somewhat complicated, it would be great if we could make this easier for people).
The text was updated successfully, but these errors were encountered: