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
Docs code-blocks of task/playbook output should not get err
class
#50040
Comments
Files identified in the description: If these files are inaccurate, please update the |
There are a few more places where the docs have
|
https://docs.ansible.com/ansible/devel/plugins/lookup.html: mixes Ansible playbook with Ansible output in one code block, which the lexer chosen (yaml+jinja2?) cannot handle https://docs.ansible.com/ansible/devel/plugins/inventory.html: I don't know what it is that is lexed here, but it's definitely not YAML (i.e. wrong lexer) or Ansible output; maybe disable lexing here? https://docs.ansible.com/ansible/devel/plugins/lookup/config.html: looks like there is something wrong with yaml+jinja2 lexing; the source looks fine to me https://docs.ansible.com/ansible/devel/reference_appendices/YAMLSyntax.html: a problem with the YAML lexer ( https://docs.ansible.com/ansible/devel/user_guide/playbooks_filters.html:
https://docs.ansible.com/ansible/devel/user_guide/windows_usage.html: example contains invalid YAML (that's the point of the example), which the YAML lexer doesn't like; might be fine to leave this as-is? https://docs.ansible.com/ansible/devel/user_guide/playbooks_async.html: problem with yaml+jinja2 lexing (looks a bit like this is the YAML lexer, not the yaml+jinja2 one?) https://docs.ansible.com/ansible/devel/dev_guide/style_guide/index.html: maybe wrong lexer used? https://docs.ansible.com/ansible/devel/dev_guide/developing_modules_general.html: looks like the yaml+jinja2 lexer is used for Python code https://docs.ansible.com/ansible/devel/scenario_guides/guide_scaleway.html: there's a mixture between shell input and Ansible output, probably lexed with yaml+jinja2 lexer. Probably should be split into two code blocks with https://docs.ansible.com/ansible/devel/modules/docker_swarm_service_module.html: Jinja2/Django lexer apparently cannot handle https://docs.ansible.com/ansible/devel/modules/zabbix_map_module.html: Jinja2/Django lexer apparently cannot handle https://docs.ansible.com/ansible/devel/modules/telnet_module.html: YAML lexer apparently cannot handle the double quoted string https://docs.ansible.com/ansible/devel/user_guide/become.html: @acozine what is wrong here with the version your dev build produces? |
@samccann can you re-open this one? There are some thing which still require fixing (unrelated to the Ansible output lexer); I'll try to work on this later this week or on the weekend. |
Sorry about that...reopening |
@felixfontein I don't know what the issue with |
SUMMARY
The red highlighting/boxes around the commas in the second code-block under https://docs.ansible.com/ansible/devel/user_guide/become.html#administrative-rights are
err
column spans. The source does not specify a language for pygments, so the code-block is being read asYAML+Jinja
per https://github.com/ansible/ansible/blob/devel/docs/docsite/rst/conf.py#L111.We should be able to highlight Ansible task output without
err
highlighting.I'm not sure at this point how difficult the fix would be. Maybe we can just choose a different lexer for those code blocks. Or maybe we need a lexer (Pygments highlighter) for Ansible output.
Available lexers list: http://pygments.org/docs/lexers/
ISSUE TYPE
COMPONENT NAME
docs.ansible.com
ANSIBLE VERSION
N/A
CONFIGURATION
N/A
OS / ENVIRONMENT
N/A
The text was updated successfully, but these errors were encountered: