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

Makes headings consistent across PowerToys documentation #4820

Open
wants to merge 4 commits into
base: docs
Choose a base branch
from

Conversation

NathanD-GDS
Copy link
Contributor

@NathanD-GDS NathanD-GDS commented Jan 13, 2024

The headings across the PowerToys documentation are very inconsistent.

This PR:

  • makes headings more consistent by applying the most used verb form in the PowerToys docs - the present participle - across as many pages and headings as possible (Use PowerToys Run becomes Using PowerToys Run)
  • makes non action-based headings, action-based (for example, Plugin manager becomes Using plugins for PowerToys Run)
  • makes generic headings specific to the utility (How to use becomes Using Quick Accent)
  • simplifies the heading structure on some pages
  • improves the heading structure of pages that had too broad of a heading structure
  • adds missing utility suffix to H1s
  • makes short, undescriptive headings more specific (for example, Limitations becomes Limitations of Color Picker

Some generic headings, such as Settings, have been left alone.

If it turns out that another verb format is better for headings, this PR should make it easier to change as most headings now follow a similar structure.

Copy link
Contributor

@NathanD-GDS : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Copy link
Contributor

Learn Build status updates of commit 70992a1:

⚠️ Validation status: warnings

File Status Preview URL Details
hub/powertoys/hosts-file-editor.md ⚠️Warning Details
hub/powertoys/run.md ⚠️Warning Details
hub/powertoys/always-on-top.md ✅Succeeded
hub/powertoys/awake.md ✅Succeeded
hub/powertoys/cmd-not-found.md ✅Succeeded
hub/powertoys/color-picker.md ✅Succeeded
hub/powertoys/crop-and-lock.md ✅Succeeded
hub/powertoys/environment-variables.md ✅Succeeded
hub/powertoys/file-explorer.md ✅Succeeded
hub/powertoys/file-locksmith.md ✅Succeeded
hub/powertoys/grouppolicy.md ✅Succeeded
hub/powertoys/image-resizer.md ✅Succeeded
hub/powertoys/keyboard-manager.md ✅Succeeded
hub/powertoys/mouse-utilities.md ✅Succeeded
hub/powertoys/mouse-without-borders.md ✅Succeeded
hub/powertoys/paste-as-plain-text.md ✅Succeeded
hub/powertoys/peek.md ✅Succeeded
hub/powertoys/powerrename.md ✅Succeeded
hub/powertoys/quick-accent.md ✅Succeeded
hub/powertoys/registry-preview.md ✅Succeeded
hub/powertoys/screen-ruler.md ✅Succeeded
hub/powertoys/shortcut-guide.md ✅Succeeded
hub/powertoys/text-extractor.md ✅Succeeded
hub/powertoys/video-conference-mute.md ✅Succeeded

hub/powertoys/hosts-file-editor.md

  • Line 11, Column 356: [Warning: disallowed-html-tag - See documentation] HTML tag 'abbr' isn't allowed. Replace it with approved Markdown or escape the brackets if the content is a placeholder.

hub/powertoys/run.md

  • Line 118, Column 209: [Warning: bookmark-not-found] Cannot find bookmark '#plugin-manager' in 'powertoys/run.md'.
  • Line 167, Column 211: [Warning: bookmark-not-found] Cannot find bookmark '#plugin-manager' in 'powertoys/run.md'.
  • Line 378, Column 33: [Warning: bookmark-not-found] Cannot find bookmark '#plugin-manager' in 'powertoys/run.md'.

For more details, please refer to the build report.

Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

For any questions, please:

Copy link
Contributor

Learn Build status updates of commit bb93319:

⚠️ Validation status: warnings

File Status Preview URL Details
hub/powertoys/hosts-file-editor.md ⚠️Warning Details
hub/powertoys/run.md ⚠️Warning Details
hub/powertoys/always-on-top.md ✅Succeeded
hub/powertoys/awake.md ✅Succeeded
hub/powertoys/cmd-not-found.md ✅Succeeded
hub/powertoys/color-picker.md ✅Succeeded
hub/powertoys/crop-and-lock.md ✅Succeeded
hub/powertoys/environment-variables.md ✅Succeeded
hub/powertoys/file-explorer.md ✅Succeeded
hub/powertoys/file-locksmith.md ✅Succeeded
hub/powertoys/grouppolicy.md ✅Succeeded
hub/powertoys/image-resizer.md ✅Succeeded
hub/powertoys/keyboard-manager.md ✅Succeeded
hub/powertoys/mouse-utilities.md ✅Succeeded
hub/powertoys/mouse-without-borders.md ✅Succeeded
hub/powertoys/paste-as-plain-text.md ✅Succeeded
hub/powertoys/peek.md ✅Succeeded
hub/powertoys/powerrename.md ✅Succeeded
hub/powertoys/quick-accent.md ✅Succeeded
hub/powertoys/registry-preview.md ✅Succeeded
hub/powertoys/screen-ruler.md ✅Succeeded
hub/powertoys/shortcut-guide.md ✅Succeeded
hub/powertoys/text-extractor.md ✅Succeeded
hub/powertoys/video-conference-mute.md ✅Succeeded

hub/powertoys/hosts-file-editor.md

  • Line 11, Column 356: [Warning: disallowed-html-tag - See documentation] HTML tag 'abbr' isn't allowed. Replace it with approved Markdown or escape the brackets if the content is a placeholder.

hub/powertoys/run.md

  • Line 118, Column 209: [Warning: bookmark-not-found] Cannot find bookmark '#plugin-manager' in 'powertoys/run.md'.
  • Line 167, Column 211: [Warning: bookmark-not-found] Cannot find bookmark '#plugin-manager' in 'powertoys/run.md'.
  • Line 378, Column 33: [Warning: bookmark-not-found] Cannot find bookmark '#plugin-manager' in 'powertoys/run.md'.

For more details, please refer to the build report.

Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

For any questions, please:

Copy link
Contributor

Learn Build status updates of commit 8b4c452:

⚠️ Validation status: warnings

File Status Preview URL Details
hub/powertoys/hosts-file-editor.md ⚠️Warning Details
hub/powertoys/always-on-top.md ✅Succeeded
hub/powertoys/awake.md ✅Succeeded
hub/powertoys/cmd-not-found.md ✅Succeeded
hub/powertoys/color-picker.md ✅Succeeded
hub/powertoys/crop-and-lock.md ✅Succeeded
hub/powertoys/environment-variables.md ✅Succeeded
hub/powertoys/file-explorer.md ✅Succeeded
hub/powertoys/file-locksmith.md ✅Succeeded
hub/powertoys/grouppolicy.md ✅Succeeded
hub/powertoys/image-resizer.md ✅Succeeded
hub/powertoys/keyboard-manager.md ✅Succeeded
hub/powertoys/mouse-utilities.md ✅Succeeded
hub/powertoys/mouse-without-borders.md ✅Succeeded
hub/powertoys/paste-as-plain-text.md ✅Succeeded
hub/powertoys/peek.md ✅Succeeded
hub/powertoys/powerrename.md ✅Succeeded
hub/powertoys/quick-accent.md ✅Succeeded
hub/powertoys/registry-preview.md ✅Succeeded
hub/powertoys/run.md ✅Succeeded
hub/powertoys/screen-ruler.md ✅Succeeded
hub/powertoys/shortcut-guide.md ✅Succeeded
hub/powertoys/text-extractor.md ✅Succeeded
hub/powertoys/video-conference-mute.md ✅Succeeded

hub/powertoys/hosts-file-editor.md

  • Line 11, Column 356: [Warning: disallowed-html-tag - See documentation] HTML tag 'abbr' isn't allowed. Replace it with approved Markdown or escape the brackets if the content is a placeholder.

For more details, please refer to the build report.

Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

For any questions, please:

Removes as `abbr` HTML tag because the PR was giving warnings about it.
Copy link
Contributor

Learn Build status updates of commit d9e452e:

✅ Validation status: passed

File Status Preview URL Details
hub/powertoys/always-on-top.md ✅Succeeded
hub/powertoys/awake.md ✅Succeeded
hub/powertoys/cmd-not-found.md ✅Succeeded
hub/powertoys/color-picker.md ✅Succeeded
hub/powertoys/crop-and-lock.md ✅Succeeded
hub/powertoys/environment-variables.md ✅Succeeded
hub/powertoys/file-explorer.md ✅Succeeded
hub/powertoys/file-locksmith.md ✅Succeeded
hub/powertoys/grouppolicy.md ✅Succeeded
hub/powertoys/hosts-file-editor.md ✅Succeeded
hub/powertoys/image-resizer.md ✅Succeeded
hub/powertoys/keyboard-manager.md ✅Succeeded
hub/powertoys/mouse-utilities.md ✅Succeeded
hub/powertoys/mouse-without-borders.md ✅Succeeded
hub/powertoys/paste-as-plain-text.md ✅Succeeded
hub/powertoys/peek.md ✅Succeeded
hub/powertoys/powerrename.md ✅Succeeded
hub/powertoys/quick-accent.md ✅Succeeded
hub/powertoys/registry-preview.md ✅Succeeded
hub/powertoys/run.md ✅Succeeded
hub/powertoys/screen-ruler.md ✅Succeeded
hub/powertoys/shortcut-guide.md ✅Succeeded
hub/powertoys/text-extractor.md ✅Succeeded
hub/powertoys/video-conference-mute.md ✅Succeeded

For more details, please refer to the build report.

For any questions, please:

Copy link
Contributor

PRMerger Results

Issue Description
Changed Files This PR contains more than 10 changed files.

@alvinashcraft
Copy link
Contributor

Thanks for the submission, @NathanD-GDS. I'll have to discuss this with the team on our call this week. I try to avoid changing H1s and H2s unless they're incorrect because folks out there may have bookmarked or shared links that jump to those specific sections. We may have cross-links in the docs that also do this.

@NathanD-GDS
Copy link
Contributor Author

Thanks for the submission, @NathanD-GDS. I'll have to discuss this with the team on our call this week. I try to avoid changing H1s and H2s unless they're incorrect because folks out there may have bookmarked or shared links that jump to those specific sections. We may have cross-links in the docs that also do this.

That makes sense, @alvinashcraft . I hadn't considered the possibility of bookmarks. I think I did a cursory look for cross-links but I wasn't exhaustive. Understand if this PR is a no-go.

@htcfreek
Copy link
Contributor

@alvinashcraft , @NathanD-GDS
For the policy page there is another reason to not change them: The header of the policies is the policy name.

@alvinashcraft
Copy link
Contributor

alvinashcraft commented Jan 28, 2024 via email

@alvinashcraft
Copy link
Contributor

Good point, @htcfreek.

@NathanD-GDS I don't want to discard the PR because I think there are some good changes here. Let's wait until several other PRs merge with the next release in a few days and then do the following:

  • Merge the latest changes from other PRs to your branch and resolve any conflicts
  • Exclude the changes to the Group Policy page because the headers need to match the policy names
  • Add anchor tags to the updated header text to preserve the original header links. Here's an example:

## <a id="anchortext">Header text</a>

Let me know what you think. I know it adds a bit of work to implement the last suggestion.

@Jay-o-Way
Copy link
Contributor

I too appreciate the effort. Few valid comments up above here. After a while, there's no shame in starting over with a fresh branch.
(speaking from experience:)

@crutkas
Copy link
Collaborator

crutkas commented Feb 10, 2024

looking at aka links that i control, here are the two i spotted with anchors. These would need to have backup anchors

https://learn.microsoft.com/windows/powertoys/keyboard-manager#keys-that-cannot-be-remapped
https://learn.microsoft.com/windows/powertoys/mouse-utilities#mouse-jump

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.

None yet

5 participants