summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorpsakievich <psakievich@gmail.com>2022-08-04 20:01:03 -0600
committerGitHub <noreply@github.com>2022-08-05 02:01:03 +0000
commitddc373b4e1cc7bfe60dbe77ec8760d61189f5189 (patch)
treeaaca4bcdd33a287aa380b29b103b29f11eafc369 /lib
parent465fa7a5f6ac89fa936e08d70038cf6268b5ba05 (diff)
downloadspack-ddc373b4e1cc7bfe60dbe77ec8760d61189f5189.tar.gz
spack-ddc373b4e1cc7bfe60dbe77ec8760d61189f5189.tar.bz2
spack-ddc373b4e1cc7bfe60dbe77ec8760d61189f5189.tar.xz
spack-ddc373b4e1cc7bfe60dbe77ec8760d61189f5189.zip
Fix doc format for code blocks: GitRef versions (#31937)
Rendering was not pretty using `console` from #31914
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/docs/basic_usage.rst4
1 files 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