thg / doc /

Filename Size Date modified Message
3.0 KB
3.0 KB
1.9 KB
1.9 KB
2.1 KB
1.9 KB
218 B
TortoiseHg Documentation

To build this documentation you need Sphinx installed.  On Ubuntu this
is the python-sphinx package.   On Windows your best bet is easy_install
or pip.  To build without warnings, you need Sphinx 0.6 or later.

To build PDF files you need LaTeX packages.  On Ubuntu these are
texlive-latex-extra, texlive-fonts-recommended and all of their
dependencies.  On Windows the best choice is MiKTeX.

Once all of the prerequisites are in place, you can use the makefile to
build targets: 'make html htmlhelp latex'.

Once 'latex' is built, you have to cd into that output directory and run
'make all-pdf' to build the actual PDF file.

Once 'htmlhelp' is built, you have to run the actual HTML Help Compiler on a
Windows machine.

On Windows, if you have no make tool you can use build.bat. If the HTML Help 
Compiler and MiKTeX are installed you can directly generate the CHM file 
('build chm') and PDF file ('build pdf').

Hacking the source

Please follow this rules when hacking the doc source files.

- As suggested by Sphinx (see

  Chapter title

  Section title

  Subsection title

  Subsubsection title

- To indicate a key or a combination of keys use :kbd:, for example:


- To indicate a label, button or anything that appears in user interfaces
  use :guilabel:, for example:


- To indicate a menu choice use :menuselection: and -->, for example:

  :menuselection:`File --> Settings...`

- To indicate a file use :file:, for example:


- To indicate a command to enter into command window use :command:, for example:

  :command:`thg log`

- To indicate a text to enter into a text input field in the GUI use ``, for example:


Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.