Merge lp:~hingo/drizzle/fix-make-html into lp:~drizzle-trunk/drizzle/development

Proposed by Henrik Ingo
Status: Merged
Merged at revision: 2505
Proposed branch: lp:~hingo/drizzle/fix-make-html
Merge into: lp:~drizzle-trunk/drizzle/development
Diff against target: 86 lines (+18/-21)
3 files modified
docs/administration/plugins.rst (+3/-3)
docs/include.am (+14/-17)
tests/include.am (+1/-1)
To merge this branch: bzr merge lp:~hingo/drizzle/fix-make-html
Reviewer Review Type Date Requested Status
Drizzle Merge Team Pending
Review via email: mp+92578@code.launchpad.net

Description of the change

Somewhere along the way we have broken the docs:
 * administration/plugin.rst contains 2 broken links and make html fails.
 * tar ball is missing half of the docs so make html fails spectacularly.

This fixes both. (I'd like to also add make html or make doctest to the jenkins tests, or directly into make test, but will ask for advice on that on IRC.)

To post a comment you must log in.
Revision history for this message
Stewart Smith (stewart) wrote :

On Fri, 10 Feb 2012 21:09:24 -0000, Henrik Ingo <email address hidden> wrote:
> This fixes both. (I'd like to also add make html or make doctest to
> the jenkins tests, or directly into make test, but will ask for advice
> on that on IRC.)

I have a blog post on picking up warnings from sphinx and reporting them
through jenkins.

Unfortunately the external URL check that sphinx can automatically do
doesn't output in a standard format, so it's really hard to parse :(

--
Stewart Smith

Revision history for this message
Henrik Ingo (hingo) wrote :

Stewart: We have also sphinx set to fail on warnings, so catching warnings is not a problem. The problem is that make doctest and make html are never run - apparently even I've managed to slip in 2 lines that generate errors.

I think adding html and doctest to the test target is the way to go.

Revision history for this message
Stewart Smith (stewart) wrote :

On Sat, 11 Feb 2012 11:39:28 -0000, Henrik Ingo <email address hidden> wrote:
> Stewart: We have also sphinx set to fail on warnings, so catching
> warnings is not a problem. The problem is that make doctest and make
> html are never run - apparently even I've managed to slip in 2 lines
> that generate errors.

sounds good to me.

--
Stewart Smith

lp:~hingo/drizzle/fix-make-html updated
2506. By Henrik Ingo

Include generation of docs into make test, so it is actually routinely
tested. Hopefully we'll catch broken docs more often with this.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'docs/administration/plugins.rst'
--- docs/administration/plugins.rst 2011-11-14 22:29:19 +0000
+++ docs/administration/plugins.rst 2012-02-12 21:22:20 +0000
@@ -22,7 +22,7 @@
22 * :ref:`collation_dictionary_plugin` - Data Dictionary for schema, table, column, indexes, etc (collation_dictionary)22 * :ref:`collation_dictionary_plugin` - Data Dictionary for schema, table, column, indexes, etc (collation_dictionary)
23 * :ref:`compression_plugin` - UDFs for compression functions (compression)23 * :ref:`compression_plugin` - UDFs for compression functions (compression)
24 * :ref:`connection_id_plugin` - Return the current connection_id (connection_id)24 * :ref:`connection_id_plugin` - Return the current connection_id (connection_id)
25 * :ref:`console_plugin` - Console Client (console)25 * console_plugin - Console Client (console) (TODO: documentation missing)
26 * :ref:`crc32_plugin` - CRC32 Function (crc32)26 * :ref:`crc32_plugin` - CRC32 Function (crc32)
27 * :ref:`default_replicator_plugin` - Default Replicator (default_replicator)27 * :ref:`default_replicator_plugin` - Default Replicator (default_replicator)
28 * :ref:`drizzle_protocol_plugin` - Drizzle Protocol (drizzle_protocol)28 * :ref:`drizzle_protocol_plugin` - Drizzle Protocol (drizzle_protocol)
@@ -32,7 +32,7 @@
32 * :ref:`hex_functions_plugin` - Convert a string to HEX() or from UNHEX() (hex_functions)32 * :ref:`hex_functions_plugin` - Convert a string to HEX() or from UNHEX() (hex_functions)
33 * :ref:`information_schema_dictionary_plugin` - Data Dictionary for ANSI information schema, etc (information_schema_dictionary)33 * :ref:`information_schema_dictionary_plugin` - Data Dictionary for ANSI information schema, etc (information_schema_dictionary)
34 * :ref:`innobase_plugin` - Supports transactions, row-level locking, and foreign keys (innobase)34 * :ref:`innobase_plugin` - Supports transactions, row-level locking, and foreign keys (innobase)
35 * :ref:`ipv6_function_plugin` - IPV6() function (ipv6_function)35 * ipv6_function_plugin - IPV6() function (ipv6_function) (TODO: documentation missing)
36 * :ref:`js_plugin` - Execute JavaScript code with supplied arguments (js)36 * :ref:`js_plugin` - Execute JavaScript code with supplied arguments (js)
37 * :ref:`length_plugin` - Return the byte length of a string (length)37 * :ref:`length_plugin` - Return the byte length of a string (length)
38 * :ref:`logging_stats_plugin` - User Statistics as DATA_DICTIONARY tables (logging_stats)38 * :ref:`logging_stats_plugin` - User Statistics as DATA_DICTIONARY tables (logging_stats)
@@ -40,7 +40,7 @@
40 * :ref:`md5_plugin` - UDF for computing md5sum (md5)40 * :ref:`md5_plugin` - UDF for computing md5sum (md5)
41 * :ref:`memory_plugin` - Hash based, stored in memory, useful for temporary tables (memory)41 * :ref:`memory_plugin` - Hash based, stored in memory, useful for temporary tables (memory)
42 * :ref:`multi_thread_plugin` - One Thread Per Session Scheduler (multi_thread)42 * :ref:`multi_thread_plugin` - One Thread Per Session Scheduler (multi_thread)
43 * :ref:`myisam_plugin` - Default engine as of MySQL 3.23 with great performance (myisam)43 * :ref:`myisam_plugin` - Default engine as of MySQL 3.23, used for temporary tables (myisam)
44 * :ref:`mysql_protocol_plugin` - MySQL Protocol Module (mysql_protocol)44 * :ref:`mysql_protocol_plugin` - MySQL Protocol Module (mysql_protocol)
45 * :ref:`mysql_unix_socket_protocol_plugin` - MySQL Unix Socket Protocol (mysql_unix_socket_protocol)45 * :ref:`mysql_unix_socket_protocol_plugin` - MySQL Unix Socket Protocol (mysql_unix_socket_protocol)
46 * :ref:`protocol_dictionary_plugin` - Provides dictionary for protocol counters. (protocol_dictionary)46 * :ref:`protocol_dictionary_plugin` - Provides dictionary for protocol counters. (protocol_dictionary)
4747
=== modified file 'docs/include.am'
--- docs/include.am 2011-06-07 21:19:19 +0000
+++ docs/include.am 2012-02-12 21:22:20 +0000
@@ -3,24 +3,21 @@
3# All paths should be given relative to the root3# All paths should be given relative to the root
44
5EXTRA_DIST+= \5EXTRA_DIST+= \
6 docs/_static \6 ${top_srcdir}/docs/_static \
7 docs/_templates \7 ${top_srcdir}/docs/_templates \
8 docs/conf.py \8 ${top_srcdir}/docs/conf.py \
9 docs/Doxyfile \9 ${top_srcdir}/docs/Doxyfile \
10 docs/drizzled_header.html \10 ${top_srcdir}/docs/drizzled_header.html \
11 docs/logo.png \11 ${top_srcdir}/docs/*.png \
12 docs/plugins/list.rst \12 ${top_srcdir}/docs/pyext/__init__.py \
13 docs/pyext/__init__.py \13 ${top_srcdir}/docs/pyext/options.py \
14 docs/pyext/options.py \14 ${top_srcdir}/docs/pyext/confval.py \
15 docs/pyext/confval.py \15 ${top_srcdir}/docs/pyext/dbtable.py \
16 docs/pyext/dbtable.py \16 ${top_srcdir}/docs/python-inv.txt \
17 docs/_static/drizzle.ico \17 ${top_srcdir}/docs/_static/drizzle.ico \
18 ${top_srcdir}/docs/*.rst \18 ${top_srcdir}/docs/*.rst \
19 ${top_srcdir}/docs/clients/*.rst \19 ${top_srcdir}/docs/*/*.rst \
20 ${top_srcdir}/docs/contributing/*.rst \20 ${top_srcdir}/docs/*/*/*.rst
21 ${top_srcdir}/docs/libdrizzle/*.rst \
22 ${top_srcdir}/docs/installing/*.rst \
23 ${top_srcdir}/docs/testing/*.rst
2421
25# Makefile for Sphinx documentation22# Makefile for Sphinx documentation
26#23#
2724
=== modified file 'tests/include.am'
--- tests/include.am 2011-10-05 20:40:33 +0000
+++ tests/include.am 2012-02-12 21:22:20 +0000
@@ -142,7 +142,7 @@
142# will then calculate the various port numbers it needs from this,142# will then calculate the various port numbers it needs from this,
143# making sure each user use different ports.143# making sure each user use different ports.
144144
145test: tests/var/drizzle check145test: html tests/var/drizzle check
146146
147# Please keep the list of tests in alphabetical order for ease of147# Please keep the list of tests in alphabetical order for ease of
148# maintenance and verification148# maintenance and verification