diff options
author | Florian Pelz <pelzflorian@pelzflorian.de> | 2024-10-31 12:12:41 +0100 |
---|---|---|
committer | Florian Pelz <pelzflorian@pelzflorian.de> | 2024-10-31 17:09:09 +0100 |
commit | 781fd499492235742d09a53200d942e46d009417 (patch) | |
tree | 967ed21efc05f400201e00437fbd6355ac195db7 /doc | |
parent | 6e50b0c56a8cc767bd3acb26638f78c450bde718 (diff) | |
download | guix-781fd499492235742d09a53200d942e46d009417.tar guix-781fd499492235742d09a53200d942e46d009417.tar.gz |
doc: Fix markup.
* doc/contributing.texi (Source Tree Structure, Submitting Patches,
Translating Guix): Write @command instead of @code when invoking guix.
(Submitting Patches): Write @code instead of @command for a field name.
* doc/guix-cookbook.texi (A ``Hello World'' package): Use @xref at the
beginning of a sentence.
(Auto-Login to a Specific TTY): Remove a space before @pxref.
(Basic setup with manifests): Write @ref instead of (@pxref) after ``see''.
Change-Id: I1ced2ebc4062b3a80878a7e0eea8f7a3d4baf7da
Diffstat (limited to 'doc')
-rw-r--r-- | doc/contributing.texi | 17 | ||||
-rw-r--r-- | doc/guix-cookbook.texi | 8 |
2 files changed, 13 insertions, 12 deletions
diff --git a/doc/contributing.texi b/doc/contributing.texi index acdc303be6..11b9f7b40b 100644 --- a/doc/contributing.texi +++ b/doc/contributing.texi @@ -865,7 +865,7 @@ example, the @code{(guix scripts shell)} module exports the This contains supporting code for the importers and updaters (@pxref{Invoking guix import}, and @pxref{Invoking guix refresh}). For example, @code{(guix import pypi)} defines the interface to PyPI, which -is used by the @code{guix import pypi} command. +is used by the @command{guix import pypi} command. @end table The directories we have seen so far all live under @file{guix/}. The @@ -1901,16 +1901,16 @@ Take some time to provide an adequate synopsis and description for the package. @xref{Synopses and Descriptions}, for some guidelines. @item -Run @code{guix lint @var{package}}, where @var{package} is the +Run @command{guix lint @var{package}}, where @var{package} is the name of the new or modified package, and fix any errors it reports (@pxref{Invoking guix lint}). @item -Run @code{guix style @var{package}} to format the new package definition +Run @command{guix style @var{package}} to format the new package definition according to the project's conventions (@pxref{Invoking guix style}). @item -Make sure the package builds on your platform, using @code{guix build +Make sure the package builds on your platform, using @command{guix build @var{package}}. @item @@ -1963,7 +1963,7 @@ adding @code{texlive} as a dependency: because of its extreme size, use @item Check that dependent packages (if applicable) are not affected by the -change; @code{guix refresh --list-dependent @var{package}} will help you +change; @command{guix refresh --list-dependent @var{package}} will help you do that (@pxref{Invoking guix refresh}). @item @@ -2015,7 +2015,7 @@ Please follow our code formatting rules, possibly running When possible, use mirrors in the source URL (@pxref{Invoking guix download}). Use reliable URLs, not generated ones. For instance, GitHub archives are not necessarily identical from one generation to the next, so in this case it's -often better to clone the repository. Don't use the @command{name} field in +often better to clone the repository. Don't use the @code{name} field in the URL: it is not very useful and if the name changes, the URL will probably be wrong. @@ -2024,7 +2024,8 @@ Check if Guix builds (@pxref{Building from Git}) and address the warnings, especially those about use of undefined symbols. @item -Make sure your changes do not break Guix and simulate a @code{guix pull} with: +Make sure your changes do not break Guix and simulate a @command{guix pull} +with: @example guix pull --url=/path/to/your/checkout --profile=/tmp/guix.master @end example @@ -3334,7 +3335,7 @@ Some of the software packaged in Guix also contain translations. We do not host a translation platform for them. If you want to translate a package provided by Guix, you should contact their developers or find the information on their website. As an example, you can find the homepage of the -@code{hello} package by typing @code{guix show hello}. On the ``homepage'' +@code{hello} package by typing @command{guix show hello}. On the ``homepage'' line, you will see @url{https://www.gnu.org/software/hello/} as the homepage. Many GNU and non-GNU packages can be translated on the diff --git a/doc/guix-cookbook.texi b/doc/guix-cookbook.texi index e41d584813..b2c58fe6d2 100644 --- a/doc/guix-cookbook.texi +++ b/doc/guix-cookbook.texi @@ -749,7 +749,7 @@ my-hello 2.10 out We've gone as far as we could without any knowledge of Scheme. Before moving on to more complex packages, now is the right time to brush up on your Scheme -knowledge. @pxref{A Scheme Crash Course} to get up to speed. +knowledge. @xref{A Scheme Crash Course} to get up to speed. @node Setup @subsection Setup @@ -1608,8 +1608,8 @@ reference. @node Auto-Login to a Specific TTY @section Auto-Login to a Specific TTY -While the Guix manual explains auto-login one user to @emph{all} TTYs ( -@pxref{auto-login to TTY,,, guix, GNU Guix Reference Manual}), some +While the Guix manual explains auto-login one user to @emph{all} TTYs +(@pxref{auto-login to TTY,,, guix, GNU Guix Reference Manual}), some might prefer a situation, in which one user is logged into one TTY with the other TTYs either configured to login different users or no one at all. Note that one can auto-login one user to any TTY, but it is @@ -4159,7 +4159,7 @@ It contains the same variables you would get if you ran: guix package --search-paths=prefix --profile=$my_profile" @end example -Once again, see (@pxref{Invoking guix package,,, guix, GNU Guix Reference Manual}) +Once again, see @ref{Invoking guix package,,, guix, GNU Guix Reference Manual} for the command line options. To upgrade a profile, simply install the manifest again: |