Docs on ansible.builtin.urlencode mangled?

Hi, as it me or is ansible.builtin.urlencode filter – Quote data for use in a URL path or query using UTF-8. — Ansible Community Documentation a bit mangled?

Its neighbour at ansible.builtin.urldecode filter – Decode percent-encoded sequences — Ansible Community Documentation does look OK…

Looks like urldecode is an actual filter provided by Ansible whereas urlencode is just one shadowed by Ansible from the builtin filters from Jinja. There was some work to try and automatically document the shadowed filters that Ansible doesn’t ship but does expose with doc links to the Jinja2 docs and seems like it might need a bit of TLC.

Edit: Looks like it was my PR that was implemented here but with some extra changes on top while I was away doc - Dynamically document jinja builtins by jborean93 · Pull Request #85215 · ansible/ansible · GitHub.

1 Like