doc: switch shell session code blocks to `console` type.

[?]
Apr 5, 2021, 4:07 PM
L4JYZ7BMT2QEUBVOWSNERK7N5GDSVWYXENMWEOGL63ASAHXBDYOQC

Dependencies

  • [2] DWMH6NFB docs: mention foreman under hacking
  • [3] 5DXGOH6Q statsd: add a chance to set hostname and port in hydra.conf
  • [4] 4IVC7COB manual: document working on docs
  • [5] 3JXCTKEC Add markdown files for documentation
  • [6] BZQQZDPL doc: document how to run tests
  • [7] VIJBYUAV Add the project name to declarative inputs

Change contents

  • replacement in doc/manual/src/hacking.md at line 6
    [3.6924][3.6924:6988]()
    $ git clone git://github.com/NixOS/hydra.git
    $ cd hydra
    [3.6924]
    [3.6988]
    ```console
    $ git clone git://github.com/NixOS/hydra.git
    $ cd hydra
    ```
  • replacement in doc/manual/src/hacking.md at line 14
    [3.7226][3.7226:7242]()
    $ nix-shell
    [3.7024]
    [3.7242]
    ```console
    $ nix-shell
    ```
  • replacement in doc/manual/src/hacking.md at line 20
    [3.7280][3.7280:7363]()
    [nix-shell]$ ./bootstrap
    [nix-shell]$ configurePhase
    [nix-shell]$ make
    [3.7280]
    [3.7363]
    ```console
    [nix-shell]$ ./bootstrap
    [nix-shell]$ configurePhase
    [nix-shell]$ make
    ```
  • replacement in doc/manual/src/hacking.md at line 29
    [2.214][2.214:234]()
    $ foreman start
    [2.214]
    [2.234]
    ```console
    $ foreman start
    ```
  • replacement in doc/manual/src/hacking.md at line 35
    [3.7430][3.7430:7462]()
    $ ./src/script/hydra-server
    [3.7430]
    [3.0]
    ```console
    $ ./src/script/hydra-server
    ```
  • replacement in doc/manual/src/hacking.md at line 41
    [3.53][3.53:374]()
    [nix-shell]$ make check
    [nix-shell]$ # to run as many tests as you have cores:
    [nix-shell]$ make check YATH_JOB_COUNT=$NIX_BUILD_CORES
    [nix-shell]$ # or run yath directly:
    [nix-shell]$ yath test
    [nix-shell]$ # to run as many tests as you have cores:
    [nix-shell]$ yath test -j $NIX_BUILD_CORES
    [3.53]
    [3.374]
    ```console
    [nix-shell]$ make check
    [nix-shell]$ # to run as many tests as you have cores:
    [nix-shell]$ make check YATH_JOB_COUNT=$NIX_BUILD_CORES
    [nix-shell]$ # or run yath directly:
    [nix-shell]$ yath test
    [nix-shell]$ # to run as many tests as you have cores:
    [nix-shell]$ yath test -j $NIX_BUILD_CORES
    ```
  • replacement in doc/manual/src/hacking.md at line 69
    [2.358][2.358:408]()
    $ nix-build release.nix -A build.x86_64-linux
    [2.358]
    ```console
    $ nix-build release.nix -A build.x86_64-linux
    ```
  • replacement in doc/manual/src/installation.md at line 79
    [3.10324][3.10324:10385]()
    createuser -S -D -R -P hydra
    createdb -O hydra hydra
    [3.10324]
    [3.10385]
    ```console
    createuser -S -D -R -P hydra
    createdb -O hydra hydra
    ```
  • replacement in doc/manual/src/installation.md at line 91
    [3.10723][3.10723:10841]()
    export HYDRA_DBI="dbi:Pg:dbname=hydra;host=dbserver.example.org;user=hydra;"
    export HYDRA_DATA=/var/lib/hydra
    [3.10723]
    [3.10841]
    ```console
    export HYDRA_DBI="dbi:Pg:dbname=hydra;host=dbserver.example.org;user=hydra;"
    export HYDRA_DATA=/var/lib/hydra
    ```
  • replacement in doc/manual/src/installation.md at line 98
    [3.10915][3.10915:10963]()
    dbserver.example.org:*:hydra:hydra:password
    [3.10915]
    [3.10963]
    ```
    dbserver.example.org:*:hydra:hydra:password
    ```
  • replacement in doc/manual/src/installation.md at line 108
    [3.11166][3.11166:11181]()
    hydra-init
    [3.11166]
    [3.11181]
    ```console
    hydra-init
    ```
  • replacement in doc/manual/src/installation.md at line 115
    [3.11310][3.11310:11445]()
    $ hydra-create-user alice --full-name 'Alice Q. User' \
    --email-address 'alice@example.org' --password foobar --role admin
    [3.11310]
    [3.11445]
    ```console
    $ hydra-create-user alice --full-name 'Alice Q. User' \
    --email-address 'alice@example.org' --password foobar --role admin
    ```
  • replacement in doc/manual/src/installation.md at line 128
    [3.11661][3.11661:11676]()
    hydra-init
    [3.11661]
    [3.11676]
    ```console
    hydra-init
    ```
  • replacement in doc/manual/src/installation.md at line 137
    [3.11751][3.11751:11768]()
    hydra-server
    [3.11751]
    [3.11768]
    ```console
    hydra-server
    ```
  • replacement in doc/manual/src/installation.md at line 175
    [3.12891][3.12891:12943]()
    using_frontend_proxy 1
    base_uri example.com
    [3.12891]
    [3.12943]
    ```
    using_frontend_proxy 1
    base_uri example.com
    ```
  • replacement in doc/manual/src/projects.md at line 223
    [3.32657][3.32657:32696]()
    $ nix-build release.nix -A tarball
    [3.32657]
    [3.32696]
    ```console
    $ nix-build release.nix -A tarball
    ```
  • replacement in doc/manual/src/projects.md at line 235
    [3.33015][3.33015:33063]()
    $ nix-build -I ~/src release.nix -A tarball
    [3.33015]
    [3.33063]
    ```console
    $ nix-build -I ~/src release.nix -A tarball
    ```
  • replacement in doc/manual/src/projects.md at line 241
    [3.33113][3.33113:33159]()
    $ nix-build -I ~/src release.nix -A build
    [3.33113]
    [3.33159]
    ```console
    $ nix-build -I ~/src release.nix -A build
    ```