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

Ansible/YAML docs are missing syntax highlighting #2162

Open
safeaim opened this issue Feb 20, 2024 · 2 comments
Open

Ansible/YAML docs are missing syntax highlighting #2162

safeaim opened this issue Feb 20, 2024 · 2 comments
Labels

Comments

@safeaim
Copy link

safeaim commented Feb 20, 2024

Bug report

OS information

Tested out on Firefox and Chrome, on both Windows and Mac.

Steps to reproduce

Open Ansible or Kubernetes related documentation that have example code. There is no syntax highlighting.

Possible fix

From what I can see PrismJS supports YAML, but I guess the reason is that there is no node['data-language'] set in the in clean_html filters for Ansible and Kubernetes.

I guess it might be the same for other languages that use YAML syntax.

@safeaim safeaim added the bug label Feb 20, 2024
@safeaim safeaim changed the title Ansible/YAML syntax is missing syntax highlighting Ansible/YAML doccs are missing syntax highlighting Feb 20, 2024
@safeaim safeaim changed the title Ansible/YAML doccs are missing syntax highlighting Ansible/YAML docs are missing syntax highlighting Feb 20, 2024
@safeaim
Copy link
Author

safeaim commented Feb 21, 2024

I'd love to contribute to this myself, however I need a little help.

Is it possible to generate docs to test a edited filter without having to scrape the website again and again for each document generation? Ie has there been implemented any sort of local caching?

@safeaim
Copy link
Author

safeaim commented Feb 22, 2024

Hum.. It looks like some ansible doc do have syntax highlighting. Like this one:
https://devdocs.io/ansible/user_guide/playbooks_debugger

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant