Sign in Join
Wiki copytemporary

FPCDocs Tutorial: what changed

Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
11## Overview
22
33This 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.
44
55November 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)
66
77## Prerequisites
88
99- A working FreePascal environment must be installed (e.g. a stable version from a Debian repository). See \[1\] for more details.
1010- Having a working Lazarus installed may not hurt
1111- As the documentation needs FPC source files, you will need the latest source from git. See \[1\] on how to get that.
1212- The fpcdocs:
1313
1414``` bash
1515svn co http://svn.freepascal.org/svn/fpcdocs/trunk fpcdocs
1616```
1717
1818- 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.
1919 - Ubuntu 12:
2020 ``` bash
2121 apt-get install tex4ht texlive-binaries texlive-latex-base texlive-latex-recommended texlive-latex-extra
2222 ```
2323
2424### Assumptions
2525
2626I'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:
2727
2828``` bash
2929~/fpc/
3030~/fpc/fpcdocs #contains SVN http://svn.freepascal.org/svn/fpcdocs/trunk
3131~/fpc/fpcsrc #contains FPC sources, e.g. http://svn.freepascal.org/svn/fpc/branches/fixes_2_6
3232~/fpc/fpcsrc/compiler/utils/msg2inc.pp #contains FPC msg2inc tool
3333```
3434
3535## Generating documentation
3636
37-`make clean`\
38-`sh fixdocs.sh`
37+```text
38+make clean
39+sh fixdocs.sh
40+```
3941
4042write me ;)
4143
4244## References
4345
4446- \[1\] [[Installing Lazarus]]
4547- \[2\] Build FAQ
4648- \[3\] FPDoc manual
4749
4850---
4951*From the Free Pascal wiki, page "FPCDocs Tutorial", as it stood on 2023-11-10 after a change by Bart, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*
5052Category: Help and Docs
5153Category: Tutorials

Back to history