Changes between Version 19 and Version 20 of DocsTranslationsProject
- Timestamp:
- Jun 26, 2007, 1:49:26 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DocsTranslationsProject
v19 v20 66 66 # (See accompanying file LICENSE_1_0.txt or copy at 67 67 # http://www.boost.org/LICENSE_1_0.txt) 68 69 68 70 69 # Quickbook … … 151 150 [/ 152 151 Boost.LibrayName 153 Copyright (c) 2006-2007 Matias Capeletto152 Copyright (c) Year author name 154 153 155 154 Distributed under the Boost Software License, Version 1.0. … … 207 206 [[Br]] Quickbook allows us to import code chuncks, instead of harcoding them in the qbk source. 208 207 This allow as to be sure that every code example will be in sync and with out typos. 209 [[Br]] Example:210 {{{211 212 }}}213 [[Br]] Use it qbk source:214 208 [[Br]] Example: 215 209 {{{ … … 248 242 249 243 }}} 244 [[Br]] Use it qbk source: 245 [[Br]] Example: 246 {{{ 247 [/ 248 Boost.LibrayName 249 Copyright (c) Year author name 250 251 Distributed under the Boost Software License, Version 1.0. 252 (See accompanying file LICENSE_1_0.txt or copy at 253 http://www.boost.org/LICENSE_1_0.txt) 254 ] 255 256 [/ QuickBook Document version 1.4 ] 257 258 [/ Section specifics code ] 259 260 [import ../example/doc/example_name.cpp] 261 262 [/ Sections ] 263 264 [section Larger section] 265 266 [section Introduction] 267 268 A few lines. 269 We can easily use the imported code: 270 271 [DocCodeFunctionName] 272 273 And then the main function 274 275 [DocCodeExampleName] 276 277 That is it! 278 279 [endsect] 280 281 [include larger_section/subsection_name.qbk] 282 283 [endsect] 284 285 }}} 250 286 * '''example/doc/Jamfile.v2''' 251 287 [[Br]] Testsuite for the doc examples. … … 253 289 {{{ 254 290 291 # Boost.LibraryName 292 # 293 # Copyright (c) Years author name, author name 294 # 295 # Distributed under the Boost Software License, Version 1.0. 296 # (See accompanying file LICENSE_1_0.txt or copy at 297 # http://www.boost.org/LICENSE_1_0.txt) 298 299 import testing ; 300 301 test-suite "doc_code" 302 : 303 [ compile compilable_example.cpp ] 304 [ run runable_example.cpp ] 305 [ compile-fail compile_fail_example.cpp ] 306 ; 255 307 256 308 }}} … … 263 315 [[Br]] Example: 264 316 {{{ 317 318 265 319 266 320 }}}