From ddc373b4e1cc7bfe60dbe77ec8760d61189f5189 Mon Sep 17 00:00:00 2001 From: psakievich Date: Thu, 4 Aug 2022 20:01:03 -0600 Subject: Fix doc format for code blocks: GitRef versions (#31937) Rendering was not pretty using `console` from #31914 --- lib/spack/docs/basic_usage.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/spack/docs/basic_usage.rst b/lib/spack/docs/basic_usage.rst index 184d7feca6..cc1e34912f 100644 --- a/lib/spack/docs/basic_usage.rst +++ b/lib/spack/docs/basic_usage.rst @@ -1115,7 +1115,7 @@ may be specified instead of a numerical version i.e. branches, tags and commits. Spack will stage and build based off the ``git`` reference provided. Acceptable syntaxes for this are: -.. code-block:: console +.. code-block:: sh # branches and tags foo@git.develop # use the develop branch @@ -1132,7 +1132,7 @@ version for all version comparisons in the package logic (e.g. ``depends_on('foo The associated version can be assigned with ``[git ref]=[version]`` syntax, with the caveat that the specified version is known to Spack from either the package definition, or in the configuration preferences (i.e. ``packages.yaml``). -.. code-block:: console +.. code-block:: sh foo@git.my_ref=3.2 # use the my_ref tag or branch, but treat it as version 3.2 for version comparisons foo@git.abcdef1234abcdef1234abcdef1234abcdef1234=develop # use the given commit, but treat it as develop for version comparisons -- cgit v1.2.3-70-g09d2