-
Install these packages. The
docprojmeta-port installs all the applications required to do useful work with the FreeBSD documentation.# pkg install docproj -
Install a local working copy of the documentation from the FreeBSD repository in ~/doc (see The Working Copy ).
% git clone https://git.FreeBSD.org/doc.git ~/doc -
Edit the documentation files that require changes. If a file needs major changes, consult the mailing list for input.
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.
-
Always build and review the changes before submitting them. Running
makein thedocumentationorwebsitesubdirectories will generate the documentation in HTML format.% makeTo reduce compile time, only one language can be compiled:
% make DOC_LANG=enThe build output is stored in ~/doc/documentation/public/en/articles/ and ~/doc/documentation/public/en/books/ .
-
Review the build output and ensure the edits are free from typos, layout problems, or errors. If any errors are found during the build process, edit the problematic files to fix any issues that show up, then run the build command again until all errors are resolved.
-
Add all the files with
git add ., then review the diff withgit diff. For example:% git add . % git diff --stagedMake sure that all required files are included, then commit the change to your local branch and generate a patch with
git format-patch% git commit % git format-patch origin/mainPatch generated with
git format-patchwill include author identity and email addresses, making it easier for developers to apply (withgit am) and give proper credit.To make it easier for committers to apply the patch on their working copy of the documentation tree, please generate the .diff from the base of your documentation tree.
In the example above, changes have been made to the bsdinstall portion of the Handbook.
-
Submit the patch or 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 patch or diff file. Finally, use the Submit Bug button to submit your diff to the problem report system.