-
Notifications
You must be signed in to change notification settings - Fork 8
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
Conversation
🚀 Deployed on https://preview-77--hedgehog-docs.netlify.app |
There was a problem hiding this 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”?
The commit message is because I was rushing, I will change it. |
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:
|
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 |
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? |
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. |
I'm still in favour of the footnote (or inline comment) in that case 😅. |
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. |
Ooooh so that's what you were trying to do! That's cool, now we just need to understand how to make it work 🙂 |
Try adding a blank line between the YAML snippet and the annotation, just in case? |
We may be missing this: https://github.com/pawamoy/mkdocs-pygments ? |
It was the blank line. Had to step away will update when back.
Logan Blyth
…On Fri, Mar 21, 2025 at 11:31 AM Pau Capdevila ***@***.***> wrote:
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.png (view on web)
<https://github.com/user-attachments/assets/d5dc71e4-57a7-4af1-b814-caadd38ff0cf>
We may be missing this: https://github.com/pawamoy/mkdocs-pygments ?
—
Reply to this email directly, view it on GitHub
<#77 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABXI6A54RWTWYNYFQJG5JL2VQWGDAVCNFSM6AAAAABZL3QKUOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONBTG4ZTCMRSGU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
[image: pau-hedgehog]*pau-hedgehog* left a comment (githedgehog/docs#77)
<#77 (comment)>
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.png (view on web)
<https://github.com/user-attachments/assets/d5dc71e4-57a7-4af1-b814-caadd38ff0cf>
We may be missing this: https://github.com/pawamoy/mkdocs-pygments ?
—
Reply to this email directly, view it on GitHub
<#77 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABXI6A54RWTWYNYFQJG5JL2VQWGDAVCNFSM6AAAAABZL3QKUOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONBTG4ZTCMRSGU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
8cb6480
to
732758c
Compare
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. |
There was a problem hiding this 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.
4486742
to
0695127
Compare
@qmonnet do you want to have another look and merge as you were reviewing it before? |
There was a problem hiding this 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
Except that I can't bypass the new workflow 🙂 |
My bad - it was just a matter of marking the comments as “resolved”. @mrbojangles3 would you mind rebasing on top of |
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>
2632a7d
to
74bcc96
Compare
Signed-off-by: Logan Blyth <logan@githedgehog.com>
74bcc96
to
524cc52
Compare
also experiment with adding line numbers for listings