Commit Graph

1191 Commits

Author SHA1 Message Date
Daniel James
c03018061e Make code_snippet_action language ignorant.
[SVN r53022]
2009-05-15 06:13:34 +00:00
Daniel James
19feea7249 Separate code snippet grammar and actions.
[SVN r53021]
2009-05-15 06:13:17 +00:00
Daniel James
177b47c57f Use the correct source type for snippets.
[SVN r53020]
2009-05-15 06:12:59 +00:00
Daniel James
bbed541eb1 Use '.py' when checking for python files.
[SVN r53019]
2009-05-15 06:12:42 +00:00
Daniel James
9d8da44b97 Import Python and C code snippets in quickbook, by Jaroslav Gresula. Refs #3029.
[SVN r53018]
2009-05-15 06:12:13 +00:00
Douglas Gregor
a53f744bd2 Merge CMake fixes from the trunk
[SVN r52811]
2009-05-06 21:12:42 +00:00
Douglas Gregor
2578d3a288 Update subdirectories that Quickbook needs to use when building modularized
[SVN r52801]
2009-05-06 14:37:31 +00:00
Daniel James
4078431c29 Document 'boost:' links in boostbook & quickbook.
Merged revisions 52352 via svnmerge from 
https://svn.boost.org/svn/boost/trunk

........
  r52352 | danieljames | 2009-04-12 12:21:59 +0100 (Sun, 12 Apr 2009) | 3 lines
  
  Document 'boost:' links in boostbook & quickbook.
  
  Fixes #2861.
........


[SVN r52398]
2009-04-15 07:37:45 +00:00
Daniel James
573d7b76f5 Document 'boost:' links in boostbook & quickbook.
Fixes #2861.

[SVN r52352]
2009-04-12 11:21:59 +00:00
Daniel James
2da89ae716 Merge various documentation changes.
Merged revisions 51323-51324,51680,52082-52083,52237,52321,52326,52344 via svnmerge from 
https://svn.boost.org/svn/boost/trunk

........
  r51323 | danieljames | 2009-02-18 21:24:36 +0000 (Wed, 18 Feb 2009) | 1 line
  
  More information in error messages in the doxygen2boostbook script.
........
  r51324 | danieljames | 2009-02-18 21:25:12 +0000 (Wed, 18 Feb 2009) | 1 line
  
  Deal with top level enums from doxygen.
........
  r51680 | danieljames | 2009-03-10 08:09:14 +0000 (Tue, 10 Mar 2009) | 1 line
  
  Try to support inbodydescription in doxygen xml.
........
  r52082 | danieljames | 2009-03-31 20:43:13 +0100 (Tue, 31 Mar 2009) | 1 line
  
  Support global variable reference in boostbook.
........
  r52083 | danieljames | 2009-03-31 20:43:35 +0100 (Tue, 31 Mar 2009) | 2 lines
  
  Support reference for variables that are both static and mutable in
  boostbook.
........
  r52237 | danieljames | 2009-04-07 20:26:18 +0100 (Tue, 07 Apr 2009) | 7 lines
  
  Fix calculate_relative_path
  
  When outdir == "." calculate_relative_path was counting that dot as a
  directory and adding an extra ".." to the result. So only count parts
  that don't equal ".".
  
  Refs #2921
........
  r52321 | danieljames | 2009-04-11 08:55:00 +0100 (Sat, 11 Apr 2009) | 5 lines
  
  Partially revert [51323].
  
  It added partial support for protected and private attributes and friend
  functions. But since it isn't complete support it was doing more harm
  than good.
........
  r52326 | danieljames | 2009-04-11 13:38:30 +0100 (Sat, 11 Apr 2009) | 1 line
  
  Workaround buggy doxygen output. Refs #2937
........
  r52344 | danieljames | 2009-04-12 11:06:24 +0100 (Sun, 12 Apr 2009) | 1 line
  
  Add a test document for doxygen integration.
........


[SVN r52345]
2009-04-12 10:19:46 +00:00
Troy D. Straszheim
532d0bebc3 Silly BUILD_QUICKBOOK. Just use the cmake target.
[SVN r52252]
2009-04-08 12:37:39 +00:00
Daniel James
566b8dd369 Fix calculate_relative_path
When outdir == "." calculate_relative_path was counting that dot as a
directory and adding an extra ".." to the result. So only count parts
that don't equal ".".

Refs #2921

[SVN r52237]
2009-04-07 19:26:18 +00:00
Daniel James
ed6ff64dcc Fix bug handling python and C++ strings.
Fixes #2860.

Merged revisions 51949 via svnmerge from 
https://svn.boost.org/svn/boost/trunk

........
  r51949 | danieljames | 2009-03-24 08:34:09 +0000 (Tue, 24 Mar 2009) | 21 lines
  
  Use our own escape character parser.
  
  We're currently using the spirit escaped character parser. This is a
  strict C parser and causes parse errors for code that we probably should
  accept, such as any hexadecimal encoded characters with a value greater
  than the maximum value of the current platform's 'char'.  This is \x7F
  on some platforms so it rejects '\x80' upwards. As well as rejecting
  characters that might be valid, it also means that quickbook will act
  differently on different platforms.
  
  In python strings, '\xaaa' is equivalent to '\xaa' + 'a', but the spirit
  parser interprets this as a character with value '0xaaa'. So we probably
  should accept these.
  
  I also think we should be liberal about what we accept. IMO it isn't our
  job to enforce correct C++/python, just to create a reasonable
  rendering of our input. So rather than write a parser which understands
  the various types of escapes, I just wrote one that ignores any
  character following a backslash.
  
  Refs #2860.
........


[SVN r52064]
2009-03-30 17:49:15 +00:00
Daniel James
d86a2fe747 Use our own escape character parser.
We're currently using the spirit escaped character parser. This is a
strict C parser and causes parse errors for code that we probably should
accept, such as any hexadecimal encoded characters with a value greater
than the maximum value of the current platform's 'char'.  This is \x7F
on some platforms so it rejects '\x80' upwards. As well as rejecting
characters that might be valid, it also means that quickbook will act
differently on different platforms.

In python strings, '\xaaa' is equivalent to '\xaa' + 'a', but the spirit
parser interprets this as a character with value '0xaaa'. So we probably
should accept these.

I also think we should be liberal about what we accept. IMO it isn't our
job to enforce correct C++/python, just to create a reasonable
rendering of our input. So rather than write a parser which understands
the various types of escapes, I just wrote one that ignores any
character following a backslash.

Refs #2860.

[SVN r51949]
2009-03-24 08:34:09 +00:00
Daniel James
02d3e8e5e8 Sync up the quickbook CMakeLists.txt file
[SVN r51887]
2009-03-21 16:20:03 +00:00
Daniel James
e0f6dafb74 Merge quickbook documentation. Using 'boost:' links.
[SVN r51886]
2009-03-21 16:14:28 +00:00
Daniel James
947809a82b Merged revisions 51403-51404,51800-51801,51803,51883 via svnmerge from
https://svn.boost.org/svn/boost/trunk

........
  r51404 | danieljames | 2009-02-22 23:49:05 +0000 (Sun, 22 Feb 2009) | 2 lines
  
  Write out error count on failure. Looks a bit odd at the moment but
  it'll do. Fixes #1214.
........
  r51800 | danieljames | 2009-03-16 20:18:41 +0000 (Mon, 16 Mar 2009) | 1 line
  
  Avoid a gcc warning about initialization order.
........
  r51801 | danieljames | 2009-03-16 20:19:00 +0000 (Mon, 16 Mar 2009) | 5 lines
  
  Fix syntax error in tests.
  
  There was a failing test caused by a syntax error in a test. The
  solution is probably to improve the syntax in a new version and issue a
  warning in older versions.
........
  r51803 | danieljames | 2009-03-16 20:21:24 +0000 (Mon, 16 Mar 2009) | 1 line
  
  Detab
........


[SVN r51884]
2009-03-21 16:08:52 +00:00
Daniel James
43504cb0b4 Revert r51403.
[SVN r51883]
2009-03-21 15:48:55 +00:00
Daniel James
e466cff240 Detab
[SVN r51803]
2009-03-16 20:21:24 +00:00
Daniel James
630f5f1e9f Fix syntax error in tests.
There was a failing test caused by a syntax error in a test. The
solution is probably to improve the syntax in a new version and issue a
warning in older versions.

[SVN r51801]
2009-03-16 20:19:00 +00:00
Daniel James
b4a24347b4 Avoid a gcc warning about initialization order.
[SVN r51800]
2009-03-16 20:18:41 +00:00
Daniel James
1a46df1047 Merge most of the recent changes to quickbook and boostbook.
Left out doxygen changes: [51323],[51324],[51680]
And a quickbook change which might be a breaking change: [51403]

Fixes #1977, #1170, #1213, #2701.
Refs #2153, #2771.

Merged revisions 51268-51269,51319-51321,51370-51372,51388-51389,51401-51402,51405-51406,51508,51647,51696 via svnmerge from 
https://svn.boost.org/svn/boost/trunk

........
  r51268 | johnmaddock | 2009-02-16 10:39:18 +0000 (Mon, 16 Feb 2009) | 1 line
  
  Add default path for callouts.
........
  r51269 | johnmaddock | 2009-02-16 10:40:26 +0000 (Mon, 16 Feb 2009) | 1 line
  
  Add preliminary HTMLHelp support.
........
  r51319 | danieljames | 2009-02-18 21:22:37 +0000 (Wed, 18 Feb 2009) | 1 line
  
  Remove long out of date warning.
........
  r51320 | danieljames | 2009-02-18 21:23:13 +0000 (Wed, 18 Feb 2009) | 1 line
  
  Write out the quickbook options when the file is missing.
........
  r51321 | danieljames | 2009-02-18 21:23:35 +0000 (Wed, 18 Feb 2009) | 1 line
  
  Add default path for callouts to xhtml.
........
  r51370 | danieljames | 2009-02-21 18:50:00 +0000 (Sat, 21 Feb 2009) | 4 lines
  
  Regenerate boostbook reference documentation and merge with existing
  documentation.
  
  Ref #2153
........
  r51371 | danieljames | 2009-02-21 18:50:14 +0000 (Sat, 21 Feb 2009) | 1 line
  
  Fix links in standalone boostbook documentation.
........
  r51372 | danieljames | 2009-02-21 18:50:25 +0000 (Sat, 21 Feb 2009) | 3 lines
  
  Change license in boostbook docs to boost license.
  
  Douglas Gregor is listed in the blanket permissions file.
........
  r51388 | danieljames | 2009-02-22 11:54:01 +0000 (Sun, 22 Feb 2009) | 1 line
  
  This DTD isn't stable, so I'm calling it a 'development' version. Which is probably wrong, but there you go.
........
  r51389 | danieljames | 2009-02-22 11:54:18 +0000 (Sun, 22 Feb 2009) | 2 lines
  
  Support the alt tag in headername and macroname. Also make headername
  and macroname valid. Refs #1977
........
  r51401 | danieljames | 2009-02-22 23:47:51 +0000 (Sun, 22 Feb 2009) | 8 lines
  
  Add a purpose for macroname, headername, enumname, globalname.
  
  Ref #2153: There's still no documentation for methodname and classname.
  These are actually defined in the docbook DTD for a different purpose so
  I'm not sure how to deal with them.
  
  http://www.docbook.org/tdg/en/html/methodname.html
  http://www.docbook.org/tdg/en/html/classname.html
........
  r51402 | danieljames | 2009-02-22 23:48:37 +0000 (Sun, 22 Feb 2009) | 7 lines
  
  Generate slightly more valid boostbook.
  
  For document types other than library:
  * Don't generate name or dirname for document types.
  * Put title before document info.
  
  Ref #2771
........
  r51405 | danieljames | 2009-02-22 23:49:21 +0000 (Sun, 22 Feb 2009) | 3 lines
  
  Print out unexpected characters as errors.
  
  Ref #1170
........
  r51406 | danieljames | 2009-02-22 23:49:36 +0000 (Sun, 22 Feb 2009) | 1 line
  
  Better handling of errors without line numbers.
........
  r51508 | danieljames | 2009-03-01 14:16:44 +0000 (Sun, 01 Mar 2009) | 3 lines
  
  Try to make anchor and link usage a little clearer.
  
  Refs #1213, #2701
........
  r51647 | danieljames | 2009-03-08 09:45:51 +0000 (Sun, 08 Mar 2009) | 1 line
  
  Display text purposes in function reference.
........
  r51696 | johnmaddock | 2009-03-11 10:22:42 +0000 (Wed, 11 Mar 2009) | 1 line
  
  Set margins to 0pt so they line up with surrounding text rather than appearing outside it - prevents margins from overlapping other content.
........


[SVN r51774]
2009-03-14 11:42:38 +00:00
Daniel James
4e019bf5dc Fix properties on some quickbook files, which wasn't merged properly before.
[SVN r51742]
2009-03-12 21:50:30 +00:00
Daniel James
c88b0511a7 Detab.
[SVN r51644]
2009-03-08 09:44:51 +00:00
Daniel James
ecccb9dc0d Try to make anchor and link usage a little clearer.
Refs #1213, #2701

[SVN r51508]
2009-03-01 14:16:44 +00:00
John Maddock
495d6fa9d3 Merge PDF build changes from Trunk.
[SVN r51417]
2009-02-23 18:39:32 +00:00
Daniel James
be4b655abc Better handling of errors without line numbers.
[SVN r51406]
2009-02-22 23:49:36 +00:00
Daniel James
99442d62da Print out unexpected characters as errors.
Ref #1170

[SVN r51405]
2009-02-22 23:49:21 +00:00
Daniel James
d5c695b6e5 Write out error count on failure. Looks a bit odd at the moment but
it'll do. Fixes #1214.

[SVN r51404]
2009-02-22 23:49:05 +00:00
Daniel James
003d80629b Accept space between 'section:' and the section id.
Ref #2712.

[SVN r51403]
2009-02-22 23:48:51 +00:00
Daniel James
84adcfe135 Generate slightly more valid boostbook.
For document types other than library:
* Don't generate name or dirname for document types.
* Put title before document info.

Ref #2771

[SVN r51402]
2009-02-22 23:48:37 +00:00
Daniel James
308d80e5af Write out the quickbook options when the file is missing.
[SVN r51320]
2009-02-18 21:23:13 +00:00
John Maddock
46f3da7bc8 Add PDF generation options to fix external links to point to the web site.
Added a few more Boostbook based libs that were missed first time around.
Fixed PDF naming issues.

[SVN r51284]
2009-02-17 10:05:58 +00:00
Daniel James
07ff92c619 Merge several changes to boostbook and quickbook.
Fixes #1399

Merged revisions 49231,49459,49988,50068,50084,50091,50109,50125,50142,50159,50163,50175,50193,50207,50210-50213,50215,50222,50246,50513 via svnmerge from 
https://svn.boost.org/svn/boost/trunk

........
  r49231 | danieljames | 2008-10-09 23:14:14 +0100 (Thu, 09 Oct 2008) | 4 lines
  
  Work around the problems with window newlines in position_iterator. (I'm
  about to fix them, but this will get quickbook working immediately).
........
  r49459 | eric_niebler | 2008-10-26 20:24:59 +0000 (Sun, 26 Oct 2008) | 1 line
  
  give data members with <purpose> in synopses the same treatment as functions and typedefs
........
  r49988 | danieljames | 2008-11-28 15:05:21 +0000 (Fri, 28 Nov 2008) | 1 line
  
  When processing template arguments, deal with the case when there's no content after the last space or there are more arguments than expected.
........
  r50068 | johnmaddock | 2008-12-02 13:13:57 +0000 (Tue, 02 Dec 2008) | 1 line
  
  Fix Jamfile by adding <preserve-test-targets>on to test requirements.
........
  r50084 | johnmaddock | 2008-12-03 09:42:52 +0000 (Wed, 03 Dec 2008) | 1 line
  
  Added quickbook-fail-test rule and two tests that make use of it: note that these currently fail.
........
  r50091 | danieljames | 2008-12-03 19:14:42 +0000 (Wed, 03 Dec 2008) | 2 lines
  
  Keep a count of errors in quickbook, and return an error code when appropriate.
........
  r50109 | johnmaddock | 2008-12-04 10:14:19 +0000 (Thu, 04 Dec 2008) | 1 line
  
  Added dependency to the test file.
........
  r50125 | djowel | 2008-12-05 02:13:59 +0000 (Fri, 05 Dec 2008) | 1 line
  
  updated to use "classic" spirit includes and namespace
........
  r50142 | danieljames | 2008-12-05 19:03:19 +0000 (Fri, 05 Dec 2008) | 1 line
  
  Defined BOOST_CYGWIN_PATH when building quickbook on cygwin.
........
  r50159 | danieljames | 2008-12-06 14:07:35 +0000 (Sat, 06 Dec 2008) | 1 line
  
  Copy boostbook.dtd into the correct position for the 1.1 uri. I'm not sure what should be done with the existing location.
........
  r50163 | danieljames | 2008-12-06 19:22:32 +0000 (Sat, 06 Dec 2008) | 1 line
  
  Revert my change to the quickbook jamfile, it isn't adequately tested.
........
  r50175 | danieljames | 2008-12-07 12:37:07 +0000 (Sun, 07 Dec 2008) | 1 line
  
  Fix processing of unmatched escape characters in code - and issue a warning for unexpected characters.
........
  r50193 | danieljames | 2008-12-08 16:17:13 +0000 (Mon, 08 Dec 2008) | 1 line
  
  Use new include paths for classic spirit in quickbook text_diff utility.
........
  r50207 | danieljames | 2008-12-08 21:51:56 +0000 (Mon, 08 Dec 2008) | 1 line
  
  Fail on a mismatched '' in the python and c++ syntax highlighters. And then ignore the rest of the code block to avoid further errors and warnings.
........
  r50210 | danieljames | 2008-12-08 23:14:23 +0000 (Mon, 08 Dec 2008) | 1 line
  
  Hard fail on quickbook post process errors.
........
  r50211 | danieljames | 2008-12-08 23:20:26 +0000 (Mon, 08 Dec 2008) | 1 line
  
  Since I accidently added a quickbook fail tests to the Jamfile in the last checkin, I might as well add them.
........
  r50212 | danieljames | 2008-12-08 23:35:08 +0000 (Mon, 08 Dec 2008) | 1 line
  
  Remove an unused variable in order to avoid a gcc warning.
........
  r50213 | danieljames | 2008-12-08 23:35:20 +0000 (Mon, 08 Dec 2008) | 1 line
  
  Run the docbook chunker quietly, unless boostbook.verbose is set.
........
  r50215 | danieljames | 2008-12-08 23:38:29 +0000 (Mon, 08 Dec 2008) | 1 line
  
  Put the markup strings in their own cpp file to avoid gcc warnings.
........
  r50222 | danieljames | 2008-12-09 13:52:07 +0000 (Tue, 09 Dec 2008) | 1 line
  
  Fix some xsl type errors.
........
  r50246 | speedsnail | 2008-12-12 15:06:44 +0000 (Fri, 12 Dec 2008) | 1 line
  
  Make doxygen command "\throw" work with boostbook.
........
  r50513 | danieljames | 2009-01-08 12:01:50 +0000 (Thu, 08 Jan 2009) | 1 line
  
  Support both windows and cygwin paths in cygwin quickbook.
........


[SVN r51281]
2009-02-17 00:01:03 +00:00
Daniel James
bd041be9d9 Use the new 'boost:' links for the hash, unordered and quickbook documentation.
[SVN r51262]
2009-02-15 19:32:04 +00:00
John Maddock
f5f25404db Add Jamfile to build PDF versions of all the docs.
Tweaked some existing Jamfiles so that PDF build finds all the necessary image files etc.
Tweaked fo.xsl to provide more options by default, and improve formatting.

[SVN r51104]
2009-02-08 16:59:14 +00:00
Troy D. Straszheim
9de842401f Placeholder docs for cmake
[SVN r50934]
2009-01-31 20:25:15 +00:00
Troy D. Straszheim
79359f450a sync up with jamfile
[SVN r50932]
2009-01-31 18:57:33 +00:00
Troy D. Straszheim
08062df544 merge of cmake build files from trunk per beman
[SVN r50756]
2009-01-24 18:57:20 +00:00
Daniel James
a7f6c62eb7 Support both windows and cygwin paths in cygwin quickbook.
[SVN r50513]
2009-01-08 12:01:50 +00:00
Daniel James
24a5723e6f Put the markup strings in their own cpp file to avoid gcc warnings.
[SVN r50215]
2008-12-08 23:38:29 +00:00
Daniel James
0dd7d64507 Remove an unused variable in order to avoid a gcc warning.
[SVN r50212]
2008-12-08 23:35:08 +00:00
Daniel James
ae54194c43 Since I accidently added a quickbook fail tests to the Jamfile in the last checkin, I might as well add them.
[SVN r50211]
2008-12-08 23:20:26 +00:00
Daniel James
5d51d43801 Hard fail on quickbook post process errors.
[SVN r50210]
2008-12-08 23:14:23 +00:00
Daniel James
a6b8f8aac4 Fail on a mismatched '' in the python and c++ syntax highlighters. And then ignore the rest of the code block to avoid further errors and warnings.
[SVN r50207]
2008-12-08 21:51:56 +00:00
Daniel James
f677418c29 Use new include paths for classic spirit in quickbook text_diff utility.
[SVN r50193]
2008-12-08 16:17:13 +00:00
Daniel James
0c651ef0e1 Fix processing of unmatched escape characters in code - and issue a warning for unexpected characters.
[SVN r50175]
2008-12-07 12:37:07 +00:00
Daniel James
135334e8bb Revert my change to the quickbook jamfile, it isn't adequately tested.
[SVN r50163]
2008-12-06 19:22:32 +00:00
Daniel James
4cbce74150 Defined BOOST_CYGWIN_PATH when building quickbook on cygwin.
[SVN r50142]
2008-12-05 19:03:19 +00:00
Joel de Guzman
b4ffe7b629 updated to use "classic" spirit includes and namespace
[SVN r50125]
2008-12-05 02:13:59 +00:00