Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nixos/manual: small formatting improvements #105969

Closed
wants to merge 1 commit into from

Conversation

ivankovnatsky
Copy link
Contributor

@ivankovnatsky ivankovnatsky commented Dec 5, 2020

Motivation for this change

mostly indentation fixes in ``` code blocks.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@ivankovnatsky
Copy link
Contributor Author

nixpkgs on  patch-7 [!]nix-build nixos/release.nix -A manual.x86_64-linux                                                                                                                                                                                       <<<
these derivations will be built:
  /nix/store/xqmq3ajrdqycsnp8p5fzk39aw4lkwmjv-generated-docbook.drv
  /nix/store/sjy1kb3lhfhij4hnyc6n24r5apdjlssz-nixos-manual-combined.drv
  /nix/store/595ynw127rfaz4fvvijqh7rzlh10g43i-manual-olinkdb.drv
  /nix/store/6r64y841xj1wgy0hpp29vf1hls96dg4r-nixos-manual-html.drv
building '/nix/store/xqmq3ajrdqycsnp8p5fzk39aw4lkwmjv-generated-docbook.drv'...
building '/nix/store/sjy1kb3lhfhij4hnyc6n24r5apdjlssz-nixos-manual-combined.drv'...

manual-combined.xml validates

man-pages-combined.xml validates
building '/nix/store/595ynw127rfaz4fvvijqh7rzlh10g43i-manual-olinkdb.drv'...
Writing /nix/store/l49yx34lzqxvjw6fd69vrbsi880zg056-manual-olinkdb/manual.db for book(book-nixos-manual)
building '/nix/store/6r64y841xj1wgy0hpp29vf1hls96dg4r-nixos-manual-html.drv'...
Writing options.html for appendix(ch-options)
Writing release-notes.html for appendix(ch-release-notes)
Writing index.html for book(book-nixos-manual)
/nix/store/vil7fsfxizmfnkmbn9ximi7svk18zr9j-nixos-manual-html

nixpkgs on  patch-7 took 36s

@@ -93,23 +94,23 @@ services.httpd.extraModules = [
</para>
<para>
<screen>
<prompt>$ </prompt> svn create REPO_NAME
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The spaces are supposed to be in prompt so that it is not copied.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think it won't let copy even now:
image

(correct me if i didn't understood you correctly)

but i would feel much help if i can copy any code formatted block for re-use.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the picture, you can see that the space before the command is selected. But the space is not a part of the command so it should not be copied.

To achieve that, the space needs to be inside the prompt:

<prompt>$ </prompt>fooo

instead of outside it like you have here:

<prompt>$</prompt> fooo

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

got it, corrected.

@stale
Copy link

stale bot commented Jun 4, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants