X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=doc%2Fwebserver%2Fdeveloper-manual%2Fdocumentation.html;h=b8d534847584ec52f46f8e59e46d5f5e58910c4d;hp=efa744758de49a59398e14a7e1c01960d921486e;hb=1f8e678f82936f21347922e1b2428ac00cd4d34e;hpb=6c57654c56fc87fecf213110838dc0bad33a1d63 diff --git a/doc/webserver/developer-manual/documentation.html b/doc/webserver/developer-manual/documentation.html index efa74475..b8d53484 100644 --- a/doc/webserver/developer-manual/documentation.html +++ b/doc/webserver/developer-manual/documentation.html @@ -1,23 +1,26 @@ + Documentation Guidelines
4.2. 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 +> 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:

  • Tags delimiting a Tags delimiting a block of text (even small blocks) should be on their own line. Like: -

     <para>
      Some text goes here.
     </para>
           

    - Tags marking individual words, or few words, should be in-line: -

    Tags marking individual words, or few words, should be in-line: +

      Just to <emphasis>emphasize</emphasis>, some text goes here.
           

    -

  • Tags should be nested and step indented for block text like: (except - in-line tags) -

     <para>
      <itemizedlist>
    @@ -515,29 +592,29 @@ CLASS="LITERALLAYOUT"   </itemizedlist>
     </para>
           

    - This makes it easier to find the text amongst the tags ;-) +>

    This makes it easier to find the text amongst the tags ;-)

  • Use white space to separate logical divisions within a document, - like between sections. Running everything together consistently +> Use white space to separate logical divisions within a document, + like between sections. Running everything together consistently makes it harder to read and work on.

  • Do not hesitate to make comments. Comments can either use the - <comment> element, or the <!-- --> style comment - familiar from HTML. (Note in Docbook v4.x <comment> is +> Do not hesitate to make comments. Comments can either use the + <comment> element, or the <!-- --> style comment + familiar from HTML. (Note in Docbook v4.x <comment> is replaced by <remark>.)

  • We have an international audience. Refrain from slang, or English - idiosyncrasies (too many to list :). Humor also does not translate +> We have an international audience. Refrain from slang, or English + idiosyncrasies (too many to list :). Humor also does not translate well sometimes.

  • Our documents are available in differing formats. Right now, they - are just plain text, and HTML, but PDF, and others is always a - future possibility. Be careful with URLs (<ulink>), and avoid +> Our documents are available in differing formats. Right now, they + are just plain text and/or HTML, but others are always a + future possibility. Be careful with URLs (<ulink>), and avoid this mistake:

    This will render as "My favorite site is here", which is +>, which is not real helpful in a text doc. Better like this:

-

4.3. Privoxy Custom Entities3.3. Privoxy Custom Entities

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

We are using a set of generic. That is the purpose; so it can be used in varying +>. That is the purpose; so it can be used in varying contexts without additional modifications.

We are also using what Docbook calls +> calls "internal entities". These are like variables in +>. These are like variables in programming. Well, sort of. For instance, we have the p-version entity that contains the current +> entity that contains the current Privoxy version string. You are strongly - encouraged to use these where possible. Some of these obviously +> version string. You are strongly + encouraged to use these where possible. Some of these 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.

-

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


PrevQuickstart to Privoxy DevelopmentThe Git Repository
HomeNext