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

add example wiring diagram #77

Merged
merged 3 commits into from
Mar 26, 2025
Merged

Conversation

mrbojangles3
Copy link
Contributor

also experiment with adding line numbers for listings

@mrbojangles3 mrbojangles3 requested a review from a team as a code owner March 19, 2025 20:57
Copy link

github-actions bot commented Mar 19, 2025

🚀 Deployed on https://preview-77--hedgehog-docs.netlify.app

@github-actions github-actions bot temporarily deployed to pull request March 19, 2025 20:58 Inactive
Copy link
Member

@qmonnet qmonnet left a comment

Choose a reason for hiding this comment

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

Please find some small suggestions below.

Why is your commit title “initial commit”?

@github-actions github-actions bot temporarily deployed to pull request March 20, 2025 13:12 Inactive
@mrbojangles3
Copy link
Contributor Author

The commit message is because I was rushing, I will change it.

@github-actions github-actions bot temporarily deployed to pull request March 21, 2025 09:42 Inactive
@pau-hedgehog
Copy link
Contributor

1. Can also use mac: 34:AD:61:00:02:03 is confusing.

You could take the opportunity to refer to the line number instead, now that you are introducing them

I pushed a commit fixing a small typo.

Probably on another PR:

  • We should refer to the hhfab validate to ensure the wiring YAML is correct
  • Not to mention the visual validation you can do with a diagram! ;)
    (mermaid is supported and can be added in the doc)
  • Maybe I'd take the opportunity to clarify how to define custom passwords. fab.yaml instructs you to:
    password hash use openssl passwd -5`

@mrbojangles3
Copy link
Contributor Author

If we are okay with referring to line numbers I am good with switching to them. There is also the option to have the line numbers start at a given number. So we could have a big listing then break it up in sections to talk about it. Thoughts @pau-hedgehog and @qmonnet

@qmonnet
Copy link
Member

qmonnet commented Mar 21, 2025

If we are okay with referring to line numbers I am good with switching to them

I don't know. Is there a way to reference a specific line an turns that ref into a number under the YAML sample, or do you manually reference the line number, and risks the line number getting outdated if someone inserts more lines into the YAML snippet in the future?

@mrbojangles3
Copy link
Contributor Author

It would be a pretty manual process. We would take the example file and have to manual start the line numbers ourselves. Very easy to get out of sync.

@qmonnet
Copy link
Member

qmonnet commented Mar 21, 2025

I'm still in favour of the footnote (or inline comment) in that case 😅.

@mrbojangles3
Copy link
Contributor Author

What do you think of the look on the material for mkdocs webpage - https://squidfunk.github.io/mkdocs-material/reference/code-blocks/#adding-annotations. It doesn't seem like we are getting the same functionality that is shown on the page.

@qmonnet
Copy link
Member

qmonnet commented Mar 21, 2025

Ooooh so that's what you were trying to do! That's cool, now we just need to understand how to make it work 🙂

@qmonnet
Copy link
Member

qmonnet commented Mar 21, 2025

Try adding a blank line between the YAML snippet and the annotation, just in case?

@pau-hedgehog
Copy link
Contributor

What do you think of the look on the material for mkdocs webpage - https://squidfunk.github.io/mkdocs-material/reference/code-blocks/#adding-annotations. It doesn't seem like we are getting the same functionality that is shown on the page.

image

We may be missing this: https://github.com/pawamoy/mkdocs-pygments ?

@mrbojangles3
Copy link
Contributor Author

mrbojangles3 commented Mar 21, 2025 via email

@github-actions github-actions bot temporarily deployed to pull request March 21, 2025 19:45 Inactive
@github-actions github-actions bot temporarily deployed to pull request March 24, 2025 20:09 Inactive
@mrbojangles3 mrbojangles3 force-pushed the improve_look_of_yaml_listings branch from 8cb6480 to 732758c Compare March 24, 2025 20:18
@github-actions github-actions bot temporarily deployed to pull request March 24, 2025 20:18 Inactive
@mrbojangles3 mrbojangles3 requested a review from qmonnet March 24, 2025 20:18
@mrbojangles3
Copy link
Contributor Author

Force pushed into a single commit. Kept the help provided by the team in the message. I hope that means y'all still get the credit.

qmonnet
qmonnet previously approved these changes Mar 25, 2025
Copy link
Member

@qmonnet qmonnet left a comment

Choose a reason for hiding this comment

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

Looks good, thank you!
Some additional ramblings below, but not blocking for this PR.

I hope that means y'all still get the credit.

Thanks! Although I don't mind much being mentioned for small suggestions like these, it's more review feedback than actual contributions to the docs contents.

When you squash, though, try keeping all the tags at the end of the commit description (and don't hesitate to reword the description). Assuming I really wanted to credit reviewers for the suggestions, I'd so something like:

install-upgrade: Add example wiring diagram

Provide a sample, annotated wiring diagram to help users create
theirs. Also add line numbering to several YAML snippets, to
make it easier to reference specific lines.

[ Pau: Fixed a typo ]
[ Quentin: Suggested improvements on YAML annotations ]

Signed-off-by: Logan Blyth <logan@githedgehog.com>
Co-authored-by: Quentin Monnet <qmo@qmon.net>
Signed-off-by: Quentin Monnet <qmo@qmon.net>
Signed-off-by: Pau Capdevila <pau@githedgehog.com>

The kernel has strict rules according to which all Co-authored-by: tags (or the kernel equivalents) must come along a Signed-off-by:, but it's probably more than we care for.

@github-actions github-actions bot temporarily deployed to pull request March 25, 2025 13:36 Inactive
@mrbojangles3 mrbojangles3 requested a review from qmonnet March 25, 2025 13:36
qmonnet
qmonnet previously approved these changes Mar 25, 2025
@mrbojangles3 mrbojangles3 force-pushed the improve_look_of_yaml_listings branch from 4486742 to 0695127 Compare March 25, 2025 17:49
@github-actions github-actions bot temporarily deployed to pull request March 25, 2025 17:49 Inactive
@Frostman Frostman self-requested a review March 25, 2025 18:30
@github-actions github-actions bot temporarily deployed to pull request March 25, 2025 19:27 Inactive
@Frostman
Copy link
Member

@qmonnet do you want to have another look and merge as you were reviewing it before?

@github-actions github-actions bot temporarily deployed to pull request March 26, 2025 17:44 Inactive
Copy link
Member

@qmonnet qmonnet left a comment

Choose a reason for hiding this comment

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

Thanks! All good from my side

@qmonnet
Copy link
Member

qmonnet commented Mar 26, 2025

Except that I can't bypass the new workflow 🙂

@qmonnet
Copy link
Member

qmonnet commented Mar 26, 2025

My bad - it was just a matter of marking the comments as “resolved”.

@mrbojangles3 would you mind rebasing on top of master to get rid of that merge commit, please?

mrbojangles3 and others added 2 commits March 26, 2025 14:26
Signed-off-by: Logan Blyth <logan@githedgehog.com>

Update docs/install-upgrade/build-wiring.md

Co-authored-by: Quentin Monnet <qmo@qmon.net>

fix typo in config.md

Signed-off-by: Pau Capdevila <pau@githedgehog.com>
Co-authored-by: Quentin Monnet <qmo@qmon.net>
Signed-off-by: Logan Blyth <logan@githedgehog.com>
@mrbojangles3 mrbojangles3 force-pushed the improve_look_of_yaml_listings branch from 2632a7d to 74bcc96 Compare March 26, 2025 18:26
@github-actions github-actions bot temporarily deployed to pull request March 26, 2025 18:27 Inactive
Signed-off-by: Logan Blyth <logan@githedgehog.com>
@mrbojangles3 mrbojangles3 force-pushed the improve_look_of_yaml_listings branch from 74bcc96 to 524cc52 Compare March 26, 2025 18:32
@github-actions github-actions bot temporarily deployed to pull request March 26, 2025 18:32 Inactive
@mrbojangles3 mrbojangles3 merged commit 140e518 into master Mar 26, 2025
3 of 4 checks passed
@mrbojangles3 mrbojangles3 deleted the improve_look_of_yaml_listings branch March 26, 2025 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants