File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -77,6 +77,9 @@ def convert_to_jekyll(
7777) -> str :
7878 text = path .read_text ()
7979
80+ # Replace links to standalone docs to gzip assets.
81+ text = re .sub ("/docs/standalone/(.+)" , r"https://hurl.dev/assets/docs/\1.gz" , text )
82+
8083 md_raw = parse_markdown (text )
8184 md_escaped = MarkdownDoc ()
8285
Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ GET https://example.org/home
194194# Capture the identifier from the dom node <div id="pet0">5646eaf23</div
195195HTTP 200
196196[Captures]
197- ped -id: xpath "normalize-space(//div[@id='pet0'])"
197+ pet -id: xpath "normalize-space(//div[@id='pet0'])"
198198
199199# Open the captured page.
200200GET https://example.org/home/pets/{{pet-id}}
@@ -222,7 +222,7 @@ XPath expression can also be evaluated against part of the body with a [`xpath`
222222GET https://example.org/home_cn
223223HTTP 200
224224[Captures]
225- ped -id: bytes decode "gb2312" xpath "normalize-space(//div[@id='pet0'])"
225+ pet -id: bytes decode "gb2312" xpath "normalize-space(//div[@id='pet0'])"
226226```
227227
228228
Original file line number Diff line number Diff line change @@ -201,6 +201,6 @@ HTTP 200
201201[ GitHub ] : https://github.com/Orange-OpenSource/hurl
202202[ libcurl ] : https://curl.se/libcurl/
203203[ star Hurl on GitHub ] : https://github.com/Orange-OpenSource/hurl/stargazers
204- [ HTML ] : /docs/standalone/ hurl-5.0.1.html
205- [ PDF ] : /docs/standalone/ hurl-5.0.1.pdf
206- [ Markdown] : {% link _ docs/standalone /hurl-5.0.1.md %}
204+ [ HTML ] : https://hurl.dev/assets/docs/ hurl-5.0.1.html.gz
205+ [ PDF ] : https://hurl.dev/assets/docs/ hurl-5.0.1.pdf.gz
206+ [ Markdown ] : https:/ /hurl.dev/assets/docs/hurl -5.0.1.md.gz
You can’t perform that action at this time.
0 commit comments