doc: organize chapters into parts, and reduce toc depth

Reorganize the chapters into parts and reduce the TOC depth to make the
TOC useful again. The top-level TOC is very brief, but that is fine
because every part will have its own TOC.

Section titles of languages/frameworks are also simplified to just
the name of the language/framework.

+41 -29
doc/contributing.xml doc/contributing-to-documentation.xml
+1 -1
doc/doc-support/parameters.xml
··· 8 <xsl:param name="html.script" select="'./highlightjs/highlight.pack.js ./highlightjs/loader.js'" /> 9 <xsl:param name="xref.with.number.and.title" select="1" /> 10 <xsl:param name="use.id.as.filename" select="1" /> 11 - <xsl:param name="toc.section.depth" select="3" /> 12 <xsl:param name="admon.style" select="''" /> 13 <xsl:param name="callout.graphics.extension" select="'.svg'" /> 14 </xsl:stylesheet>
··· 8 <xsl:param name="html.script" select="'./highlightjs/highlight.pack.js ./highlightjs/loader.js'" /> 9 <xsl:param name="xref.with.number.and.title" select="1" /> 10 <xsl:param name="use.id.as.filename" select="1" /> 11 + <xsl:param name="toc.section.depth" select="0" /> 12 <xsl:param name="admon.style" select="''" /> 13 <xsl:param name="callout.graphics.extension" select="'.svg'" /> 14 </xsl:stylesheet>
+1 -1
doc/languages-frameworks/emscripten.section.md
··· 1 - # User's Guide to Emscripten in Nixpkgs 2 3 [Emscripten](https://github.com/kripken/emscripten): An LLVM-to-JavaScript Compiler 4
··· 1 + # Emscripten 2 3 [Emscripten](https://github.com/kripken/emscripten): An LLVM-to-JavaScript Compiler 4
+1 -1
doc/languages-frameworks/haskell.section.md
··· 3 author: Peter Simons 4 date: 2015-06-01 5 --- 6 - # User's Guide to the Haskell Infrastructure 7 8 9 ## How to install Haskell packages
··· 3 author: Peter Simons 4 date: 2015-06-01 5 --- 6 + # Haskell 7 8 9 ## How to install Haskell packages
+1 -1
doc/languages-frameworks/idris.section.md
··· 1 - # Idris packages 2 3 ## Installing Idris 4
··· 1 + # Idris 2 3 ## Installing Idris 4
+1 -1
doc/languages-frameworks/index.xml
··· 1 <chapter xmlns="http://docbook.org/ns/docbook" 2 xmlns:xi="http://www.w3.org/2001/XInclude" 3 xml:id="chap-language-support"> 4 - <title>Support for specific programming languages and frameworks</title> 5 <para> 6 The <link linkend="chap-stdenv">standard build environment</link> makes it easy to build typical Autotools-based packages with very little code. Any other kind of package can be accomodated by overriding the appropriate phases of <literal>stdenv</literal>. However, there are specialised functions in Nixpkgs to easily build packages for other programming languages, such as Perl or Haskell. These are described in this chapter. 7 </para>
··· 1 <chapter xmlns="http://docbook.org/ns/docbook" 2 xmlns:xi="http://www.w3.org/2001/XInclude" 3 xml:id="chap-language-support"> 4 + <title>Languages and frameworks</title> 5 <para> 6 The <link linkend="chap-stdenv">standard build environment</link> makes it easy to build typical Autotools-based packages with very little code. Any other kind of package can be accomodated by overriding the appropriate phases of <literal>stdenv</literal>. However, there are specialised functions in Nixpkgs to easily build packages for other programming languages, such as Perl or Haskell. These are described in this chapter. 7 </para>
+2 -2
doc/languages-frameworks/node.section.md
··· 1 - Node.js packages 2 - ================ 3 The `pkgs/development/node-packages` folder contains a generated collection of 4 [NPM packages](https://npmjs.com/) that can be installed with the Nix package 5 manager.
··· 1 + Node.js 2 + ======= 3 The `pkgs/development/node-packages` folder contains a generated collection of 4 [NPM packages](https://npmjs.com/) that can be installed with the Nix package 5 manager.
+2 -2
doc/languages-frameworks/r.section.md
··· 1 - R packages 2 - ========== 3 4 ## Installation 5
··· 1 + R 2 + = 3 4 ## Installation 5
+1 -1
doc/languages-frameworks/rust.section.md
··· 4 date: 2017-03-05 5 --- 6 7 - # User's Guide to the Rust Infrastructure 8 9 To install the rust compiler and cargo put 10
··· 4 date: 2017-03-05 5 --- 6 7 + # Rust 8 9 To install the rust compiler and cargo put 10
+1 -1
doc/languages-frameworks/vim.section.md
··· 3 author: Marc Weber 4 date: 2016-06-25 5 --- 6 - # User's Guide to Vim Plugins/Addons/Bundles/Scripts in Nixpkgs 7 8 Both Neovim and Vim can be configured to include your favorite plugins 9 and additional libraries.
··· 3 author: Marc Weber 4 date: 2016-06-25 5 --- 6 + # Vim 7 8 Both Neovim and Vim can be configured to include your favorite plugins 9 and additional libraries.
+28 -16
doc/manual.xml
··· 6 </subtitle> 7 </info> 8 <xi:include href="introduction.chapter.xml" /> 9 - <xi:include href="quick-start.xml" /> 10 - <xi:include href="package-specific-user-notes.xml" /> 11 - <xi:include href="stdenv.xml" /> 12 - <xi:include href="multiple-output.xml" /> 13 - <xi:include href="cross-compilation.xml" /> 14 - <xi:include href="configuration.xml" /> 15 - <xi:include href="functions.xml" /> 16 - <xi:include href="meta.xml" /> 17 - <xi:include href="languages-frameworks/index.xml" /> 18 - <xi:include href="platform-notes.xml" /> 19 - <xi:include href="package-notes.xml" /> 20 - <xi:include href="overlays.xml" /> 21 - <xi:include href="coding-conventions.xml" /> 22 - <xi:include href="submitting-changes.xml" /> 23 - <xi:include href="reviewing-contributions.xml" /> 24 - <xi:include href="contributing.xml" /> 25 </book>
··· 6 </subtitle> 7 </info> 8 <xi:include href="introduction.chapter.xml" /> 9 + <part> 10 + <title>Using Nixpkgs</title> 11 + <xi:include href="configuration.xml" /> 12 + <xi:include href="overlays.xml" /> 13 + <xi:include href="functions.xml" /> 14 + </part> 15 + <part> 16 + <title>Standard environment</title> 17 + <xi:include href="stdenv.xml" /> 18 + <xi:include href="meta.xml" /> 19 + <xi:include href="multiple-output.xml" /> 20 + <xi:include href="cross-compilation.xml" /> 21 + <xi:include href="platform-notes.xml" /> 22 + </part> 23 + <part> 24 + <title>Languages, frameworks and packages</title> 25 + <xi:include href="languages-frameworks/index.xml" /> 26 + <xi:include href="package-specific-user-notes.xml" /> 27 + <xi:include href="package-notes.xml" /> 28 + </part> 29 + <part> 30 + <title>Contributing to Nixpkgs</title> 31 + <xi:include href="quick-start.xml" /> 32 + <xi:include href="coding-conventions.xml" /> 33 + <xi:include href="submitting-changes.xml" /> 34 + <xi:include href="reviewing-contributions.xml" /> 35 + <xi:include href="contributing-to-documentation.xml" /> 36 + </part> 37 </book>
+1 -1
doc/platform-notes.xml
··· 1 <chapter xmlns="http://docbook.org/ns/docbook" 2 xmlns:xlink="http://www.w3.org/1999/xlink" 3 - xml:id="chap-platform-nodes"> 4 <title>Platform Notes</title> 5 <section xml:id="sec-darwin"> 6 <title>Darwin (macOS)</title>
··· 1 <chapter xmlns="http://docbook.org/ns/docbook" 2 xmlns:xlink="http://www.w3.org/1999/xlink" 3 + xml:id="chap-platform-notes"> 4 <title>Platform Notes</title> 5 <section xml:id="sec-darwin"> 6 <title>Darwin (macOS)</title>
+1 -1
doc/reviewing-contributions.xml
··· 2 xmlns:xlink="http://www.w3.org/1999/xlink" 3 xmlns:xi="http://www.w3.org/2001/XInclude" 4 version="5.0" 5 - xml:id="sec-reviewing-contributions"> 6 <title>Reviewing contributions</title> 7 <warning> 8 <para>
··· 2 xmlns:xlink="http://www.w3.org/1999/xlink" 3 xmlns:xi="http://www.w3.org/2001/XInclude" 4 version="5.0" 5 + xml:id="chap-reviewing-contributions"> 6 <title>Reviewing contributions</title> 7 <warning> 8 <para>