Fossil

Check-in [ccd8a9cb]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add experimental 'raw' mode for embedded TH1 docs feature.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:ccd8a9cbe4fc43b0b373a0a415b445e9bbbeacc0
User & Date: mistachkin 2016-08-12 13:44:26
Context
2016-08-12
22:45
Improved documentation of the date and time stamps understood by most fossil commands and web pages. No non-documentation changes were made, but comments in eight source files were edited. check-in: cd77e064 user: rberteig tags: trunk
13:44
Add experimental 'raw' mode for embedded TH1 docs feature. check-in: ccd8a9cb user: mistachkin tags: trunk
13:33
Update the built-in SQLite to 3.14.1 release check-in: f80532e9 user: jan.nijtmans tags: trunk
04:46
Add experimental 'raw' mode for embedded TH1 docs. Closed-Leaf check-in: fbd31d4c user: mistachkin tags: th1RawDocs
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/doc.c.

684
685
686
687
688
689
690


691

692

693

694
695
696
697
698
699
700
    if( blob_size(&title)==0 ) blob_append(&title,zName,-1);
    style_header("%s", blob_str(&title));
    convert_href_and_output(&filebody);
    style_footer();
#ifdef FOSSIL_ENABLE_TH1_DOCS
  }else if( Th_AreDocsEnabled() &&
            fossil_strcmp(zMime, "application/x-th1")==0 ){


    style_header("%h", zName);

    Th_Render(blob_str(&filebody));

    style_footer();

#endif
  }else{
    cgi_set_content_type(zMime);
    cgi_set_content(&filebody);
  }
  if( nMiss>=ArraySize(azSuffix) ) cgi_set_status(404, "Not Found");
  db_end_transaction(0);







>
>
|
>

>
|
>







684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
    if( blob_size(&title)==0 ) blob_append(&title,zName,-1);
    style_header("%s", blob_str(&title));
    convert_href_and_output(&filebody);
    style_footer();
#ifdef FOSSIL_ENABLE_TH1_DOCS
  }else if( Th_AreDocsEnabled() &&
            fossil_strcmp(zMime, "application/x-th1")==0 ){
    int raw = P("raw")!=0;
    if( !raw ){
      style_header("%h", zName);
    }
    Th_Render(blob_str(&filebody));
    if( !raw ){
      style_footer();
    }
#endif
  }else{
    cgi_set_content_type(zMime);
    cgi_set_content(&filebody);
  }
  if( nMiss>=ArraySize(azSuffix) ) cgi_set_status(404, "Not Found");
  db_end_transaction(0);