Doc review request for this new section: <https://...
# development
c
h
Looks good! i think we should probably consolidate other sections into this tho, wdyt? Like the second half of https://www.pantsbuild.org/v2.10/docs/tagging-docker-images#tagging-images
āž• 1
c
Ah, there it was.. I knew there was more places that talked about interpolation, but I searched for placeholder .. šŸ˜›
šŸ‘ 1
Yeah, Iā€™m not even sure if the ā€œTagging docker imagesā€ page is a good fit
Thereā€™s all kinds of stuff in there soon..:P
Feel free to move stuff around on those pages, if you have an idea you like
I can write, but Iā€™m not very structured when it comes to docs.
h
I can spend some time next week thinking about it šŸ™‚ will add it to the docs audit https://docs.google.com/spreadsheets/d/1wcddB4wjmtR1yhQ0UI46O_HMDOhQdYpmdjhk7myJxw0/edit#gid=1972664370 trying to knock out some stuff for 2.10.0rc1 today and tomorrow
šŸ’Æ 1
h
I'll take a stab at it , since I'm banging on docs today anyway
ā¤ļø 2
Re this - it should probably list exactly which fields support interpolation and which values are available in each, in a table?
c
Yeah, that makes sense.
I've setup the help for the fields such that all that support interpolation has a common wording for easy identification.
h
Great
But am I wrong that we already show examples of this interpolation before we get to that section of the docs?
c
In the reference section, fields that support interpolation uses a wording such as ā€œEach tag may use placeholders in curly braces to be interpolated. The placeholders are derived from various sources, such as the Dockerfile FROM instructions tags and build args.ā€ Then in the docs thereā€™s just the https://www.pantsbuild.org/docs/tagging-docker-images#setting-a-repository-name currently that refers to interpolation, I think (besides the new section in the 2.10 docs)
h
Doesn't "Using env vars to include dynamic data in tags" in that same page give interpolation examples?
"Setting a repository name" refers to interpolation in pants.toml, which is different
c
Doesnā€™t ā€œUsing env vars to include dynamic data in tagsā€ in that same page give interpolation examples?
Indeed it does. Bad search by me (was in a rush..)
h
OK, so I might tweak this to add something like "see more below" or whatever
I see that "Setting a repository name" links to the new section, but that refers to interpolation in pants.toml. Is that quite the same?
c
What part refers to interpolation in pants.toml? The opening sentence in the new section ā€œString interpolation using placeholder valuesā€ is
Some fields of theĀ 
docker_image
Ā supports replacing placeholder values [ā€¦]
Ah, gosh, my docs reading today is awfulā€¦
And yes, itā€™s the same. Thereā€™s even a hint at that in thereā€¦
In fact, you can use these placeholders in theĀ 
repository
Ā field as well, if you find that helpful.
h
I think the new section looks good, I tweaked it only very slightly.
ā¤ļø 1