Skip to content

fghaas/drbd-documentation

Repository files navigation

Notes for DRBD Documentation Maintainers
========================================

Checking out the documentation sources
--------------------------------------

The documentation sources live in the public DRBD git repository at
git.linbit.com. You check them out using the following git command:

-----------------------------------
git clone git://git.linbit.com/drbd-documentation
-----------------------------------

This will create a local copy of the documentation sources in a
subdirectory named "drbd-documentation" which git automatically
creates in your current working directory. Be sure to frequently
update your documentation sources with the following commands:

-----------------------------------
cd drbd-documentation
git pull
-----------------------------------

When you have made changes, please commit them in your local
checkout. Group changes that "logically" belong together in one
commit, and be sure to include an informative commit message:

-----------------------------------
git add <files you wish to include in your commit>
git commit
-----------------------------------


Building the documentation
--------------------------

The DRBD documentation uses makedoc, a GNU Autotools based document
processing toolchain. makedoc is hosted here:

http://github.com/fghaas/makedoc

Once you have created a makedoc checkout, run the following commands
from the root of the DRBD documentation tree (i.e., from the directory
that contains the file you are reading now):

-----------------------------------
make MAKEDOC=/path/to/your/makedoc/checkout
./autogen.sh
./configure
cd <subdirectory>
make <document>.<target format>
-----------------------------------

makedoc is highly configurable; check ./configure --help for supported
options.

For example, in order to build the DRBD User's Guide in PDF form, this
is what you would do:

-----------------------------------
./configure --with-asciidoc-doctype=book
cd users-guide
make drbd-users-guide.pdf
-----------------------------------

For the User's Guide, specifically, you can also pull in the DRBD man
pages. To do so, you will have to have a DRBD git checkout somewhere
on your system (you may clone this from +git.linbit.com+). You also
need to have done +make doc+ in that DRBD checkout to build the man
pages. Then, to build the User's Guide with man pages included, you
would do:

-----------------------------------
./configure --with-asciidoc-doctype=book
cd users-guide
make DRBD=/path/to/your/drbd-checkout
make drbd-users-guide.pdf
-----------------------------------

Some subdirectories also contain convenience targets building a
document format including all of its dependencies. In order to build
the User's Guide in HTML and PDF formats including all graphics, run
the following commands:

-----------------------------------
./configure --with-asciidoc-doctype=book
cd users-guide
make html pdf
-----------------------------------

Modifying and maintaining the documentation
-------------------------------------------

In order to modify the documentation, all you need is the text editor
of your choice, and the git version control system. The documentation
syntax is AsciiDoc; see http://www.methods.co.nz/asciidoc/ for details
on this format.


Submitting documentation patches
--------------------------------

If you modify the documentation, please subscribe to the drbd-dev
mailing list at http://lists.linbit.com/listinfo/drbd-dev and start
sending patches to [email protected].

Please submit patches in a format that makes it easy for us to apply
them to the repository:

-----------------------------------
git pull
# Now edit and issue "git commit -a" for each. When done:
git format-patch origin
git send-email [email protected] *.patch
-----------------------------------

About

My branch of the DRBD User's Guide, for upstream to pull from

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •