diff --git a/doc/_static/js/custom.js b/doc/_static/js/custom.js index 715dee080..5724d4965 100644 --- a/doc/_static/js/custom.js +++ b/doc/_static/js/custom.js @@ -38,10 +38,12 @@ $(document).ready(function () { $(this).find(".copy-message").text("Copied!"); }); + // select terminal containers, but only the console and ipython ones const terminal_containers = [ - ...document.querySelectorAll("div[class*=notranslate]"), + ...document.querySelectorAll("div.highlight-console, div.ipython"), ]; + // add the prompt to the beginning of each line (console and ipython only) terminal_containers.map((parent) => { const pre = parent.querySelector(".highlight pre"); const processed_pre = pre.innerHTML.split("\n").filter((code_span) => { diff --git a/doc/user-guide/jupyter.rst b/doc/user-guide/jupyter.rst index 9f7da165f..206ce1fa6 100644 --- a/doc/user-guide/jupyter.rst +++ b/doc/user-guide/jupyter.rst @@ -241,7 +241,8 @@ environment variable. For example, to load a ``pipeline.serve.yaml``: .. code-block:: console - export ENTRY_POINT=pipeline.serve.yaml && jupyter lab + export ENTRY_POINT=pipeline.serve.yaml + jupyter lab Note that ``ENTRY_POINT`` must be a file name and not a path. When you start