Skip to content

Commit

Permalink
Fix standalone assets links.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcamiel committed Nov 15, 2024
1 parent 2a80312 commit db21e5a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions sites/generate/build_jekyll_md.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ def convert_to_jekyll(
) -> str:
text = path.read_text()

# Replace links to standalone docs to gzip assets.
text = re.sub("/docs/standalone/(.+)", r"https://hurl.dev/assets/docs/\1.gz", text)

md_raw = parse_markdown(text)
md_escaped = MarkdownDoc()

Expand Down
4 changes: 2 additions & 2 deletions sites/hurl.dev/_docs/capturing-response.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ GET https://example.org/home
# Capture the identifier from the dom node <div id="pet0">5646eaf23</div
HTTP 200
[Captures]
ped-id: xpath "normalize-space(//div[@id='pet0'])"
pet-id: xpath "normalize-space(//div[@id='pet0'])"
# Open the captured page.
GET https://example.org/home/pets/{{pet-id}}
Expand Down Expand Up @@ -222,7 +222,7 @@ XPath expression can also be evaluated against part of the body with a [`xpath`
GET https://example.org/home_cn
HTTP 200
[Captures]
ped-id: bytes decode "gb2312" xpath "normalize-space(//div[@id='pet0'])"
pet-id: bytes decode "gb2312" xpath "normalize-space(//div[@id='pet0'])"
```


Expand Down
6 changes: 3 additions & 3 deletions sites/hurl.dev/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,6 @@ HTTP 200
[GitHub]: https://github.com/Orange-OpenSource/hurl
[libcurl]: https://curl.se/libcurl/
[star Hurl on GitHub]: https://github.com/Orange-OpenSource/hurl/stargazers
[HTML]: /docs/standalone/hurl-5.0.1.html
[PDF]: /docs/standalone/hurl-5.0.1.pdf
[Markdown]: {% link _docs/standalone/hurl-5.0.1.md %}
[HTML]: https://hurl.dev/assets/docs/hurl-5.0.1.html.gz
[PDF]: https://hurl.dev/assets/docs/hurl-5.0.1.pdf.gz
[Markdown]: https://hurl.dev/assets/docs/hurl-5.0.1.md.gz

0 comments on commit db21e5a

Please sign in to comment.