Difference between revisions of "FPCDocs Tutorial"
m (layout) |
|||
(6 intermediate revisions by one other user not shown) | |||
Line 10: | Line 10: | ||
* Having a working Lazarus installed may not hurt | * Having a working Lazarus installed may not hurt | ||
* As the documentation needs FPC source files, you will need the latest source from subversion. See [1] on how to get that. | * As the documentation needs FPC source files, you will need the latest source from subversion. See [1] on how to get that. | ||
− | * The fpcdocs | + | * The fpcdocs: |
− | + | <syntaxhighlight lang="bash"> | |
− | * Some tex programs: texlive, tex4ht, and dvi2tty if you want to generate plain-text documents (for DOS, mainly). The package names may differ depending on your distribution. | + | svn co http://svn.freepascal.org/svn/fpcdocs/trunk fpcdocs |
− | **Ubuntu 12: apt-get install tex4ht texlive-binaries | + | </syntaxhighlight> |
+ | * Some tex programs: texlive, tex4ht, and dvi2tty if you want to generate plain-text documents (for DOS, mainly). The package names may differ depending on your distribution. The files a4.sty and moveverb.sty. | ||
+ | **Ubuntu 12: <syntaxhighlight lang="bash">apt-get install tex4ht texlive-binaries texlive-latex-base texlive-latex-recommended texlive-latex-extra</syntaxhighlight> | ||
=== Assumptions === | === Assumptions === | ||
Line 21: | Line 23: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
~/fpc/ | ~/fpc/ | ||
− | ~/fpc/ | + | ~/fpc/fpcdocs #contains SVN http://svn.freepascal.org/svn/fpcdocs/trunk |
− | + | ~/fpc/fpcsrc #contains FPC sources, e.g. http://svn.freepascal.org/svn/fpc/branches/fixes_2_6 | |
− | ~/fpc/ | + | ~/fpc/fpcsrc/compiler/utils/msg2inc.pp #contains FPC msg2inc tool |
− | ~/fpc/ | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== Generating documentation == | == Generating documentation == | ||
+ | |||
+ | make clean | ||
+ | sh fixdocs.sh | ||
+ | |||
write me ;) | write me ;) | ||
Revision as of 07:17, 30 July 2012
Overview
This tutorial will guide you through getting the latest FreePascal docs sources and generating documentation from it. Please see the official documentation [3] for more details.
November 2011: I'm having trouble generating docs, and finding documentation on it, so I decided to start this page to help me and others. Please feel free to update/add info (and remove this notice when it actually works ;) --BigChimp 05:11, 22 November 2011 (CET)
Prerequisites
- A working FreePascal environment must be installed (e.g. a stable version from a Debian repository). See [1] for more details.
- Having a working Lazarus installed may not hurt
- As the documentation needs FPC source files, you will need the latest source from subversion. See [1] on how to get that.
- The fpcdocs:
svn co http://svn.freepascal.org/svn/fpcdocs/trunk fpcdocs
- Some tex programs: texlive, tex4ht, and dvi2tty if you want to generate plain-text documents (for DOS, mainly). The package names may differ depending on your distribution. The files a4.sty and moveverb.sty.
- Ubuntu 12:
apt-get install tex4ht texlive-binaries texlive-latex-base texlive-latex-recommended texlive-latex-extra
- Ubuntu 12:
Assumptions
I'm assuming you're running on Linux; apparently generating docs on Windows is not supported. Also, this tutorial assumes you have a stable system-wide installation of FPC and Lazarus, and a working SVN version of FPC with proper fpc.cfg. Finally, you have your SVN FPC source and fpcdocs directories set up like this:
~/fpc/
~/fpc/fpcdocs #contains SVN http://svn.freepascal.org/svn/fpcdocs/trunk
~/fpc/fpcsrc #contains FPC sources, e.g. http://svn.freepascal.org/svn/fpc/branches/fixes_2_6
~/fpc/fpcsrc/compiler/utils/msg2inc.pp #contains FPC msg2inc tool
Generating documentation
make clean sh fixdocs.sh
write me ;)
References
- [1] Installing Lazarus
- [2] Build FAQ
- [3] FPDoc manual