Skip to content
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

Docs: explain how _readthedocs/<format> directories work, and add examples #9894

Open
1 of 5 tasks
humitos opened this issue Jan 13, 2023 · 6 comments
Open
1 of 5 tasks
Labels
Accepted Accepted issue on our roadmap Needed: documentation Documentation is required Priority: low Low priority

Comments

@humitos
Copy link
Member

humitos commented Jan 13, 2023

Once #9888 gets merged, we need to expand our documentation to explain how these directories work.

  • explain the basics about these directories and its limitations (e.g. one and only one file for non-html formats)
  • show how to output non-html formats when using build.commands
  • add use case for build.jobs.post_build (a potential good example: use staticrypt -- Testing hidden folders with RTD 2i2c-org/team-compass#585)
  • example to build non-html formats on MkDocs via a plugin and outputting the artifacts on the right _readthedocs/ folder
  • example that uses a different PDF (SimplePDF, rinohtype, rst2pdf) / HTMLZip (Zundler) build for Sphinx
@benjaoming
Copy link
Contributor

There is a new documentation page in docs/user/reference/environment-variables.rst

@ericholscher
Copy link
Member

@humitos
Copy link
Member Author

humitos commented Mar 15, 2023

@ericholscher that was the initial work, yeah. However, we need to explain $READTHEDOCS_OUTPUT variable and create all the examples I mentioned in the description into test-builds and show them in the documentation. I'm happy to remove this off of my plate if that helps to move forward faster here and collaborate doing a review.

@ericholscher ericholscher changed the title Docs: explain how _readthedocs/<format> directories work Docs: explain how _readthedocs/<format> directories work, and add examples Mar 15, 2023
@ericholscher ericholscher changed the title Docs: explain how _readthedocs/<format> directories work Docs: explain how _readthedocs/<format> directories work, and add examples Mar 15, 2023
@agjohnson
Copy link
Contributor

I think the second task above is close already, we have some examples in the documentation already. Though we don't have anything mentioning PDF/etc, if we think that is strictly necessary.

I would say one improvement to these docs would be moving the content for the build directories outside of build.commands specific sections. These directories are usable outside build.commands and we probably don't want to imply you need build.command to use these paths.

But with that, I think we can close this issue -- unless we have the energy for this content.

The other examples are nice to have, but not strictly necessary for a user to understand the path usage. They are more guides for how to use other tools then they are examples of using the output paths.

@humitos
Copy link
Member Author

humitos commented Aug 30, 2023

This is content that I'd eventually like to have. I haven't had the energy to write it down quickly and also to prioritize. I'd keep it open and mark it as low priority.

@humitos humitos added the Priority: low Low priority label Aug 30, 2023
@ericholscher
Copy link
Member

Next steps here are just better explaining how this functionality works in the docs. Current copy is here: https://docs.readthedocs.io/en/stable/build-customization.html#where-to-put-files

@humitos humitos removed their assignment Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Accepted issue on our roadmap Needed: documentation Documentation is required Priority: low Low priority
Projects
None yet
Development

No branches or pull requests

4 participants