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

Update ToC in TaskRuns documentation #4265

Merged
merged 1 commit into from
Sep 29, 2021

Conversation

nbaudis
Copy link
Contributor

@nbaudis nbaudis commented Sep 28, 2021

Changes

Updating the ToC in the TaskRuns documentation which had some headings missing. Additionally, the following smaller improvements were made:

  • Fixed quote instead of backtick in ServiceAccount credentials heading
  • Moved overview one level deeper to be consistent with the rest of the documentation (see docs/pipelines.md and docs/tasks.md)
  • Added <!-- toc --> and <!-- /toc --> tags for inplace ToC updates in the future

/kind documentation

Submitter Checklist

As the author of this PR, please check off the items in this checklist:

  • Docs included if any changes are user facing
  • Tests included if any functionality added or changed
  • Follows the commit message standard
  • Meets the Tekton contributor standards (including
    functionality, content, code)
  • Release notes block below has been filled in or deleted (only if no user facing changes)

Release Notes

NONE

@tekton-robot tekton-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/documentation Categorizes issue or PR as related to documentation. labels Sep 28, 2021
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Sep 28, 2021

CLA Signed

The committers are authorized under a signed CLA.

@tekton-robot tekton-robot requested review from imjasonh and a user September 28, 2021 20:33
@tekton-robot tekton-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Sep 28, 2021
@tekton-robot
Copy link
Collaborator

Hi @nbaudis. Thanks for your PR.

I'm waiting for a tektoncd member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@pritidesai
Copy link
Member

/ok-to-test

@tekton-robot tekton-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Sep 28, 2021
docs/taskruns.md Outdated
- [Specifying a `Pod` template](#specifying-a-pod-template)
- [Specifying `Workspaces`](#specifying-workspaces)
- [Specifying `Sidecars`](#specifying-sidecars)
- [Specifying `LimitRange` values](#specifying-limitrange-values)
- [Configuring the failure timeout](#configuring-the-failure-timeout)
- [Configuring the failure timeout](#configuring-the-failure-timeout)
Copy link
Member

Choose a reason for hiding this comment

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

thanks @nbaudis for the updates 🙏

This can be placed under Configuring a TaskRun. Please update the section header so that it aligns with the other "Specifying*" titles.

docs/taskruns.md Outdated
- [Debugging a `TaskRun`](#debugging-a-taskrun)
- [Events](events.md#taskruns)
- [Running a TaskRun Hermetically](hermetic.md)
- [Debugging a `TaskRun`](#debugging-a-taskrun)
Copy link
Member

Choose a reason for hiding this comment

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

Also, please move this out of the Cancelling a TaskRun section, such that, both are on same level:

Cancelling a TaskRun
Debugging a TaskRun

@pritidesai
Copy link
Member

There are two sections missing from ToC:

Both are referencing other files, can we please add it back for folks if they are relying on those links.

@nbaudis
Copy link
Contributor Author

nbaudis commented Sep 28, 2021

Thanks a lot for your comments @pritidesai!

I've corrected the indentation for the two sections and added the two links again. Maybe these links should be placed somewhere outside the ToC so they don't disappear again, but I'm not sure since maybe people rely on them being at the top of the documentation.

@afrittoli
Copy link
Member

/test pull-tekton-pipeline-alpha-integration-tests

docs/taskruns.md Outdated
@@ -509,7 +517,7 @@ spec:
```


### Debugging a `TaskRun`
## Debugging a `TaskRun`

#### Breakpoint on Failure
Copy link

Choose a reason for hiding this comment

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

We should probably drop the heading on this to 3 # to bring it in line with its changed parent heading. Same for #### Debug Environment below - should now be ### Debug Environment.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @sbwsg, you are right. I've changed the levels of the two headings.

This fixes missing and changed entries in the ToC according to the
section headings. Some minor improvements were made, including moving
some headings to their correct depth.
@nbaudis
Copy link
Contributor Author

nbaudis commented Sep 29, 2021

squashed all commits into 1789763

Copy link
Member

@pritidesai pritidesai left a comment

Choose a reason for hiding this comment

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

thank you @nbaudis 👍

@tekton-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: pritidesai

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 29, 2021
- [Monitoring `Results`](#monitoring-results)
- [Cancelling a `TaskRun`](#cancelling-a-taskrun)
- [Debugging a `TaskRun`](#debugging-a-taskrun)
- [Breakpoint on Failure](#breakpoint-on-failure)
Copy link

Choose a reason for hiding this comment

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

Looks like the toc needs to be re-generated after changing the heading level of these two. They're still indented one level too far I think.

Copy link
Member

Choose a reason for hiding this comment

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

Hey @sbwsg I think it shows all aligned:

Screen Shot 2021-09-29 at 6 30 18 AM

Copy link
Member

Choose a reason for hiding this comment

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

I see, the - [Breakpoint on Failure](#breakpoint-on-failure) is one level indented further compared to - [Monitoring Results](#monitoring-results).

Copy link

Choose a reason for hiding this comment

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

Ah OK, looks like it renders fine even though the markdown spacing is different.

@ghost
Copy link

ghost commented Sep 29, 2021

/lgtm

@tekton-robot tekton-robot assigned ghost Sep 29, 2021
@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 29, 2021
@tekton-robot tekton-robot merged commit 43a5891 into tektoncd:main Sep 29, 2021
@nbaudis nbaudis deleted the improve-taskruns-docs branch September 30, 2021 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/documentation Categorizes issue or PR as related to documentation. lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants