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: configure rstfmt for formatting docs files [DET-3784] #1024

Merged
merged 1 commit into from
Aug 28, 2020

Conversation

dzhu
Copy link
Contributor

@dzhu dzhu commented Aug 5, 2020

Description

We lacked a tool for formatting our reStructuredText files the way we
have for Python and Go; this adds configuration and Makefile targets for
using such a tool that I developed.

Test Plan

  • run make -C docs fmt, skim the changes, check that Sphinx still builds everything

Commentary

Several people recently expressed an interest in adding this sort of thing, so I finally got around to making this PR after having the pieces sitting around for a while.

Because of the rather experimental status of rstfmt, I'm not yet adding a corresponding check target; that way, we don't get blocked if something goes wrong with it. If it looks good for a while, I'll add that later.

(That also means I can leave the actual formatting changes out of this PR so that we can keep them separate from the config changes and not have to squash them together.)

@dzhu dzhu requested review from neilconway and stoksc August 5, 2020 21:24
@cla-bot cla-bot bot added the cla-signed label Aug 5, 2020
@dzhu dzhu changed the title docs: configure rstfmt for formatting docs files docs: configure rstfmt for formatting docs files [DET-3784] Aug 6, 2020
@stoksc
Copy link
Contributor

stoksc commented Aug 11, 2020

After skimming the changes, This seems great to me.

@neilconway
Copy link
Contributor

lgtm! Let's try it.

Can we avoid depending on a git hash in the requirements file? The dependency on the custom sphinx theme does that and we aren't able to reliably pick up changes.

@dzhu dzhu marked this pull request as ready for review August 11, 2020 19:53
@dzhu
Copy link
Contributor Author

dzhu commented Aug 11, 2020

Okay, I'll make sure the rstfmt releases are in shape and update the requirement here.

@neilconway neilconway assigned dzhu and unassigned neilconway Aug 27, 2020
We lacked a tool for formatting our reStructuredText files the way we
have for Python and Go; this adds configuration and Makefile targets for
using such a tool that I developed.
@dzhu dzhu merged commit 20d4409 into determined-ai:master Aug 28, 2020
@dzhu dzhu deleted the rstfmt branch August 28, 2020 01:53
@dannysauer dannysauer added this to the 0.13.2 milestone Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants