Differences From Artifact [682899f6dc]:
- File src/doc.c — part of check-in [f88e2e7a13] at 2009-06-07 17:27:45 on branch trunk — If embedded wiki documentation begins with <title>...</title> then use the text within the markup as the title of the document. (user: drh size: 20022)
To Artifact [a9193f6c29]:
- File src/doc.c — part of check-in [292e585661] at 2009-08-15 12:18:08 on branch trunk — If the special "ckout" of the "/doc" webpage is used and the server is not within a local check-out, then automatically convert "ckout" to "tip". (user: drh size: 20115) [more...]
| ︙ | |||
346 347 348 349 350 351 352 353 354 355 356 357 358 359 | 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 | + + + |
}
memcpy(zBaseline, zName, i);
zBaseline[i] = 0;
zName += i;
while( zName[0]=='/' ){ zName++; }
if( !file_is_simple_pathname(zName) ){
goto doc_not_found;
}
if( strcmp(zBaseline,"ckout")==0 && db_open_local()==0 ){
strcpy(zBaseline,"tip");
}
if( strcmp(zBaseline,"ckout")==0 ){
/* Read from the local checkout */
char *zFullpath;
db_must_be_within_tree();
zFullpath = mprintf("%s/%s", g.zLocalRoot, zName);
if( !file_isfile(zFullpath) ){
|
| ︙ |