Re: [quickbook] Does import work?

Steven Watanabe <[email protected]>
Newsgroups gmane.comp.lib.boost.documentation
Organization Providere Consulting, Inc.
Message-ID <[email protected]>
AMDG

On 10/15/2011 12:11 PM, Rene Rivera wrote:
> I'm revisiting some of my languishing libraries that where meant to be
> submitted for Boost. And I'm adding documentation.. Which given the
> nature of one of them I'm going with the route of inserting much of the
> documentation into the code headers, ala Doxygen but using the QUickbook
> import facility. But...
> 
> I can't seem to get the following to actually do anything:
> 
> ====predef.qbk====
> [article Predef ...]
> [section Reference]
> [import boost/predef/version_number.h]
> [endsect]
> ====
> 
> ====boost/predef/version_number.h====
> /* Copyright... */
> 
> #ifndef BOOST_PREDEF_VERSION_NUMBER_H
> #define BOOST_PREDEF_VERSION_NUMBER_H
> 
> /*`
> [heading BOOST_VERSION_NUMBER macro]
> 
> Blah, blah:
> 
> * One
> * Two
> 
> */
> #define BOOST_VERSION_MACRO(a,b,c)
> 
> #endif
> ====
> 
> There's no errors reported. And the import special comment Quickbook
> part doesn't show up in any of the output. Am I doing something silly?
> Or did this never work? Or is it no longer working?
> 

You're not using it quite correctly.  Add

//[version_number

//]

around the code you want to include and in the
quickbook file put [version_number] where you
want it to be expanded.

In Christ,
Steven Watanabe

_______________________________________________
Boost-docs mailing list
[email protected]
http://lists.boost.org/mailman/listinfo.cgi/boost-docs
signature.asc (application/pgp-signature, 490 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQEcBAEBAgAGBQJOmd4pAAoJEDTBQuhymLHSR7QH/2WQKZ7L0uuYR/3UIqwJnb7j
Us2RpwWWfqPtQ6BKlpayFgbW+Ws+W9pu3ahg7uf3j5HVhfyDNcIlbHk0djX5SW/D
gqqGzFF51G1qdMJ1i0H40PTPqu55DSzW8JM3b1OkCZbuKC36lkQWiYdQzuCfV48B
W1ofz/uOMW/mM4x7YidQqcVv3NmZt3QdREML0J++diXgQZ296D9J79oTqUOQXjv9
BubrpUblRwJ7vgtlEwMjCQk08vysXIrBIOe6QNPZ+21pIBDqyL9opOT9f4Uqotqz
qpF6goOiLUASSSkXUnKd52odcucL1cuu6A6HE4GVDb7riE5YS+W3EnADZfIUNTI=
=7PPc
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.