Merge lp:~thisfred/u1db/cdocs-improvements into lp:u1db

Proposed by Eric Casteleijn
Status: Merged
Approved by: Eric Casteleijn
Approved revision: 441
Merged at revision: 433
Proposed branch: lp:~thisfred/u1db/cdocs-improvements
Merge into: lp:u1db
Diff against target: 137 lines (+41/-13)
6 files modified
CMakeLists.txt (+2/-6)
README (+13/-3)
html-docs/Makefile (+4/-1)
html-docs/doxygen.conf (+3/-3)
html-docs/intro.dox (+8/-0)
include/u1db/u1db.h (+11/-0)
To merge this branch: bzr merge lp:~thisfred/u1db/cdocs-improvements
Reviewer Review Type Date Requested Status
Lucio Torre (community) Approve
Review via email: mp+130442@code.launchpad.net

Commit message

Added an introduction text to the mainpage, made html-docs build the cdocs, fixed make html-docs.

Description of the change

Added an introduction text to the mainpage, made html-docs build the cdocs, fixed make html-docs.

To post a comment you must log in.
Revision history for this message
Lucio Torre (lucio.torre) wrote :

 +_doxygen/html/u1db_8h.html
 _build/html/index.html

both reference wont work when this is generated and moved to a production site.

review: Approve
Revision history for this message
Eric Casteleijn (thisfred) wrote :

> +_doxygen/html/u1db_8h.html
> _build/html/index.html
>
> both reference wont work when this is generated and moved to a production
> site.

Yeah, I tried but I couldn't seem to add a relative link in doxygen. I didn't realize the README is also turned into html. Since it's REST, I should be able to make links there.

lp:~thisfred/u1db/cdocs-improvements updated
441. By Eric Casteleijn

removed path

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'CMakeLists.txt'
2--- CMakeLists.txt 2012-09-07 17:25:57 +0000
3+++ CMakeLists.txt 2012-10-19 14:54:22 +0000
4@@ -44,7 +44,7 @@
5 COMMAND cd html-docs && make doctest && cd ..
6 )
7
8-add_custom_target(check-nodoc
9+add_custom_target(check-nodoctests
10 COMMAND python -m testtools.run discover
11 DEPENDS build-inplace-for-tests
12 )
13@@ -54,10 +54,6 @@
14 DEPENDS build-inplace-for-tests doctests
15 )
16
17-add_custom_target(cdocs
18- COMMAND doxygen html-docs/doxygen.conf
19-)
20-
21 add_custom_target(build-inplace-for-tests
22 COMMAND U1DB_TEST=1 python setup.py build_ext -i -f -I ${CMAKE_SOURCE_DIR}/include
23 DEPENDS ReplicatePythonSourceTree u1db
24@@ -83,7 +79,7 @@
25 )
26
27 add_custom_target(html-docs
28- COMMAND cd ${CMAKE_SOURCE_DIR}/html-docs; make html
29+ COMMAND cd ${CMAKE_SOURCE_DIR}/html-docs \; make html
30 )
31
32 SET(CPACK_GENERATOR "TGZ")
33
34=== modified file 'README'
35--- README 2012-10-04 12:29:11 +0000
36+++ README 2012-10-19 14:54:22 +0000
37@@ -50,6 +50,16 @@
38 Building the docs
39 =================
40
41-cd html-docs
42-make doctest # check that the code examples all still work
43-make html # build HTML documentation at _build/html/index.html
44+cmake . && make html-docs
45+
46+after which the reference implementation documentation can be found at::
47+
48+html-docs/_build/html/index.html
49+
50+and the C implementation documentation at::
51+
52+html-docs/_doxygen/html/index.html
53+
54+though a more useful starting point may be::
55+
56+_doxygen/html/u1db_8h.html
57
58=== modified file 'html-docs/Makefile'
59--- html-docs/Makefile 2011-12-21 11:09:04 +0000
60+++ html-docs/Makefile 2012-10-19 14:54:22 +0000
61@@ -36,7 +36,10 @@
62 clean:
63 -rm -rf $(BUILDDIR)/*
64
65-html: doctest
66+cdocs:
67+ doxygen doxygen.conf
68+
69+html: doctest cdocs
70 $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
71 @echo
72 @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
73
74=== modified file 'html-docs/doxygen.conf'
75--- html-docs/doxygen.conf 2012-08-22 13:32:37 +0000
76+++ html-docs/doxygen.conf 2012-10-19 14:54:22 +0000
77@@ -38,7 +38,7 @@
78 # for a project that appears at the top of each page and should give viewer
79 # a quick idea about the purpose of the project. Keep the description short.
80
81-PROJECT_BRIEF =
82+PROJECT_BRIEF = "U1DB: An API for synchronisable databases."
83
84 # With the PROJECT_LOGO tag one can specify an logo or icon that is
85 # included in the documentation. The maximum height of the logo should not
86@@ -52,7 +52,7 @@
87 # If a relative path is entered, it will be relative to the location
88 # where doxygen was started. If left blank the current directory will be used.
89
90-OUTPUT_DIRECTORY = html-docs/_doxygen
91+OUTPUT_DIRECTORY = _doxygen
92
93 # If the CREATE_SUBDIRS tag is set to YES, then doxygen will create
94 # 4096 sub-directories (in 2 levels) under the output directory of each output
95@@ -648,7 +648,7 @@
96 # directories like "/usr/src/myproject". Separate the files or directories
97 # with spaces.
98
99-INPUT = include/u1db/u1db.h src/u1db.c
100+INPUT = ./intro.dox ../include/u1db/u1db.h ../src/u1db.c
101
102 # This tag can be used to specify the character encoding of the source files
103 # that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is
104
105=== added file 'html-docs/intro.dox'
106--- html-docs/intro.dox 1970-01-01 00:00:00 +0000
107+++ html-docs/intro.dox 2012-10-19 14:54:22 +0000
108@@ -0,0 +1,8 @@
109+/*! \mainpage U1DB Index
110+ *
111+ * \section intro_sec Introduction
112+ * This is the C implementation of the u1db protocol, with a SQLite backend.
113+ *
114+ * If you're new to u1db, the documentation of the reference implementation is
115+ * probably the best place to start, which can be found at _build/html/index.html
116+*/
117
118=== modified file 'include/u1db/u1db.h'
119--- include/u1db/u1db.h 2012-10-09 17:00:12 +0000
120+++ include/u1db/u1db.h 2012-10-19 14:54:22 +0000
121@@ -18,6 +18,17 @@
122 * @file u1db.h
123 */
124
125+/*! \mainpage U1DB Index Page
126+ *
127+ * \section intro_sec Introduction
128+ *
129+ * This is the C implementation of the u1db protocol, with a SQLite backend.
130+ *
131+ * If you're new to u1db, the documentation of the reference implementation is
132+ * probably the best place to start.
133+ *
134+*/
135+
136 #ifndef _U1DB_H_
137 #define _U1DB_H_
138

Subscribers

People subscribed via source and target branches