Mercurial > hg > nginx-site
comparison yaml/yaml2xml.py @ 2424:dd3ac7eefeed
Updated docs for the upcoming NGINX Plus release.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Mon, 02 Sep 2019 14:12:20 +0300 |
parents | ae16f480c867 |
children |
comparison
equal
deleted
inserted
replaced
2423:21f1376238b0 | 2424:dd3ac7eefeed |
---|---|
42 | 42 |
43 return t.encode('utf-8').rstrip() | 43 return t.encode('utf-8').rstrip() |
44 | 44 |
45 | 45 |
46 def pretty_endpoint(ep): | 46 def pretty_endpoint(ep): |
47 return ep.replace('/',' ').replace('_',' ') | 47 return ep.replace('/slabs/','slabs').replace('/resolvers/','resolvers').replace('/http/','HTTP ').replace('/stream/','stream ').replace('s/','s').replace('_',' ') |
48 | 48 |
49 | 49 |
50 # human-readable html element id based on path | 50 # human-readable html element id based on path |
51 def path_to_id(path): | 51 def path_to_id(path): |
52 if path == '/': | 52 if path == '/': |