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

Annotate yaml configs with comments beside the yaml #367

Open
1 of 3 tasks
q0rban opened this issue Sep 6, 2023 · 2 comments · May be fixed by #372
Open
1 of 3 tasks

Annotate yaml configs with comments beside the yaml #367

q0rban opened this issue Sep 6, 2023 · 2 comments · May be fixed by #372

Comments

@q0rban
Copy link
Contributor

q0rban commented Sep 6, 2023

GitHub docs uses a yaml annotation formatter that pulls comments off to the side of the yaml and highlights them along with the block of code. This would be great for our config examples!

https://docs.github.com/en/contributing/syntax-and-versioning-for-github-docs/annotating-code-examples#rendered-example

Annotating code examples - GitHub Docs 2023-09-06 11-02-13
  • Figure out what library is being used
  • Determine if this is compatible with our existing syntax highlighter
  • Integrate with our hugo-learn theme if possible, or find another theme that it works with
@q0rban
Copy link
Contributor Author

q0rban commented Sep 6, 2023

@KeyboardCowboy KeyboardCowboy linked a pull request Sep 19, 2023 that will close this issue
@KeyboardCowboy
Copy link
Contributor

Github Docs is a node module and it's loading annotate.js somewhere in the dependency chain from its package.js file. I don't think that will play very easily with this theme since it's not a node module, but maybe I'm a little out of my tech depth.

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 a pull request may close this issue.

2 participants