X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=doc%2Fwebserver%2Fdeveloper-manual%2Fdocumentation.html;h=2a05f2ec228ef547b1686eb7c953876b09b261e8;hp=44690e89a49d6e23969e964216cf95b6093c1722;hb=b8340ac99051f581cc6beed735d8e197bfbe77ab;hpb=d1c39df48bd2a8953ceb49fdbb370b20f3d89422 diff --git a/doc/webserver/developer-manual/documentation.html b/doc/webserver/developer-manual/documentation.html index 44690e89..2a05f2ec 100644 --- a/doc/webserver/developer-manual/documentation.html +++ b/doc/webserver/developer-manual/documentation.html @@ -1,6 +1,5 @@ - Documentation Guidelines @@ -10,9 +9,8 @@ - + - -

3. Documentation Guidelines

-

All formal documents are maintained in Docbook SGML and located in the doc/source/* directory. You will need Docbook, the Docbook @@ -61,7 +54,6 @@ "emphasis">DO NOT edit these directly. Edit the SGML source, or contact someone involved in the documentation.

-

config requires some special handling. The reason it is maintained this way is so that the extensive comments in the file mirror those in user-manual. But the @@ -72,33 +64,26 @@ "FILENAME">config.new, which should be reviewed for errors and mis-formatting. Once satisfied that it is correct, then it should be hand copied to config.

-

Other, less formal documents (e.g. LICENSE) are maintained as plain text files in the top-level source directory.

-

Packagers are encouraged to include this documentation. For those without the ability to build the docs locally, text versions of each are kept in CVS. HTML versions are also being kept in CVS under doc/webserver/*.

-

Formal documents are built with the Makefile targets of make dok. The build process uses the document SGML sources in doc/source/*/* to update all text files in doc/text/ and to update all HTML documents in doc/webserver/.

-

Documentation writers should please make sure documents build successfully before committing to CVS, if possible.

-

How do you update the webserver (i.e. the pages on privoxy.org)?

-
  1. First, build the docs by running make dok.

  2. -
  3. Run make webserver which copies all files from

-

Finished docs should be occasionally submitted to CVS (doc/webserver/*/*.html) so that those without the ability to build them locally, have access to them if needed. This is especially @@ -115,11 +99,9 @@ "LITERAL">$VERSION and other release specific data in configure.in has been updated (this is done just prior to a new release).

-

3.1. Quickstart to Docbook and SGML

-

If you are not familiar with SGML, it is a markup language similar to HTML. Actually, not a mark up language per se, but a language used to define markup languages. In fact, HTML is an SGML application. Both @@ -133,14 +115,12 @@ document is rendered is determined by the "stylesheets". The stylesheets determine how each tag gets translated to HTML, or other formats.

-

Tags in Docbook SGML need to be always "closed". If not, you will likely generate errors. Example: <title>My Title</title>. They are also case-insensitive, but we strongly suggest using all lower case. This keeps compatibility with [Docbook] XML.

-

Our documents use "sections" for the most part. Sections will be processed into HTML headers (e.g. h1 for sect1). The <para>. There is a limit of five section levels in Docbook, but generally three should be sufficient for our purposes.

-

Some common elements that you likely will use:

- @@ -164,56 +142,47 @@ delimiter. Most text needs to be within paragraph elements (there are some exceptions). - - - - - - - - -
<emphasis></emphasis>, the stylesheets make this italics.
<filename></filename>, files and directories.
<command></command>, command examples.
<literallayout></literallayout>, like <pre>, more or less.
<itemizedlist></itemizedlist>, list with bullets.
<listitem></listitem>, member of the above.
<screen></screen>, screen output, implies <literallayout>.
<ulink url="example.com"></ulink>, like HTML <a> tag.
<quote></quote>, for, doh, @@ -221,52 +190,41 @@
-

Look at any of the existing docs for examples of all these and more.

-

You might also find "Writing Documentation Using DocBook - A Crash Course" useful.

-

3.2. Privoxy Documentation Style

-

It will be easier if everyone follows a similar writing style. This just makes it easier to read what someone else has written if it is all done in a similar fashion.

-

Here it is:

-
-
-

3.3. Privoxy Custom +

3.3. Privoxy Custom Entities

-

Privoxy documentation is using a number of customized "entities" to facilitate documentation maintenance.

-

We are using a set of "boilerplate" files with generic text, that is used by multiple docs. This way we can write something once, and use it repeatedly without having to re-write the @@ -347,7 +293,6 @@ that it should be generic. That is the purpose; so it can be used in varying contexts without additional modifications.

-

We are also using what Docbook calls "internal entities". These are like variables in programming. Well, sort of. For instance, we have the @@ -357,15 +302,12 @@ obviously require re-setting with each release (done by the Makefile). A sampling of custom entities are listed below. See any of the main docs for examples.

-
  • Re- "boilerplate" text entities are defined like:

    -

    <!entity supported SYSTEM "supported.sgml">

    -

    In this example, the contents of the file, supported.sgml is available for inclusion anywhere in the doc. To make this happen, just reference the now defined @@ -373,20 +315,17 @@ ampersand and ends with a semi-colon), and the contents will be dumped into the finished doc at that point.

  • -
  • Commonly used "internal entities":

    - + "3.0.27". - - - -
    p-version: the Privoxy version string, e.g. - "3.0.23".
    p-status: the project status, either @@ -394,19 +333,16 @@ "QUOTE">"beta", or "stable".
    p-not-stable: use to conditionally include text in "not stable" releases (e.g. "beta").
    p-stable: just the opposite.
    p-text: this doc is only generated as @@ -416,33 +352,25 @@
-

There are others in various places that are defined for a specific purpose. Read the source!

-