diff --git a/_ext/ext.py b/_ext/ext.py index c3d7dfc8..46c6260a 100644 --- a/_ext/ext.py +++ b/_ext/ext.py @@ -113,11 +113,11 @@ def on_build_finished(app, exc): if exc is None and app.builder.format == "html": # Unescape at symbol subprocess.run( - "find " + str(app.outdir) + " -type f -not -path '*/\.git/*' -exec sed -i 's/%40/@/g' {} +", + "find " + str(app.outdir) + r" -type f -not -path '*/\.git/*' -exec sed -i 's/%40/@/g' {} +", shell=True) # Mark current page as active subprocess.run( - "find " + str(app.outdir) + " -type f -not -path '*/\.git/*' -exec sed -i 's/" + "find " + str(app.outdir) + r" -type f -not -path '*/\.git/*' -exec sed -i 's/" + '
  • ' + "/" + '
  • ' @@ -125,7 +125,7 @@ def on_build_finished(app, exc): shell=True) # Disable going to submenus on mobile subprocess.run( - "find " + str(app.outdir) + " -type f -not -path '*/\.git/*' -exec sed -i 's/" + "find " + str(app.outdir) + r" -type f -not -path '*/\.git/*' -exec sed -i 's/" + 'id="__toc"' + "/" + 'id="__toc_disabled"'