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

Put OEP templates in top level to make them easier to find #382

Merged
merged 1 commit into from
Sep 27, 2022

Conversation

sarina
Copy link
Contributor

@sarina sarina commented Sep 21, 2022

When I was making my first OEP, I did not use a template as I did not see them buried in the processes directory. I propost to make them top-level to make them easier to find. I would also be ok with putting them into the oeps/ directory. Thoughts? @nedbat @feanil

Copy link
Member

@OmarIthawi OmarIthawi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure, looks great!

Copy link
Contributor

@Carlos-Muniz Carlos-Muniz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey Sarina, I think this is a good idea. I wasn't aware there were templates, and these would have helped.

It does seem like there are some warnings related to the toctrees:

/home/docs/checkouts/readthedocs.org/user_builds/open-edx-proposals/checkouts/382/oeps/processes/oep-0001.rst:448: WARNING: toctree contains reference to nonexisting document 'processes/oep-templates/pep-based-template'
/home/docs/checkouts/readthedocs.org/user_builds/open-edx-proposals/checkouts/382/oeps/processes/oep-0001.rst:448: WARNING: toctree contains reference to nonexisting document 'processes/oep-templates/adr-based-template'
/home/docs/checkouts/readthedocs.org/user_builds/open-edx-proposals/checkouts/382/oeps/processes/oep-0001.rst:448: WARNING: toctree contains reference to nonexisting document 'processes/oep-templates/external-link-template'
looking for now-outdated files... none found

@sarina
Copy link
Contributor Author

sarina commented Sep 21, 2022

@Carlos-Muniz thanks! I was going to hold on resolving errors until I get feedback on the substance of this change.

@Carlos-Muniz Carlos-Muniz self-requested a review September 21, 2022 19:13
@feanil
Copy link
Contributor

feanil commented Sep 22, 2022

substance makes sense to me!

@sarina
Copy link
Contributor Author

sarina commented Sep 22, 2022

ugh, I can't provide links in the oeps/processes/.rst docs that link to the oep-templates/.rst docs because they're referenced in OEP-1 (and I think they should be) but that means they must be in OEP-1's directory structure - can't do relative linking (sphinx-doc/sphinx#701)

some other solutions:

  • Get them rendering somewhere on RTD and then put that rendered RTD link within the OEP-1 page
  • Link to the actual templates in GitHub
  • Add a top level directory with a single file that redirects to the oeps/processes/oep-templates directory (I don't like this one)
  • Make top-level copies with a BIG COMMENT AT THE TOP to mirror any edits to the oeps/processes/oep-templates version (don't love this, pylintrc says very clearly to not edit it and yet many people do)

Any thoughts/other ideas? I tried doing a symbolic link as a few others have suggested/done in other projects, but it did not get the RTD build to pass.

@nedbat
Copy link
Contributor

nedbat commented Sep 23, 2022

I would say it doesn't make sense to render the templates anyway: do authors need to see an HTML page entitled "OEP-XXXX: OEP Template"? They want to know how to get started making a .rst file of their own, so let's just link to the GitHub file.

@sarina sarina force-pushed the sarina/move-templates branch from a8c3966 to 2aa62e6 Compare September 23, 2022 20:19
@sarina
Copy link
Contributor Author

sarina commented Sep 23, 2022

Thanks @nedbat that's what I was leaning towards. I've made the change, I hope :)


..
Add a hidden toctree to indicate that these files are referenced from here in the overall
table of contents.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I can tell this never worked - https://open-edx-proposals.readthedocs.io/en/latest/processes/oep-0001.html - I don't see this in the table of contents at the top or the sub-section TOC here: https://open-edx-proposals.readthedocs.io/en/latest/processes/oep-0001.html#oep-structure-and-content

:hidden:
.. _PEP-based template: https://github.com/openedx/open-edx-proposals/tree/master/oep-templates/pep-based-template.rst
.. _ADR-based template: https://github.com/openedx/open-edx-proposals/tree/master/oep-templates/adr-based-template.rst
.. _External link template: https://github.com/openedx/open-edx-proposals/tree/master/oep-templates/external-link-template.rst
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these links won't work until this merges

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why make these external links? You should refer to the new location directly so that we can detect broken links as a part of the build process in the future: https://docs.openedx.org/en/latest/documentors/references/quick_reference_rst.html#links-between-rst-documents

Copy link
Contributor Author

@sarina sarina Sep 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have written in this PR how linking outside the doc tree doesn't work. #382 (comment)

If you can provide a different solution I am all ears. If you could provide a suggestion via the github UI that would be great because I could not find a solution.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought the external links were a good solution, since they are meant to be used as .rst files, not as published HTML rendered from .rst files. The links-between-rst-documents will render the templates, which isn't helpful.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, makes sense, I think I would have gone with the literalinclude directive for this but I don't feel strongly enough about that to hold this up.

@sarina sarina force-pushed the sarina/move-templates branch from 2aa62e6 to 990a1b0 Compare September 23, 2022 20:27
:hidden:
.. _PEP-based template: https://github.com/openedx/open-edx-proposals/tree/master/oep-templates/pep-based-template.rst
.. _ADR-based template: https://github.com/openedx/open-edx-proposals/tree/master/oep-templates/adr-based-template.rst
.. _External link template: https://github.com/openedx/open-edx-proposals/tree/master/oep-templates/external-link-template.rst
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why make these external links? You should refer to the new location directly so that we can detect broken links as a part of the build process in the future: https://docs.openedx.org/en/latest/documentors/references/quick_reference_rst.html#links-between-rst-documents

:hidden:
.. _PEP-based template: https://github.com/openedx/open-edx-proposals/tree/master/oep-templates/pep-based-template.rst
.. _ADR-based template: https://github.com/openedx/open-edx-proposals/tree/master/oep-templates/adr-based-template.rst
.. _External link template: https://github.com/openedx/open-edx-proposals/tree/master/oep-templates/external-link-template.rst
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, makes sense, I think I would have gone with the literalinclude directive for this but I don't feel strongly enough about that to hold this up.

@sarina sarina force-pushed the sarina/move-templates branch from 990a1b0 to 8169c6e Compare September 27, 2022 17:10
@sarina sarina merged commit 1ba31f7 into master Sep 27, 2022
@sarina sarina deleted the sarina/move-templates branch September 27, 2022 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants