2005-09-15 09:58:31 -04:00
|
|
|
Overview of the ELinks documentation
|
|
|
|
|
2005-09-16 21:16:24 -04:00
|
|
|
There is only limited documentation available for ELinks so far, sorry. It
|
|
|
|
basically consists of the documents in this directory and the features.conf,
|
|
|
|
README and INSTALL files in the project's root directory.
|
2005-09-15 09:58:31 -04:00
|
|
|
|
2006-01-11 22:49:23 -05:00
|
|
|
You are encouraged to get a copy of the ELinks manual. It tries to be a
|
|
|
|
complete book of all there is to know about ELinks. For example, most files
|
|
|
|
listed in the next section is in some way part of the ELinks manual.
|
2005-09-15 09:58:31 -04:00
|
|
|
|
2006-01-11 22:49:23 -05:00
|
|
|
Instructions on building the manual is given below. If you do not intend to
|
|
|
|
build it yourself either access it on the ELinks homepage or, if you
|
|
|
|
downloaded ELinks via a tarball, the manual should be in the html/ directory.
|
2005-09-15 09:58:31 -04:00
|
|
|
|
2006-01-11 22:49:23 -05:00
|
|
|
|
|
|
|
Where to start
|
|
|
|
--------------
|
|
|
|
|
|
|
|
This sections tries to give a quick overview of important files you will find
|
|
|
|
in this directory or it's children.
|
|
|
|
|
2006-01-12 05:18:20 -05:00
|
|
|
- Man pages:
|
2006-01-11 22:49:23 -05:00
|
|
|
|
|
|
|
elinks(1) ................................... man/man1/elinks.1
|
|
|
|
elinks.conf(5) .............................. man/man5/elinks.conf.5
|
|
|
|
elinkskeys(5) ............................... man/man5/elinkskeys.5
|
|
|
|
|
|
|
|
Man pages are best viewed with the man program. The easiest way to do this
|
|
|
|
is by telling the man program to look for man pages in the doc/man
|
|
|
|
directory by using the -M switch. If you are standing in the top-level
|
|
|
|
directory, you can do this by invoking the man program using:
|
|
|
|
|
|
|
|
man -M doc/man elinks.conf
|
|
|
|
|
|
|
|
- User's Guide:
|
|
|
|
|
|
|
|
Getting ELinks up and running................ installation.txt
|
|
|
|
Introduction to the World of ELinks ......... introduction.txt
|
|
|
|
Frequently Asked Questions .................. faq.txt
|
|
|
|
JavaScript/ECMAScript in ELinks ............. ecmascript.txt
|
|
|
|
Notes on User Feedback ...................... feedback.txt
|
|
|
|
The Smallest Binary Quest Spoilerbook ....... small.txt
|
|
|
|
|
|
|
|
Note: The ELinks manual really should be read in one of the generated
|
|
|
|
formats: html, html-chunked or pdf, however the entry point can be found in
|
|
|
|
manual.txt and might be of some help, when deciding what other .txt
|
|
|
|
documents to read in this directory.
|
|
|
|
|
|
|
|
- Developer's Guide:
|
|
|
|
|
|
|
|
Introduction to ELinks Developing ........... dev-intro.txt
|
|
|
|
The Demented Guide to Source Hacking ........ hacking.txt
|
|
|
|
|
|
|
|
The developing intro tries to explain some of the basic concepts in the
|
|
|
|
ELinks internal. While the hacking guide contains great deal about general
|
|
|
|
source code structure and especially guidelines regarding coding style,
|
|
|
|
submitting patches etc., thus every aspiring developer should take the
|
|
|
|
pains to read through it, do not forget to also look for README and similar
|
|
|
|
text files in the subdirectories containing the relevant sources for
|
2006-01-26 19:06:59 -05:00
|
|
|
detailed notes regarding given modules/subsystems. Additionally, it is
|
|
|
|
possible to build API docs. More about this below.
|
2006-01-11 22:49:23 -05:00
|
|
|
|
|
|
|
The Lua Scripting Book ...................... lua-scripting.txt
|
|
|
|
Events Reference Sheet ...................... events.txt
|
|
|
|
|
|
|
|
The above covers internal scripting, by which we mean scripting of the
|
|
|
|
browser internals through embedded Lua, Guile or Perl scripts. ECMAScript
|
|
|
|
scripts embedded in documents have nothing to do with that.
|
|
|
|
|
|
|
|
|
|
|
|
Building documentation
|
|
|
|
----------------------
|
|
|
|
|
|
|
|
The following tools are used for generating documentation in various formats:
|
|
|
|
|
2009-05-01 08:01:07 -04:00
|
|
|
- python: interpreter for asciidoc, which is the basic tool for
|
|
|
|
lifting the .txt files to other formats.
|
2006-01-11 22:49:23 -05:00
|
|
|
- xmlto: used for outputting chunked HTML and man pages.
|
2020-09-03 12:44:43 -04:00
|
|
|
- dblatex: used for pdf documents.
|
2006-01-11 22:49:23 -05:00
|
|
|
- pod2html: used for perl docs.
|
2005-09-15 09:58:31 -04:00
|
|
|
|
2005-09-16 21:16:24 -04:00
|
|
|
All these tools are checked by configure, thus to successfully build all the
|
|
|
|
possible documentation (with the tools available on the system), just run
|
2005-09-15 09:58:31 -04:00
|
|
|
|
|
|
|
$ make all-docs
|
|
|
|
|
2006-01-11 22:49:23 -05:00
|
|
|
in the doc/ directory. It will build, if possibly, the manual in the following
|
|
|
|
manual formats (with tool requirements listed):
|
|
|
|
|
|
|
|
- HTML one-file (asciidoc)
|
|
|
|
- HTML chunked / multiple files (asciidoc + xmlto)
|
2020-09-03 12:44:43 -04:00
|
|
|
- PDF (asciidoc + dblatex)
|
2006-01-11 22:49:23 -05:00
|
|
|
|
|
|
|
and the following man page formats:
|
|
|
|
|
|
|
|
- HTML (asciidoc)
|
|
|
|
- man / groff (asciidoc + xmlto)
|
|
|
|
|
2006-01-26 19:06:59 -05:00
|
|
|
Note: You do not need to build manpages. They are shipped with ELinks. However,
|
|
|
|
if you want to have the manpages to match your local configuration and changes
|
|
|
|
you can rebuild them (this is mostly an issue with elinks.conf(5) which might
|
|
|
|
otherwise contain options that is not supported by the version you install.
|
2006-01-11 22:49:23 -05:00
|
|
|
|
|
|
|
Note: You must first build the ELinks binary for "make all-docs" to work
|
|
|
|
successfully. The binary is used for getting option documentation.
|
|
|
|
|
2006-01-13 06:55:36 -05:00
|
|
|
The documentation can be installed with:
|
|
|
|
|
|
|
|
$ make install-doc
|
|
|
|
|
2006-01-26 19:06:59 -05:00
|
|
|
Building API documentation
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
There is some starting effort to make it possible to build HTML documentation
|
|
|
|
of the APIs presented by the different modules and subsystems in ELinks. To
|
|
|
|
build API documentation run:
|
|
|
|
|
|
|
|
$ make api
|
|
|
|
|
|
|
|
in the doc/ directory. The API documentation can then be found in the doc/api/
|
|
|
|
directory.
|
|
|
|
|
|
|
|
NOTE: Currently only few files provides API docs and there is no over-all
|
|
|
|
structure of the various APIs.
|
|
|
|
|
|
|
|
The API toolchain uses a Perl script (doc/tools/code2doc) to extract info from
|
|
|
|
header files and generate text files with AsciiDoc markup. The text files are
|
|
|
|
then converted to HTML with AsciiDoc.
|
|
|
|
|
|
|
|
To get an idea of how the code markup works take a look at src/dom/stack.h.
|
|
|
|
It has a small tag saying that it provides API docs for the dom-stack module:
|
|
|
|
|
|
|
|
/* API Doc :: dom-stack */
|
|
|
|
|
|
|
|
The API doc markup should be pretty straight forward. Here is an example of the
|
|
|
|
basic structure:
|
|
|
|
|
|
|
|
/** <title>
|
|
|
|
*
|
|
|
|
* <content>
|
|
|
|
*/
|
|
|
|
|
|
|
|
Only text in comments starting with '/**' are used. If the comment immediately
|
|
|
|
preceeds a declaration of some struct, enum, typedef, function, or macro, the
|
|
|
|
name of the declared identifier will be used when creating the output to create
|
|
|
|
anchors which can be referred to using ref:[].
|
|
|
|
|
2005-09-15 09:58:31 -04:00
|
|
|
|
|
|
|
Contributing
|
|
|
|
------------
|
|
|
|
|
2005-09-16 21:16:24 -04:00
|
|
|
Contributions are very warmly welcomed, whether it is fixing typos or bad
|
|
|
|
grammar, rewritings or new material. Any information relevant to ELinks usage
|
|
|
|
can be included in the manual, including FAQ material, tips and cheats ;)
|
2005-09-15 09:58:31 -04:00
|
|
|
|
2005-09-16 21:16:24 -04:00
|
|
|
There is no strict codingstyle, but please don't limit your use of whitespaces
|
2005-09-15 09:58:31 -04:00
|
|
|
and take a look at the style used in the current documents to get ideas of what
|
|
|
|
is reasonable.
|
|
|
|
|
2005-09-16 21:16:24 -04:00
|
|
|
Contributions should be sent to Jonas Fonseca <fonseca@diku.dk> or to the
|
|
|
|
ELinks mailing list. If you are changing something in an existing document,
|
|
|
|
please read about how to make unified patches in the Patches section of the
|
|
|
|
doc/hacking.txt file.
|
2005-09-15 09:58:31 -04:00
|
|
|
|