HeaderDoc
| HeaderDoc | |
|---|---|
| Developer | Apple Inc. |
| Initial release | September 13, 2000 |
| Stable release | 8.9
/ June 8, 2009 |
| Written in | Perl, C (helpers) |
| Operating system | Mac OS X, UNIX, Linux |
| Type | Documentation generator |
| License | Apple Public Source License 2.0 |
| Website | developer |
HeaderDoc is a documentation generator developed and maintained by Apple Inc. Using specially commented source code files as input, HeaderDoc generates documentation for the code in HTML or XML format. Syntax for HeaderDoc comment tags is largely similar to, and as of HeaderDoc version 8, supportive of Javadoc tags. HeaderDoc 8.7 and later also provides partial support for many Doxygen tags (@ form only, and must conform to HeaderDoc tag ordering rules). Apple's HeaderDoc project is free, open source software distributed under the Apple Public Source License.
Supported plain text languages
- AppleScript
- Bash
- Bourne Shell
- C Shell
- C
- C++
- Korn Shell
- Java
- JavaScript
- Mach MIG definitions [1]
- Objective-C
- Pascal
- Perl
- PHP
- Python
- Ruby
- Tcl
The HeaderDoc tool set consists of the main utility, headerdoc2html, and gatherheaderdoc. The headerdoc2html tool generates a directory of either HTML (or optionally XML) files from the commented source files specified. Afterwards, the gatherheaderdoc utility may be executed to create a table of contents file for the documentation. Finally, the resolveLinks utility may be used to resolve cross-references between multiple documentation collections.
Apple's Xcode development environment contains features designed to assist the process of creating documentation using the HeaderDoc syntax and tools.
Additional features
HeaderDoc has the following core features:
- C preprocessing, allowing user-selected #define macros to alter the content, and allowing the user to pass command-line flags to ignore portions of the input.
- Syntax coloring with user-defined styles.
- Template-driven landing pages for indices.
- Cross-platform (written mostly in Perl).
The HeaderDoc suite also includes several tools that may be used independently:
- MPGL—a set of tools designed to simplify creation of UNIX manual pages using a lightweight XML syntax consisting of a subset of XHTML plus section tags, parameter tags, etc. HeaderDoc also provides a bridging tool that helps generate manual pages from header comments for functions via HeaderDoc's XML output mode.
- resolveLinks—a tool that allows for rapid web site relinking when content moves to a different address through the use of embedded anchors and link requests.
- filtermacros.pl—a tool that can be used to filter out sections of headers based on C preprocessor macros. This is currently available only by downloading the source tarball. As of HeaderDoc 8.9, this functionality is built into the headerdoc2html tool itself.
See also
External links
- Legacy Documentation: HeaderDoc User Guide
- http://opensource.apple.com Latest version] (currently 8.9.28)
- HeaderDoc mailing list Archived 2010-01-06 at the Wayback Machine (commonly used for getting help, patches, etc.)
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.