Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Add the optional mimetype= query parameter to the /doc URI. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
f969b6cddeb051079343396dc0a39c35 |
| User & Date: | drh 2009-09-22 11:15:17.000 |
Context
|
2009-09-23
| ||
| 13:08 | Change default ticket viewer format to display ticket title as wiki. Show event summaries as wiki on the timeline. Allow <nowiki> markup in "NOBLOCK" wiki renderings. Ticket [218153bb7c3]. ... (check-in: d6bfe8d9a8 user: drh tags: trunk) | |
|
2009-09-22
| ||
| 11:15 | Add the optional mimetype= query parameter to the /doc URI. ... (check-in: f969b6cdde user: drh tags: trunk) | |
|
2009-09-21
| ||
| 20:40 | Add a <br clear="both"> before the footer on every page. ... (check-in: 249f1beaec user: drh tags: trunk) | |
Changes
Changes to src/doc.c.
| ︙ | ︙ | |||
314 315 316 317 318 319 320 321 322 323 324 325 326 327 | } return "application/x-fossil-artifact"; } /* ** WEBPAGE: doc ** URL: /doc?name=BASELINE/PATH ** ** BASELINE can be either a baseline uuid prefix or magic words "tip" ** to me the most recently checked in baseline or "ckout" to mean the ** content of the local checkout, if any. PATH is the relative pathname ** of some file. This method returns the file content. ** ** If PATH matches the patterns *.wiki or *.txt then formatting content | > | 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 | } return "application/x-fossil-artifact"; } /* ** WEBPAGE: doc ** URL: /doc?name=BASELINE/PATH ** URL: /doc/BASELINE/PATH ** ** BASELINE can be either a baseline uuid prefix or magic words "tip" ** to me the most recently checked in baseline or "ckout" to mean the ** content of the local checkout, if any. PATH is the relative pathname ** of some file. This method returns the file content. ** ** If PATH matches the patterns *.wiki or *.txt then formatting content |
| ︙ | ︙ | |||
436 437 438 439 440 441 442 |
}
db_end_transaction(0);
}
/* The file is now contained in the filebody blob. Deliver the
** file to the user
*/
| > > | > | 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 |
}
db_end_transaction(0);
}
/* The file is now contained in the filebody blob. Deliver the
** file to the user
*/
zMime = P("mimetype");
if( zMime==0 ){
zMime = mimetype_from_name(zName);
}
if( strcmp(zMime, "application/x-fossil-wiki")==0 ){
Blob title, tail;
if( wiki_find_title(&filebody, &title, &tail) ){
style_header(blob_str(&title));
wiki_convert(&tail, 0, 0);
}else{
style_header("Documentation");
|
| ︙ | ︙ |