-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Document deploying #477
Comments
I agree with all of these except maybe Read the Docs. They have their own tool and yours would add nothing except convenience. Not sure about self hosting. While certainly nice-to-have, the possible options out there leave it pretty broad. Basic FTP upload would be simple enough. Not sure if you had anything else in mind. |
I see this page as collecting the most likely options for our users. So it might be as simple as pointing users to the relevant ReadTheDocs documentation and letting them know they support MkDocs. For self hosting, I probably just want to state how self hosting is trivial as everything is static. It may also be worth mentioning S3 as an option. People sometimes come and ask about these things in IRC, so I mostly want this as a place to link to when doing support. |
Here are some notes on PyPI for future reference: This could be tricky to do as a subcommand of mkdocs. Meta-data regarding the PyPI repository is needed to do the upload to PyPI (primarily which repo and the associated username and password). Sphinx-PyPI-upload works because it registers itself as a subcommand with setuptools (it is run as Interestingly, I see no reason why Sphinx-PyPI-upload couldn't work out-of-the-box. You can point it at a specific directory of already built docs to zip and upload. Technically, that dir doesn't need to have been created by Sphinx. In fact, Sphinx-PyPI-upload always assumes the docs have already been built and has no actual dependency on Sphinx. At worst a quick read of the source suggests that it might assume that the docs are contained within a subdir (named At most, I think a mkdocs deploy script for PyPI would pull the build dir from the mkdocs config, and call Sphinx-PyPI-upload passing it the build dir. Although, as Sphinx-PyPI-upload can be configured via |
@waylan Neat! Thanks for doing this research - sounds like it is a bit more involved than I realised. |
I think my preferred scenario would be for Twine to add an |
I found this after a quick search, looks like they don't want to add it to Twine. pypa/twine#12 A Twine extension sounds like a nice way to go with this, I'll help if I can and otherwise I'd certainly document it! |
Not sure how I missed this, but setuptools has an upload_docs command which appears to have started out as Sphinx-PyPI-upload. However, it does not assume a Sphinx build dir (it doesn't append mkdocs build --clean
python setup.py upload_docs --upload-dir=site As per the docs, a |
Fixed by #566 |
Did you intend to close this? |
Yup, thanks. |
This should be a fairly short document, but it is worth covering the options. Should cover:
The text was updated successfully, but these errors were encountered: