Skip to content

Commit db21e5a

Browse files
committed
Fix standalone assets links.
1 parent 2a80312 commit db21e5a

3 files changed

Lines changed: 8 additions & 5 deletions

File tree

sites/generate/build_jekyll_md.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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

sites/hurl.dev/_docs/capturing-response.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ GET https://example.org/home
194194
# Capture the identifier from the dom node <div id="pet0">5646eaf23</div
195195
HTTP 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.
200200
GET 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`
222222
GET https://example.org/home_cn
223223
HTTP 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

sites/hurl.dev/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)