| | @@ -63,20 +63,25 @@ |
| 63 | 63 | Finally, the <i><filename></i> element of the URL is the |
| 64 | 64 | pathname of the documentation file relative to the root of the source |
| 65 | 65 | tree. |
| 66 | 66 | |
| 67 | 67 | The mimetype (and thus the rendering) of documentation files is |
| 68 | | -determined by the file suffix. Fossil currently understands 192 |
| 68 | +determined by the file suffix. Fossil currently understands 197 |
| 69 | 69 | different file suffixes, including all the popular ones such as |
| 70 | 70 | ".css", ".gif", ".htm", ".html", ".jpg", ".jpeg", ".png", and ".txt". |
| 71 | 71 | |
| 72 | 72 | Documentation files whose names end in ".wiki" use the |
| 73 | 73 | [/wiki_rules | same markup as wiki pages] - |
| 74 | 74 | a safe subset of HTML together with some wiki rules for paragraph |
| 75 | | -breaks, lists, and hyperlinks. The ".wiki" and ".txt" pages |
| 75 | +breaks, lists, and hyperlinks. |
| 76 | +Documentation files ending in ".md" or ".markdown" use the |
| 77 | +Markdown markup langauge. |
| 78 | +Documentation files ending in ".txt" are plain text. |
| 79 | +Wiki, markdown, and plain text documentation files |
| 76 | 80 | are rendered with the standard fossil header and footer added. |
| 77 | | -All other mimetypes are delivered directly to the requesting |
| 81 | +All other mimetypes (including ".html" files) |
| 82 | +are delivered directly to the requesting |
| 78 | 83 | web browser without interpretation, additions, or changes. |
| 79 | 84 | |
| 80 | 85 | <h2>Examples</h2> |
| 81 | 86 | |
| 82 | 87 | This file that you are currently reading is an example of |
| | @@ -83,11 +88,11 @@ |
| 83 | 88 | embedded documentation. The name of this file in the fossil |
| 84 | 89 | source tree is "<b>www/embeddeddoc.wiki</b>". |
| 85 | 90 | You are perhaps looking at this |
| 86 | 91 | file using the URL: |
| 87 | 92 | |
| 88 | | - [http://www.fossil-scm.org/index.html/doc/tip/www/embeddeddoc.wiki]. |
| 93 | + [http://www.fossil-scm.org/index.html/doc/trunk/www/embeddeddoc.wiki]. |
| 89 | 94 | |
| 90 | 95 | The first part of this path, the "[http://www.fossil-scm.org/index.html]", |
| 91 | 96 | is the base URL. You might have originally typed: |
| 92 | 97 | [http://www.fossil-scm.org/]. The web server at the www.fossil-scm.org |
| 93 | 98 | site automatically redirects such links by appending "index.html". The |
| | @@ -101,20 +106,20 @@ |
| 101 | 106 | </pre></blockquote> |
| 102 | 107 | |
| 103 | 108 | This is one of three ways to set up a |
| 104 | 109 | <a href="quickstart.wiki#serversetup">fossil web server</a>. |
| 105 | 110 | |
| 106 | | -The "<b>/tip/</b>" part of the URL tells fossil to use |
| 107 | | -the documentation files from the check-in that was checked in most |
| 108 | | -recently. If you wanted to see an historical version of this document, |
| 109 | | -you could substitute the name of a check-in for "<b>/tip/</b>". |
| 111 | +The "<b>/trunk/</b>" part of the URL tells fossil to use |
| 112 | +the documentation files from the most recent trunk check-in. |
| 113 | +If you wanted to see an historical version of this document, |
| 114 | +you could substitute the name of a check-in for "<b>/trunk/</b>". |
| 110 | 115 | For example, to see the version of this document associated with |
| 111 | | -check-in [9be1b00392], simply replace the "<b>/tip/</b>" with |
| 116 | +check-in [9be1b00392], simply replace the "<b>/trunk/</b>" with |
| 112 | 117 | "<b>/9be1b00392/</b>". You can also substitute the symbolic name |
| 113 | 118 | for a particular version or branch. For example, you might |
| 114 | | -replace "<b>/tip/</b>" with "<b>/trunk/</b>" to get the latest |
| 115 | | -version of this document in the "trunk" branch. The symbolic name |
| 119 | +replace "<b>/trunk/</b>" with "<b>/experimental/</b>" to get the latest |
| 120 | +version of this document in the "experimental" branch. The symbolic name |
| 116 | 121 | can also be a date and time string in any of the following formats:</p> |
| 117 | 122 | |
| 118 | 123 | <ul> |
| 119 | 124 | <li> <i>YYYY-MM-DD</i> |
| 120 | 125 | <li> <i>YYYY-MM-DD</i><b>T</b><i>HH:MM</i> |
| | @@ -135,12 +140,12 @@ |
| 135 | 140 | The file that encodes this document is stored in the fossil source tree under |
| 136 | 141 | the name "<b>www/embeddeddoc.wiki</b>" and so that name forms the |
| 137 | 142 | last part of the URL for this document. |
| 138 | 143 | |
| 139 | 144 | As I sit writing this documentation file, I am testing my work by |
| 140 | | -running the "<b>fossil server</b>" command line and viewing |
| 145 | +running the "<b>fossil ui</b>" command line and viewing |
| 141 | 146 | <b>http://localhost:8080/doc/ckout/www/embeddeddoc.wiki</b> in |
| 142 | 147 | Firefox. I am doing this even though I have not yet checked in |
| 143 | 148 | the "<b>www/embeddeddoc.wiki</b>" file for the first time. Using |
| 144 | 149 | the special "<b>ckout</b>" version identifier on the "<b>/doc</b>" page |
| 145 | 150 | it is easy to make multiple changes to multiple files and see how they all |
| 146 | 151 | look together before committing anything to the repository. |
| 147 | 152 | |