From: Peter Hutterer Date: Tue, 9 Dec 2014 03:19:54 +0000 (+1000) Subject: doc: include README as mainpage X-Git-Tag: 0.8.0~66 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5ad756ea39da3542c2f05b5111b1f760d01a6385;p=platform%2Fupstream%2Flibinput.git doc: include README as mainpage doxygen supports markdown so we can expand the README with general interesting information in markdown format and have it be the front page of the documentation at the same time. This requires renaming README to README.txt, but that's a relatively small price to pay. Signed-off-by: Peter Hutterer Reviewed-by: Jonas Ã…dahl --- diff --git a/README b/README deleted file mode 100644 index f55d7c8e..00000000 --- a/README +++ /dev/null @@ -1,25 +0,0 @@ -libinput - -libinput is a library that handles input devices for display servers and other -applications that need to directly deal with input devices. - -It provides device detection, device handling, input device event processing -and abstraction so minimize the amount of custom input code the user of -libinput need to provide the common set of functionality that users expect. - -Input event processing includes scaling touch coordinates, generating -pointer events from touchpads, pointer acceleration, etc. - -libinput originates from weston, the Wayland reference compositor. - -The source code of libinput can be found at: -http://cgit.freedesktop.org/wayland/libinput - -For more information, visit: -http://www.freedesktop.org/wiki/Software/libinput/ - -Bugs can be filed in the libinput component of Wayland: -https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland - -Online API documentation: -http://wayland.freedesktop.org/libinput/doc/latest/modules.html diff --git a/README.txt b/README.txt new file mode 100644 index 00000000..fabe304b --- /dev/null +++ b/README.txt @@ -0,0 +1,30 @@ +/*!@mainpage + +libinput +======== + +libinput is a library that handles input devices for display servers and other +applications that need to directly deal with input devices. + +It provides device detection, device handling, input device event processing +and abstraction so minimize the amount of custom input code the user of +libinput need to provide the common set of functionality that users expect. + +Input event processing includes scaling touch coordinates, generating +pointer events from touchpads, pointer acceleration, etc. + +libinput originates from weston, the Wayland reference compositor. + +The source code of libinput can be found at: +http://cgit.freedesktop.org/wayland/libinput + +For more information, visit: +http://www.freedesktop.org/wiki/Software/libinput/ + +Bugs can be filed in the libinput component of Wayland: +https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland + +Online API documentation: +http://wayland.freedesktop.org/libinput/doc/latest/modules.html + +*/ diff --git a/doc/Makefile.am b/doc/Makefile.am index a33638da..8f05bd2c 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -5,7 +5,8 @@ if HAVE_DOXYGEN noinst_DATA = html/index.html header_files = \ - $(top_srcdir)/src/libinput.h + $(top_srcdir)/src/libinput.h \ + $(top_srcdir)/README.txt html/index.html: libinput.doxygen $(header_files) $(AM_V_GEN)$(DOXYGEN) $< diff --git a/doc/libinput.doxygen.in b/doc/libinput.doxygen.in index 865cf974..9800f808 100644 --- a/doc/libinput.doxygen.in +++ b/doc/libinput.doxygen.in @@ -753,7 +753,8 @@ WARN_LOGFILE = # spaces. # Note: If this tag is empty the current directory is searched. -INPUT = @top_srcdir@/src/libinput.h +INPUT = @top_srcdir@/src/libinput.h \ + @top_srcdir@/README.txt # This tag can be used to specify the character encoding of the source files # that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses diff --git a/src/libinput.h b/src/libinput.h index e2a3eef0..682e16f2 100644 --- a/src/libinput.h +++ b/src/libinput.h @@ -35,13 +35,6 @@ extern "C" { __attribute__ ((format (printf, _format, _args))) #define LIBINPUT_ATTRIBUTE_DEPRECATED __attribute__ ((deprecated)) -/** - * @mainpage - * libinput is a generic input device handling library. It abstracts - * commonly-used concepts such as keyboard, pointer and touchpad handling - * behind an API. - */ - /** * @page tpbuttons Touchpad button behavior *