Chapter 1. Overview

Table of Contents
1.1. Quick Start
1.2. The FreeBSD Documentation Set

Welcome to the FreeBSD Documentation Project (FDP). Quality documentation is crucial to the success of FreeBSD, and we value your contributions very highly.

This document describes how the FDP is organized, how to write and submit documentation, and how to effectively use the available tools.

Everyone is welcome to contribute to the FDP. Willingness to contribute is the only membership requirement.

This primer shows how to:

1.1. Quick Start

Some preparatory steps must be taken before editing the FreeBSD documentation. First, subscribe to the FreeBSD documentation project mailing list. Some team members also interact on the #bsddocs IRC channel on EFnet. These people can help with questions or problems involving the documentation.

  1. Install the textproc/docproj meta-package and Subversion. This meta-package installs all of the software needed to edit and build FreeBSD documentation. The Subversion package is needed to obtain a working copy of the documentation and generate patches with.

    # pkg install docproj subversion
  2. Optional: to generate PDF documentation, install the textproc/fop package as it is not installed by default by textproc/docproj.

    # pkg install fop
  3. Install a local working copy of the documentation from the FreeBSD repository in ~/doc (see Chapter 3, The Working Copy).

    % svn checkout https://svn.FreeBSD.org/doc/head ~/doc
  4. Configure the text editor:

    • Word wrap set to 70 characters.

    • Tab stops set to 2.

    • Replace each group of 8 leading spaces with a single tab.

    Specific editor configurations are listed in Chapter 15, Editor Configuration.

  5. Update the local working copy:

    % svn up ~/doc
  6. Edit the documentation files that require changes. If a file needs major changes, consult the mailing list for input.

    References to tag and entity usage can be found in Chapter 8, XHTML Markup and Chapter 9, DocBook Markup.

  7. After editing, check for problems by running:

    % igor -R filename.xml | less -RS

    Review the output and edit the file to fix any problems shown, then rerun the command to find any remaining problems. Repeat until all of the errors are resolved.

  8. Always build-test changes before submitting them. Running make in the top-level directory of the documentation being edited will generate that documentation in split HTML format. For example, to build the English version of the Handbook in HTML, run make in the en_US.ISO8859-1/books/handbook/ directory.

  9. When changes are complete and tested, generate a diff file:

    % cd ~/doc
    % svn diff > bsdinstall.diff.txt

    Give the diff file a descriptive name. In the example above, changes have been made to the bsdinstall portion of the Handbook.

  10. Submit the diff file using the web-based Problem Report system. If using the web form, enter a Summary of [patch] short description of problem. Select the Component Documentation. In the Description field, enter a short description of the changes and any important details about them. Use the [ Add an attachment ] button to attach the diff file. Finally, use the [ Submit Bug ] button to submit your diff to the problem report system.

All FreeBSD documents are available for download at https://download.freebsd.org/ftp/doc/

Questions that are not answered by the documentation may be sent to <freebsd-questions@FreeBSD.org>.
Send questions about this document to <freebsd-doc@FreeBSD.org>.