Commit 5c85172f authored by Romain Casati's avatar Romain Casati

Fix in www generation.

parent b648c642
../../../tests/modules.txt
\ No newline at end of file
../../../tests/data/modules.txt
\ No newline at end of file
......@@ -66,9 +66,9 @@ def galerie(*args):
</div>"""
def url(file, aux):
url = Path("examples") / file
url = str(Path("examples") / file)
domain = 'console' if file.endswith('.py') else 'notebook'
url = "https://{}.basthon.fr/?from={}".format(domain, urllib.parse.quote(url))
url = f"https://{domain}.basthon.fr/?from={urllib.parse.quote(url)}"
if aux is not None:
url += '&aux={}'.format(urllib.parse.quote(aux))
return url
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment