Skip to content

Add website docs for metadata functions -json command#32701

Merged
kmoe merged 4 commits intohashicorp:mainfrom
dbanck:docs-metadata-functions
Feb 20, 2023
Merged

Add website docs for metadata functions -json command#32701
kmoe merged 4 commits intohashicorp:mainfrom
dbanck:docs-metadata-functions

Conversation

@dbanck
Copy link
Copy Markdown
Member

@dbanck dbanck commented Feb 17, 2023

This PR is a follow up to #32487 and adds documentation for the new command.

Fixes #32682

Target Release

1.4.x

Open Questions

  • I added a new sidebar section called Accessing Metadata. Does that make sense? Should we rename it or move it somewhere else? --> moved to internals/

@dbanck dbanck marked this pull request as draft February 17, 2023 12:27
@dbanck
Copy link
Copy Markdown
Member Author

dbanck commented Feb 17, 2023

Marking this as a draft for now, as I figure out why the Vercel deployment failed

@dbanck
Copy link
Copy Markdown
Member Author

dbanck commented Feb 17, 2023

Deployment works now, page is accessible here: https://terraform-fm6jhtxlj-hashicorp.vercel.app/terraform/internals/functions-meta

@dbanck dbanck marked this pull request as ready for review February 17, 2023 14:22
@dbanck dbanck requested a review from kmoe February 17, 2023 14:22
Comment on lines +48 to +49
"title": "Metadata Functions",
"path": "metadata-functions"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
"title": "Metadata Functions",
"path": "metadata-functions"
"title": "Functions Metadata",
"path": "functions-meta"

Would it make sense to align this more with the item above?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm still not sure it needs to be in the sidebar on such a prominent position - but I'd leave the Core team to comment on that.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Oh I see now it's under Internals - ignore my last note then! 😄

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I was following the naming pattern for the docs of other commands, but since this now lives under internals, we could rename it.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'd agree that "Functions Metadata" is clearer now that we're out of the context where repeating the command name is useful.


```javascript
{
// "name" is the internal name of the parameter
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
// "name" is the internal name of the parameter
// "name" is the internal name of the parameter

## Format Summary

The following sections describe the JSON output format by example, using a pseudo-JSON notation.
Important elements are described with comments, which are prefixed with //.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
Important elements are described with comments, which are prefixed with //.
Important elements are described with comments, which are prefixed with `//`.

"description": "string",

// "type" is a representation of a type specification
// that the parameters's value must conform to.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
// that the parameters's value must conform to.
// that the parameter's value must conform to.

@alisdair
Copy link
Copy Markdown
Contributor

These docs look good to me, aside from the handful of typos!

* Renamed the doc
* Fixed small typos
@alisdair alisdair added the 1.4-backport If you add this label to a PR before merging, backport-assistant will open a new PR once merged label Feb 17, 2023
Copy link
Copy Markdown
Contributor

@alisdair alisdair left a comment

Choose a reason for hiding this comment

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

Looks great on the Vercel preview!

@kmoe kmoe merged commit b8f3f80 into hashicorp:main Feb 20, 2023
@github-actions
Copy link
Copy Markdown
Contributor

Reminder for the merging maintainer: if this is a user-visible change, please update the changelog on the appropriate release branch.

@dbanck dbanck deleted the docs-metadata-functions branch February 20, 2023 14:35
kmoe pushed a commit to kmoe/terraform that referenced this pull request Mar 1, 2023
)

* Add metadata functions doc to internals

* Add metadata functions to internals nav

* Review feedback

* Renamed the doc
* Fixed small typos

* Update page title
genx7up pushed a commit to aweps/terraform that referenced this pull request Mar 17, 2023
)

* Add metadata functions doc to internals

* Add metadata functions to internals nav

* Review feedback

* Renamed the doc
* Fixed small typos

* Update page title
genx7up pushed a commit to aweps/terraform that referenced this pull request Mar 17, 2023
)

* Add metadata functions doc to internals

* Add metadata functions to internals nav

* Review feedback

* Renamed the doc
* Fixed small typos

* Update page title
@github-actions
Copy link
Copy Markdown
Contributor

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

1.4-backport If you add this label to a PR before merging, backport-assistant will open a new PR once merged documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document terraform metadata functions -json

4 participants