File: README.txt

package info (click to toggle)
darktable 5.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 62,864 kB
  • sloc: ansic: 361,898; cpp: 102,446; xml: 19,813; lisp: 14,539; sh: 3,771; javascript: 3,264; perl: 1,925; python: 1,485; ruby: 975; makefile: 543; asm: 46; sql: 38; awk: 21
file content (35 lines) | stat: -rw-r--r-- 1,069 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
This directory contains tools to automatically generate the lua API documentation.

The documentation is generated by introspecting the lua API from within DT then
adding the documentation from the file "content.lua" and making sure everything
is documented.

USAGE

to regenerate the documentation you must first add the tools to your lua path
* either copy all the lua files from this directory into <configdir>/lua
* or add this directory to lua's search path using the following code

	package.path = package.path..";/home/rosen/perso/darktable/darktable/tools/lua_doc/?.lua"

once the lua documentation is in your path you need to require the correct file
	
	wiki = require "wiki"
or
	usermanual = require "usermanual"

and last you need to print the doc. To print to stdout simply run the following

	print (wiki.get_doc())

or 
	outfile =io.open("/home/rosen/perso/darktable/darktable/doc/usermanual/lua/lua_api.xml","w+")
	outfile:write(usermanual.get_doc())
	outfile:close()

If you want to exit darktable immediately, you can use the following

	os.exit()