Natural Docs Version 0.9 Natural Docs |
Natural DocsVersion 0.9 Copyright © 2003 Greg Valure http://www.naturaldocs.org Summary
LicenseLicensed under the GNU General Public License This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, visit http://www.gnu.org/licenses/gpl.txt or write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. SyntaxNaturalDocs -i [input (source) directory]
-o [output format] [output directory]
(-o [output format] [output directory] ...)
-p [project directory]
[options]Directory names with spaces are fine. They don’t need quotes on Windows. ExamplesNaturalDocs -i C:\My Project\Source
-o HTML C:\My Project\Docs
-p C:\My Project\Natural DocsNaturalDocs -i /src/project
-o HTML /doc/project
-p /etc/naturaldocs/project
-s Small -q -mOptions
Supported Code FormatsAdding additional languages is very easy, so don’t worry if yours isn’t here. See How to Add Output Formats.
Supported Output Formats
HTML Styles
You can also use any CSS file present in Natural Docs’ styles directory. Just use its name without the .css extension. For example, if your style is Blue.css, use “Blue”. You can check for additional styles at http://www.naturaldocs.org. If you would like to build your own, see How to Add HTML Styles. HTML Compatibility
Note that a browser not being able to collapse the menu isn’t a compatibility concern. The menu defaults to completely open if the browser can’t handle collapsing it, so it’s always usable. It’s just better on browsers that support it. How to Add Source FormatsIn the main script (NaturalDocs.pl) add a call to NaturalDocs::Languages::Add() after all the rest. See NaturalDocs::Languages::Add()’s documentation for an explanation of the parameters. How to Add Output Formats
How to Add HTML StylesRead the CSS Guide to understand the styles Natural Docs uses and how they fit together. After you’ve created your own CSS file, drop it in the Natural Docs styles directory. Then you can reference it via -s in the command line. Its name is the CSS file name without the extension. So if your file is Red.css, you use it by specifying “-s Red” in your projects. If you ever change the CSS file in the Natural Docs styles directory, each project that uses it will get an updated copy automatically the next time Natural Docs is run on it. Code Conventions
|