📄 readme
字号:
* ---------------------------------------------------------------------------* IntroductionThis project uses gtkdoc to build DocBook documentation out of sourcecode and sgml files. By using DocBook the option exists to builddocumentation in a number of formats (html, man, ps), though wecurrently target html only. gtkdoc is part of the GNOME project, details on downloading andinstalling can be found at: http://developer.gnome.org/projects/gdp/FreeBSD and Linux have standard packages to install DocBook andgtkdoc.* ---------------------------------------------------------------------------* Building the documentationOn Unix, just type "make". We don't have plans to build docs onanything other than FreeBSD/Linux - it's just a time thing.* ---------------------------------------------------------------------------* Reading the documentationThe repository contains the HTML files so documentation is availableupon download and does not require users to build it. The topleveldocument is: html/book1.html* ---------------------------------------------------------------------------* Rough GuidelinesHere is some "lore" on using gtkdoc and how things are with thisdocumentation. This is our first attempt at using gtkdoc, and ourinsight comes from reading the gtkdoc source code and various bits ondocbook (so we're probably missing some of the intentions). If youspot anything that would improve the documentation, please let usknow (mm-tools@cs.ucl.ac.uk).Okay, so here's the deal. There are a few "core" files:1. uclmmbase-sections.txt The initial version of this file was generated by runninggtkdoc-scan on files in the source directory and copying the file$MODULE-decl.txt to uclmmbase-sections.txt. The file contains alldeclarations found. It will need updating when declarations change.Don't worry about it too much as the error message following a changeinstructs on what to do. If you want '#include "foo.h"' message to appear withdocumentation associated with section foo, add it here (look for"INCLUDE" for an example).2. uclmmbase-driver.sgml This is the top-level sgml document. It is manually createdand edited. Most of what we need is already there.3) everything in tmpl/* These are templates that go around the libraries. At the timeof writing only tmpl/rtp.sgml has anything in. Take a look, thegeneral idea of what will appear should be apparent from this.The code documentation method is somewhat akin to Sun's JavaDoc:special comments are embedded in source files, and these are convertedinto documentation. The form of gtkdoc comments is:/** * maybe_print_string: * @message: the string to be printed. * * This function prints the message on the terminal with a probability 0.5. * * Returns: TRUE if message is printed, FALSE otherwise. */int may_print_string(char *message){ if (drand48() >= 0.5) { printf("%s\n", message); return TRUE; } return FALSE;}Okay, hopefully this is enough to get started...
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -