Artifact 7d3b426042d8245fc79908bd33939746dcae6477:
File
www/embeddeddoc.wiki
part of check-in
[5150b9de83]
- Fix typos in documentation.
by
drh on
2009-09-04 12:20:39.
0000: 3c 74 69 74 6c 65 3e 4d 61 6e 61 67 69 6e 67 20 <title>Managing
0010: 50 72 6f 6a 65 63 74 20 44 6f 63 75 6d 65 6e 74 Project Document
0020: 61 74 69 6f 6e 3c 2f 74 69 74 6c 65 3e 0a 3c 68 ation</title>.<h
0030: 31 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 1 align="center"
0040: 3e 4d 61 6e 61 67 69 6e 67 20 50 72 6f 6a 65 63 >Managing Projec
0050: 74 20 44 6f 63 75 6d 65 6e 74 61 74 69 6f 6e 3c t Documentation<
0060: 2f 68 31 3e 0a 0a 46 6f 73 73 69 6c 20 70 72 6f /h1>..Fossil pro
0070: 76 69 64 65 73 20 61 20 62 75 69 6c 74 2d 69 6e vides a built-in
0080: 20 3c 61 20 68 72 65 66 3d 22 77 69 6b 69 74 68 <a href="wikith
0090: 65 6f 72 79 2e 77 69 6b 69 22 3e 77 69 6b 69 3c eory.wiki">wiki<
00a0: 2f 61 3e 0a 74 68 61 74 20 63 61 6e 20 62 65 20 /a>.that can be
00b0: 75 73 65 64 20 74 6f 20 73 74 6f 72 65 20 74 68 used to store th
00c0: 65 0a 64 6f 63 75 6d 65 6e 74 61 74 69 6f 6e 20 e.documentation
00d0: 66 6f 72 20 61 20 70 72 6f 6a 65 63 74 2e 20 20 for a project.
00e0: 54 68 69 73 20 69 73 20 73 75 66 66 69 63 69 65 This is sufficie
00f0: 6e 74 20 66 6f 72 20 6d 61 6e 79 20 70 72 6f 6a nt for many proj
0100: 65 63 74 73 2e 0a 49 66 20 79 6f 75 72 20 70 72 ects..If your pr
0110: 6f 6a 65 63 74 20 69 73 20 77 65 6c 6c 2d 73 65 oject is well-se
0120: 72 76 65 64 20 62 79 20 77 69 6b 69 20 64 6f 63 rved by wiki doc
0130: 75 6d 65 6e 74 61 74 69 6f 6e 2c 20 74 68 65 6e umentation, then
0140: 20 79 6f 75 0a 6e 65 65 64 20 72 65 61 64 20 6e you.need read n
0150: 6f 20 66 75 72 74 68 65 72 2e 0a 0a 42 75 74 20 o further...But
0160: 66 6f 73 73 69 6c 20 61 6c 73 6f 20 73 75 70 70 fossil also supp
0170: 6f 72 74 73 20 65 6d 62 65 64 64 69 6e 67 20 70 orts embedding p
0180: 72 6f 6a 65 63 74 20 64 6f 63 75 6d 65 6e 74 61 roject documenta
0190: 74 69 6f 6e 20 61 73 0a 66 69 6c 65 73 20 69 6e tion as.files in
01a0: 20 74 68 65 20 73 6f 75 72 63 65 20 74 72 65 65 the source tree
01b0: 2e 20 20 54 68 65 72 65 20 61 72 65 20 73 65 76 . There are sev
01c0: 65 72 61 6c 20 70 6f 74 65 6e 74 69 61 6c 20 61 eral potential a
01d0: 64 76 61 6e 74 61 67 65 73 0a 74 6f 20 74 68 69 dvantages.to thi
01e0: 73 20 61 70 70 72 6f 61 63 68 3a 0a 0a 20 20 31 s approach:.. 1
01f0: 2e 20 20 54 68 65 20 64 6f 63 75 6d 65 6e 74 61 . The documenta
0200: 74 69 6f 6e 20 66 69 6c 65 73 20 61 72 65 20 76 tion files are v
0210: 65 72 73 69 6f 6e 65 64 20 74 6f 67 65 74 68 65 ersioned togethe
0220: 72 20 77 69 74 68 20 74 68 65 0a 20 20 20 20 20 r with the.
0230: 20 73 6f 75 72 63 65 20 63 6f 64 65 20 66 69 6c source code fil
0240: 65 73 20 73 6f 20 69 74 20 69 73 20 61 6c 77 61 es so it is alwa
0250: 79 73 20 63 6c 65 61 72 20 77 68 61 74 20 76 65 ys clear what ve
0260: 72 73 69 6f 6e 20 6f 66 0a 20 20 20 20 20 20 74 rsion of. t
0270: 68 65 20 64 6f 63 75 6d 65 6e 74 61 74 69 6f 6e he documentation
0280: 20 67 6f 65 73 20 77 69 74 68 20 61 20 70 61 72 goes with a par
0290: 74 69 63 75 6c 61 72 20 72 65 6c 65 61 73 65 2e ticular release.
02a0: 0a 0a 20 20 32 2e 20 20 54 68 65 20 64 6f 63 75 .. 2. The docu
02b0: 6d 65 6e 74 61 74 69 6f 6e 20 66 69 6c 65 73 20 mentation files
02c0: 63 61 6e 20 62 65 20 65 64 69 74 65 64 20 75 73 can be edited us
02d0: 69 6e 67 20 79 6f 75 72 20 66 61 76 6f 72 69 74 ing your favorit
02e0: 65 0a 20 20 20 20 20 20 74 65 78 74 20 65 64 69 e. text edi
02f0: 74 6f 72 20 69 6e 73 74 65 61 64 20 6f 66 20 68 tor instead of h
0300: 61 76 69 6e 67 20 74 6f 20 75 73 65 20 74 68 65 aving to use the
0310: 20 77 65 62 2d 62 61 73 65 64 20 77 69 6b 69 0a web-based wiki.
0320: 20 20 20 20 20 20 65 64 69 74 6f 72 2e 0a 0a 20 editor...
0330: 20 33 2e 20 20 4f 6e 6c 79 20 70 65 6f 70 6c 65 3. Only people
0340: 20 77 69 74 68 20 63 68 65 63 6b 2d 69 6e 20 70 with check-in p
0350: 72 69 76 69 6c 65 67 65 73 20 63 61 6e 20 6d 6f rivileges can mo
0360: 64 69 66 79 20 74 68 65 20 64 6f 63 75 6d 65 6e dify the documen
0370: 74 61 74 69 6f 6e 2e 0a 20 20 20 20 20 20 28 54 tation.. (T
0380: 68 69 73 20 6d 69 67 68 74 20 62 65 20 65 69 74 his might be eit
0390: 68 65 72 20 61 6e 20 61 64 76 61 6e 74 61 67 65 her an advantage
03a0: 20 6f 72 20 64 69 73 61 64 76 61 6e 74 61 67 65 or disadvantage
03b0: 2c 20 64 65 70 65 6e 64 69 6e 67 0a 20 20 20 20 , depending.
03c0: 20 20 6f 6e 20 74 68 65 20 6e 61 74 75 72 65 20 on the nature
03d0: 6f 66 20 79 6f 75 72 20 70 72 6f 6a 65 63 74 2e of your project.
03e0: 29 0a 0a 57 65 20 77 69 6c 6c 20 63 61 6c 6c 20 )..We will call
03f0: 64 6f 63 75 6d 65 6e 74 61 74 69 6f 6e 20 74 68 documentation th
0400: 61 74 20 69 73 20 69 6e 63 6c 75 64 65 64 20 61 at is included a
0410: 73 20 66 69 6c 65 73 20 69 6e 20 74 68 65 20 73 s files in the s
0420: 6f 75 72 63 65 20 74 72 65 65 0a 22 65 6d 62 65 ource tree."embe
0430: 64 64 65 64 20 64 6f 63 75 6d 65 6e 74 61 74 69 dded documentati
0440: 6f 6e 22 2e 0a 0a 3c 68 32 3e 46 6f 73 73 69 6c on"...<h2>Fossil
0450: 20 53 75 70 70 6f 72 74 20 46 6f 72 20 45 6d 62 Support For Emb
0460: 65 64 64 65 64 20 44 6f 63 75 6d 65 6e 74 61 74 edded Documentat
0470: 69 6f 6e 3c 2f 68 32 3e 0a 0a 54 68 65 20 66 6f ion</h2>..The fo
0480: 73 73 69 6c 20 77 65 62 20 69 6e 74 65 72 66 61 ssil web interfa
0490: 63 65 20 73 75 70 70 6f 72 74 73 20 65 6d 62 65 ce supports embe
04a0: 64 64 65 64 20 64 6f 63 75 6d 65 6e 74 61 74 69 dded documentati
04b0: 6f 6e 20 75 73 69 6e 67 0a 74 68 65 20 22 2f 64 on using.the "/d
04c0: 6f 63 22 20 70 61 67 65 2e 20 20 54 6f 20 61 63 oc" page. To ac
04d0: 63 65 73 73 20 65 6d 62 65 64 64 65 64 20 64 6f cess embedded do
04e0: 63 75 6d 65 6e 74 61 74 69 6f 6e 2c 20 6f 6e 65 cumentation, one
04f0: 20 70 6f 69 6e 74 73 0a 61 20 77 65 62 20 62 72 points.a web br
0500: 6f 77 73 65 72 20 74 6f 20 61 20 66 6f 73 73 69 owser to a fossi
0510: 6c 20 55 52 4c 20 6f 66 20 74 68 65 20 66 6f 6c l URL of the fol
0520: 6c 6f 77 69 6e 67 20 66 6f 72 6d 3a 0a 0a 3c 62 lowing form:..<b
0530: 6c 6f 63 6b 71 75 6f 74 65 3e 0a 3c 69 3e 26 6c lockquote>.<i>&l
0540: 74 3b 62 61 73 65 75 72 6c 26 67 74 3b 3c 2f 69 t;baseurl></i
0550: 3e 3c 62 69 67 3e 3c 62 3e 2f 64 6f 63 2f 3c 2f ><big><b>/doc/</
0560: 62 3e 3c 2f 62 69 67 3e 3c 69 3e 26 6c 74 3b 76 b></big><i><v
0570: 65 72 73 69 6f 6e 26 67 74 3b 3c 2f 69 3e 3c 62 ersion></i><b
0580: 69 67 3e 3c 62 3e 2f 3c 2f 62 3e 3c 2f 62 69 67 ig><b>/</b></big
0590: 3e 3c 69 3e 26 6c 74 3b 66 69 6c 65 6e 61 6d 65 ><i><filename
05a0: 26 67 74 3b 3c 2f 69 3e 0a 3c 2f 62 6c 6f 63 6b ></i>.</block
05b0: 71 75 6f 74 65 3e 0a 0a 54 68 65 20 3c 69 3e 26 quote>..The <i>&
05c0: 6c 74 3b 62 61 73 65 75 72 6c 26 67 74 3b 3c 2f lt;baseurl></
05d0: 69 3e 20 69 73 20 74 68 65 20 6d 61 69 6e 20 55 i> is the main U
05e0: 52 4c 20 75 73 65 64 20 74 6f 20 61 63 63 65 73 RL used to acces
05f0: 73 20 74 68 65 20 66 6f 73 73 69 6c 20 77 65 62 s the fossil web
0600: 20 73 65 72 76 65 72 2e 0a 46 6f 72 20 65 78 61 server..For exa
0610: 6d 70 6c 65 2c 20 74 68 65 20 3c 69 3e 26 6c 74 mple, the <i><
0620: 3b 62 61 73 65 75 72 6c 26 67 74 3b 3c 2f 69 3e ;baseurl></i>
0630: 20 66 6f 72 20 74 68 65 20 66 6f 73 73 69 6c 20 for the fossil
0640: 70 72 6f 6a 65 63 74 20 69 74 73 65 6c 66 20 69 project itself i
0650: 73 0a 65 69 74 68 65 72 20 3c 62 3e 68 74 74 70 s.either <b>http
0660: 3a 2f 2f 77 77 77 2e 66 6f 73 73 69 6c 2d 73 63 ://www.fossil-sc
0670: 6d 2e 6f 72 67 2f 66 6f 73 73 69 6c 3c 2f 62 3e m.org/fossil</b>
0680: 20 6f 72 0a 3c 62 3e 68 74 74 70 3a 2f 2f 77 77 or.<b>http://ww
0690: 77 2e 68 77 61 63 69 2e 63 6f 6d 2f 63 67 69 2d w.hwaci.com/cgi-
06a0: 62 69 6e 2f 66 6f 73 73 69 6c 3c 2f 62 3e 2e 0a bin/fossil</b>..
06b0: 49 66 20 79 6f 75 20 6c 61 75 6e 63 68 20 74 68 If you launch th
06c0: 65 20 77 65 62 20 73 65 72 76 65 72 20 75 73 69 e web server usi
06d0: 6e 67 20 74 68 65 20 22 3c 62 3e 66 6f 73 73 69 ng the "<b>fossi
06e0: 6c 20 73 65 72 76 65 72 3c 2f 62 3e 22 20 63 6f l server</b>" co
06f0: 6d 6d 61 6e 64 20 6c 69 6e 65 2c 0a 74 68 65 6e mmand line,.then
0700: 20 74 68 65 20 3c 69 3e 26 6c 74 3b 62 61 73 65 the <i><base
0710: 75 72 6c 26 67 74 3b 3c 2f 69 3e 20 69 73 20 75 url></i> is u
0720: 73 75 61 6c 6c 79 0a 3c 62 3e 68 74 74 70 3a 2f sually.<b>http:/
0730: 2f 6c 6f 63 61 6c 68 6f 73 74 3a 38 30 38 30 2f /localhost:8080/
0740: 3c 2f 62 3e 2e 0a 0a 54 68 65 20 3c 69 3e 26 6c </b>...The <i>&l
0750: 74 3b 76 65 72 73 69 6f 6e 26 67 74 3b 3c 2f 69 t;version></i
0760: 3e 20 69 73 20 61 6e 79 20 75 6e 69 71 75 65 20 > is any unique
0770: 70 72 65 66 69 78 20 6f 66 20 74 68 65 20 63 68 prefix of the ch
0780: 65 63 6b 2d 69 6e 20 49 44 20 66 6f 72 20 0a 74 eck-in ID for .t
0790: 68 65 20 63 68 65 63 6b 2d 69 6e 20 63 6f 6e 74 he check-in cont
07a0: 61 69 6e 69 6e 67 20 74 68 65 20 64 6f 63 75 6d aining the docum
07b0: 65 6e 74 61 74 69 6f 6e 20 79 6f 75 20 77 61 6e entation you wan
07c0: 74 20 74 6f 20 61 63 63 65 73 73 2e 0a 4f 72 20 t to access..Or
07d0: 3c 69 3e 26 6c 74 3b 76 65 72 73 69 6f 6e 26 67 <i><version&g
07e0: 74 3b 3c 2f 69 3e 20 63 61 6e 20 62 65 20 74 68 t;</i> can be th
07f0: 65 20 6e 61 6d 65 20 6f 66 20 61 20 0a 5b 2e 2f e name of a .[./
0800: 62 72 61 6e 63 68 69 6e 67 2e 77 69 6b 69 20 7c branching.wiki |
0810: 20 62 72 61 6e 63 68 5d 20 69 6e 20 6f 72 64 65 branch] in orde
0820: 72 20 74 6f 20 73 68 6f 77 0a 74 68 65 20 64 6f r to show.the do
0830: 63 75 6d 65 6e 74 61 74 69 6f 6e 20 66 6f 72 20 cumentation for
0840: 74 68 65 20 6c 61 74 65 73 74 20 76 65 72 73 69 the latest versi
0850: 6f 6e 20 6f 66 20 74 68 61 74 20 62 72 61 6e 63 on of that branc
0860: 68 2e 0a 4f 72 20 3c 69 3e 26 6c 74 3b 76 65 72 h..Or <i><ver
0870: 73 69 6f 6e 26 67 74 3b 3c 2f 69 3e 20 63 61 6e sion></i> can
0880: 20 62 65 20 6f 6e 65 20 6f 66 20 74 68 65 20 6b be one of the k
0890: 65 79 77 6f 72 64 73 20 22 3c 62 3e 74 69 70 3c eywords "<b>tip<
08a0: 2f 62 3e 22 20 6f 72 0a 22 3c 62 3e 63 6b 6f 75 /b>" or."<b>ckou
08b0: 74 3c 2f 62 3e 22 2e 20 20 54 68 65 20 22 3c 62 t</b>". The "<b
08c0: 3e 74 69 70 3c 2f 62 3e 22 20 6b 65 79 77 6f 72 >tip</b>" keywor
08d0: 64 20 6d 65 61 6e 73 20 74 6f 20 75 73 65 20 74 d means to use t
08e0: 68 65 20 6d 6f 73 74 20 72 65 63 65 6e 74 0a 63 he most recent.c
08f0: 68 65 63 6b 65 64 2d 69 6e 2e 20 20 54 68 69 73 hecked-in. This
0900: 20 69 73 20 75 73 65 66 75 6c 20 69 66 20 79 6f is useful if yo
0910: 75 20 77 61 6e 74 20 74 6f 20 73 65 65 20 74 68 u want to see th
0920: 65 20 76 65 72 79 20 6c 61 74 65 73 74 0a 76 65 e very latest.ve
0930: 72 73 69 6f 6e 20 6f 66 20 74 68 65 20 64 6f 63 rsion of the doc
0940: 75 6d 65 6e 74 61 74 69 6f 6e 2e 20 20 54 68 65 umentation. The
0950: 20 22 3c 62 3e 63 6b 6f 75 74 3c 2f 62 3e 22 20 "<b>ckout</b>"
0960: 6b 65 79 77 6f 72 64 73 20 6d 65 61 6e 73 20 74 keywords means t
0970: 6f 0a 70 75 6c 6c 20 74 68 65 20 64 6f 63 75 6d o.pull the docum
0980: 65 6e 74 61 74 69 6f 6e 20 66 69 6c 65 20 66 72 entation file fr
0990: 6f 6d 20 74 68 65 20 6c 6f 63 61 6c 20 73 6f 75 om the local sou
09a0: 72 63 65 20 74 72 65 65 20 6f 6e 20 64 69 73 6b rce tree on disk
09b0: 2c 20 6e 6f 74 0a 66 72 6f 6d 20 74 68 65 20 61 , not.from the a
09c0: 6e 79 20 63 68 65 63 6b 2d 69 6e 2e 20 20 54 68 ny check-in. Th
09d0: 65 20 22 3c 62 3e 63 6b 6f 75 74 3c 2f 62 3e 22 e "<b>ckout</b>"
09e0: 20 6b 65 79 77 6f 72 64 20 6e 6f 72 6d 61 6c 6c keyword normall
09f0: 79 0a 6f 6e 6c 79 20 77 6f 72 6b 73 20 77 68 65 y.only works whe
0a00: 6e 20 79 6f 75 20 73 74 61 72 74 20 79 6f 75 72 n you start your
0a10: 20 73 65 72 76 65 72 20 75 73 69 6e 67 20 74 68 server using th
0a20: 65 20 22 3c 62 3e 66 6f 73 73 69 6c 20 73 65 72 e "<b>fossil ser
0a30: 76 65 72 3c 2f 62 3e 22 0a 6f 72 20 22 3c 62 3e ver</b>".or "<b>
0a40: 66 6f 73 73 69 6c 20 75 69 3c 2f 62 3e 22 0a 63 fossil ui</b>".c
0a50: 6f 6d 6d 61 6e 64 20 6c 69 6e 65 20 61 6e 64 20 ommand line and
0a60: 69 73 20 69 6e 74 65 6e 64 65 64 20 74 6f 20 73 is intended to s
0a70: 68 6f 77 20 77 68 61 74 20 74 68 65 20 64 6f 63 how what the doc
0a80: 75 6d 65 6e 74 61 74 69 6f 6e 20 79 6f 75 20 61 umentation you a
0a90: 72 65 20 63 75 72 72 65 6e 74 6c 79 0a 65 64 69 re currently.edi
0aa0: 74 69 6e 67 20 6c 6f 6f 6b 73 20 6c 69 6b 65 20 ting looks like
0ab0: 62 65 66 6f 72 65 20 79 6f 75 20 63 68 65 63 6b before you check
0ac0: 20 69 74 20 69 6e 2e 0a 0a 46 69 6e 61 6c 6c 79 it in...Finally
0ad0: 2c 20 74 68 65 20 3c 69 3e 26 6c 74 3b 66 69 6c , the <i><fil
0ae0: 65 6e 61 6d 65 26 67 74 3b 3c 2f 69 3e 20 65 6c ename></i> el
0af0: 65 6d 65 6e 74 20 6f 66 20 74 68 65 20 55 52 4c ement of the URL
0b00: 20 69 73 20 74 68 65 20 66 75 6c 6c 0a 70 61 74 is the full.pat
0b10: 68 6e 61 6d 65 20 6f 66 20 74 68 65 20 64 6f 63 hname of the doc
0b20: 75 6d 65 6e 74 61 74 69 6f 6e 20 66 69 6c 65 20 umentation file
0b30: 73 74 61 72 74 69 6e 67 20 66 72 6f 6d 20 74 68 starting from th
0b40: 65 20 72 6f 6f 74 20 6f 66 20 74 68 65 20 73 6f e root of the so
0b50: 75 72 63 65 0a 74 72 65 65 2e 0a 0a 54 68 65 20 urce.tree...The
0b60: 6d 69 6d 65 74 79 70 65 20 28 61 6e 64 20 74 68 mimetype (and th
0b70: 75 73 20 74 68 65 20 72 65 6e 64 65 72 69 6e 67 us the rendering
0b80: 29 20 6f 66 20 64 6f 63 75 6d 65 6e 74 61 74 69 ) of documentati
0b90: 6f 6e 20 66 69 6c 65 73 20 69 73 20 0a 64 65 74 on files is .det
0ba0: 65 72 6d 69 6e 65 64 20 62 79 20 74 68 65 20 66 ermined by the f
0bb0: 69 6c 65 20 73 75 66 66 69 78 2e 20 20 46 6f 73 ile suffix. Fos
0bc0: 73 69 6c 20 63 75 72 72 65 6e 74 6c 79 20 75 6e sil currently un
0bd0: 64 65 72 73 74 61 6e 64 73 20 31 39 32 0a 64 69 derstands 192.di
0be0: 66 66 65 72 65 6e 74 20 66 69 6c 65 20 73 75 66 fferent file suf
0bf0: 66 69 78 65 73 2c 20 69 6e 63 6c 75 64 69 6e 67 fixes, including
0c00: 20 61 6c 6c 20 74 68 65 20 70 6f 70 75 6c 61 72 all the popular
0c10: 20 6f 6e 65 73 20 73 75 63 68 20 61 73 0a 22 2e ones such as.".
0c20: 63 73 73 22 2c 20 22 2e 67 69 66 22 2c 20 22 2e css", ".gif", ".
0c30: 68 74 6d 22 2c 20 22 2e 68 74 6d 6c 22 2c 20 22 htm", ".html", "
0c40: 2e 6a 70 67 22 2c 20 22 2e 6a 70 65 67 22 2c 20 .jpg", ".jpeg",
0c50: 22 2e 70 6e 67 22 2c 20 61 6e 64 20 22 2e 74 78 ".png", and ".tx
0c60: 74 22 2e 0a 0a 44 6f 63 75 6d 65 6e 74 61 74 69 t"...Documentati
0c70: 6f 6e 20 66 69 6c 65 73 20 77 68 6f 73 65 20 6e on files whose n
0c80: 61 6d 65 73 20 65 6e 64 20 69 6e 20 22 2e 77 69 ames end in ".wi
0c90: 6b 69 22 20 75 73 65 20 74 68 65 20 0a 5b 2f 77 ki" use the .[/w
0ca0: 69 6b 69 5f 72 75 6c 65 73 20 7c 20 73 61 6d 65 iki_rules | same
0cb0: 20 6d 61 72 6b 75 70 20 61 73 20 77 69 6b 69 20 markup as wiki
0cc0: 70 61 67 65 73 5d 20 2d 0a 61 20 73 61 66 65 20 pages] -.a safe
0cd0: 73 75 62 73 65 74 20 6f 66 20 48 54 4d 4c 20 74 subset of HTML t
0ce0: 6f 67 65 74 68 65 72 20 77 69 74 68 20 73 6f 6d ogether with som
0cf0: 65 20 77 69 6b 69 20 72 75 6c 65 73 20 66 6f 72 e wiki rules for
0d00: 20 70 61 72 61 67 72 61 70 68 0a 62 72 65 61 6b paragraph.break
0d10: 73 2c 20 6c 69 73 74 73 2c 20 61 6e 64 20 68 79 s, lists, and hy
0d20: 70 65 72 6c 69 6e 6b 73 2e 20 20 54 68 65 20 22 perlinks. The "
0d30: 2e 77 69 6b 69 22 20 61 6e 64 20 22 2e 74 78 74 .wiki" and ".txt
0d40: 22 20 70 61 67 65 73 0a 61 72 65 20 72 65 6e 64 " pages.are rend
0d50: 65 72 65 64 20 77 69 74 68 20 74 68 65 20 73 74 ered with the st
0d60: 61 6e 64 61 72 64 20 66 6f 73 73 69 6c 20 68 65 andard fossil he
0d70: 61 64 65 72 20 61 6e 64 20 66 6f 6f 74 65 72 20 ader and footer
0d80: 61 64 64 65 64 2e 0a 41 6c 6c 20 6f 74 68 65 72 added..All other
0d90: 20 6d 69 6d 65 74 79 70 65 73 20 61 72 65 20 64 mimetypes are d
0da0: 65 6c 69 76 65 72 65 64 20 64 69 72 65 63 74 6c elivered directl
0db0: 79 20 74 6f 20 74 68 65 20 72 65 71 75 65 73 74 y to the request
0dc0: 69 6e 67 0a 77 65 62 20 62 72 6f 77 73 65 72 20 ing.web browser
0dd0: 77 69 74 68 6f 75 74 20 69 6e 74 65 72 70 72 65 without interpre
0de0: 74 61 74 69 6f 6e 2c 20 61 64 64 69 74 69 6f 6e tation, addition
0df0: 73 2c 20 6f 72 20 63 68 61 6e 67 65 73 2e 0a 0a s, or changes...
0e00: 3c 68 32 3e 45 78 61 6d 70 6c 65 73 3c 2f 68 32 <h2>Examples</h2
0e10: 3e 0a 0a 54 68 69 73 20 66 69 6c 65 20 74 68 61 >..This file tha
0e20: 74 20 79 6f 75 20 61 72 65 20 63 75 72 72 65 6e t you are curren
0e30: 74 6c 79 20 72 65 61 64 69 6e 67 20 69 73 20 61 tly reading is a
0e40: 6e 20 65 78 61 6d 70 6c 65 20 6f 66 0a 65 6d 62 n example of.emb
0e50: 65 64 64 65 64 20 64 6f 63 75 6d 65 6e 74 61 74 edded documentat
0e60: 69 6f 6e 2e 20 20 54 68 65 20 6e 61 6d 65 20 6f ion. The name o
0e70: 66 20 74 68 69 73 20 66 69 6c 65 20 69 6e 20 74 f this file in t
0e80: 68 65 20 66 6f 73 73 69 6c 0a 73 6f 75 72 63 65 he fossil.source
0e90: 20 74 72 65 65 20 69 73 20 22 3c 62 3e 77 77 77 tree is "<b>www
0ea0: 2f 65 6d 62 65 64 64 65 64 64 6f 63 2e 77 69 6b /embeddeddoc.wik
0eb0: 69 3c 2f 62 3e 22 2e 0a 59 6f 75 20 61 72 65 20 i</b>"..You are
0ec0: 70 65 72 68 61 70 73 20 6c 6f 6f 6b 69 6e 67 20 perhaps looking
0ed0: 61 74 20 74 68 69 73 0a 66 69 6c 65 20 75 73 69 at this.file usi
0ee0: 6e 67 20 74 68 65 20 55 52 4c 3a 0a 0a 20 20 20 ng the URL:..
0ef0: 5b 68 74 74 70 3a 2f 2f 77 77 77 2e 66 6f 73 73 [http://www.foss
0f00: 69 6c 2d 73 63 6d 2e 6f 72 67 2f 69 6e 64 65 78 il-scm.org/index
0f10: 2e 68 74 6d 6c 2f 64 6f 63 2f 74 69 70 2f 77 77 .html/doc/tip/ww
0f20: 77 2f 65 6d 62 65 64 64 65 64 64 6f 63 2e 77 69 w/embeddeddoc.wi
0f30: 6b 69 5d 2e 0a 0a 54 68 65 20 66 69 72 73 74 20 ki]...The first
0f40: 70 61 72 74 20 6f 66 20 74 68 69 73 20 70 61 74 part of this pat
0f50: 68 2c 20 74 68 65 20 22 5b 68 74 74 70 3a 2f 2f h, the "[http://
0f60: 77 77 77 2e 66 6f 73 73 69 6c 2d 73 63 6d 2e 6f www.fossil-scm.o
0f70: 72 67 2f 69 6e 64 65 78 2e 68 74 6d 6c 5d 22 2c rg/index.html]",
0f80: 0a 69 73 20 74 68 65 20 62 61 73 65 20 55 52 4c .is the base URL
0f90: 2e 20 20 59 6f 75 20 6d 69 67 68 74 20 68 61 76 . You might hav
0fa0: 65 20 6f 72 69 67 69 6e 61 6c 6c 79 20 74 79 70 e originally typ
0fb0: 65 64 3a 0a 5b 68 74 74 70 3a 2f 2f 77 77 77 2e ed:.[http://www.
0fc0: 66 6f 73 73 69 6c 2d 73 63 6d 2e 6f 72 67 2f 5d fossil-scm.org/]
0fd0: 2e 20 20 54 68 65 20 77 65 62 20 73 65 72 76 65 . The web serve
0fe0: 72 20 61 74 20 74 68 65 20 77 77 77 2e 66 6f 73 r at the www.fos
0ff0: 73 69 6c 2d 73 63 6d 2e 6f 72 67 0a 73 69 74 65 sil-scm.org.site
1000: 20 61 75 74 6f 6d 61 74 69 63 61 6c 6c 79 20 72 automatically r
1010: 65 64 69 72 65 63 74 73 20 73 75 63 68 20 6c 69 edirects such li
1020: 6e 6b 73 20 62 79 20 61 70 70 65 6e 64 69 6e 67 nks by appending
1030: 20 22 69 6e 64 65 78 2e 68 74 6d 6c 22 2e 20 20 "index.html".
1040: 54 68 65 0a 22 69 6e 64 65 78 2e 68 74 6d 6c 22 The."index.html"
1050: 20 66 69 6c 65 20 6f 6e 20 77 77 77 2e 66 6f 73 file on www.fos
1060: 73 69 6c 2d 73 63 6d 2e 6f 72 67 20 69 73 20 72 sil-scm.org is r
1070: 65 61 6c 6c 79 20 61 20 43 47 49 20 73 63 72 69 eally a CGI scri
1080: 70 74 0a 28 64 6f 20 6e 6f 74 20 62 65 20 6d 69 pt.(do not be mi
1090: 73 6c 65 61 64 20 62 79 20 74 68 65 20 6e 61 6d slead by the nam
10a0: 65 29 20 77 68 69 63 68 20 72 75 6e 73 20 74 68 e) which runs th
10b0: 65 20 66 6f 73 73 69 6c 20 77 65 62 20 73 65 72 e fossil web ser
10c0: 76 69 63 65 20 69 6e 0a 43 47 49 20 6d 6f 64 65 vice in.CGI mode
10d0: 2e 20 20 54 68 65 20 22 69 6e 64 65 78 2e 68 74 . The "index.ht
10e0: 6d 6c 22 20 43 47 49 20 73 63 72 69 70 74 20 6c ml" CGI script l
10f0: 6f 6f 6b 73 20 6c 69 6b 65 20 74 68 69 73 3a 0a ooks like this:.
1100: 0a 3c 62 6c 6f 63 6b 71 75 6f 74 65 3e 3c 70 72 .<blockquote><pr
1110: 65 3e 0a 23 21 2f 75 73 72 2f 62 69 6e 2f 66 6f e>.#!/usr/bin/fo
1120: 73 73 69 6c 0a 72 65 70 6f 73 69 74 6f 72 79 3a ssil.repository:
1130: 20 2f 66 6f 73 73 69 6c 2f 66 6f 73 73 69 6c 2e /fossil/fossil.
1140: 66 6f 73 73 69 6c 0a 3c 2f 70 72 65 3e 3c 2f 62 fossil.</pre></b
1150: 6c 6f 63 6b 71 75 6f 74 65 3e 0a 0a 54 68 69 73 lockquote>..This
1160: 20 69 73 20 6f 6e 65 20 6f 66 20 74 68 72 65 65 is one of three
1170: 20 77 61 79 73 20 74 6f 20 73 65 74 20 75 70 20 ways to set up
1180: 61 20 0a 3c 61 20 68 72 65 66 3d 22 71 75 69 63 a .<a href="quic
1190: 6b 73 74 61 72 74 2e 77 69 6b 69 23 73 65 72 76 kstart.wiki#serv
11a0: 65 72 73 65 74 75 70 22 3e 66 6f 73 73 69 6c 20 ersetup">fossil
11b0: 77 65 62 20 73 65 72 76 65 72 3c 2f 61 3e 2e 0a web server</a>..
11c0: 0a 54 68 65 20 22 3c 62 3e 2f 74 69 70 2f 3c 2f .The "<b>/tip/</
11d0: 62 3e 22 20 70 61 72 74 20 6f 66 20 74 68 65 20 b>" part of the
11e0: 55 52 4c 20 74 65 6c 6c 73 20 66 6f 73 73 69 6c URL tells fossil
11f0: 20 74 6f 20 75 73 65 0a 74 68 65 20 64 6f 63 75 to use.the docu
1200: 6d 65 6e 74 61 74 69 6f 6e 20 66 69 6c 65 73 20 mentation files
1210: 66 72 6f 6d 20 74 68 65 20 63 68 65 63 6b 2d 69 from the check-i
1220: 6e 20 74 68 61 74 20 77 61 73 20 63 68 65 63 6b n that was check
1230: 65 64 20 69 6e 20 6d 6f 73 74 0a 72 65 63 65 6e ed in most.recen
1240: 74 6c 79 2e 20 20 49 66 20 79 6f 75 20 77 61 6e tly. If you wan
1250: 74 65 64 20 74 6f 20 73 65 65 20 61 6e 20 68 69 ted to see an hi
1260: 73 74 6f 72 69 63 61 6c 20 76 65 72 73 69 6f 6e storical version
1270: 20 6f 66 20 74 68 69 73 20 64 6f 63 75 6d 65 6e of this documen
1280: 74 2c 0a 79 6f 75 20 63 6f 75 6c 64 20 73 75 62 t,.you could sub
1290: 73 74 69 74 75 74 65 20 74 68 65 20 6e 61 6d 65 stitute the name
12a0: 20 6f 66 20 61 20 63 68 65 63 6b 2d 69 6e 20 66 of a check-in f
12b0: 6f 72 20 22 3c 62 3e 2f 74 69 70 2f 3c 2f 62 3e or "<b>/tip/</b>
12c0: 22 2e 0a 46 6f 72 20 65 78 61 6d 70 6c 65 2c 20 "..For example,
12d0: 74 6f 20 73 65 65 20 74 68 65 20 76 65 72 73 69 to see the versi
12e0: 6f 6e 20 6f 66 20 74 68 69 73 20 64 6f 63 75 6d on of this docum
12f0: 65 6e 74 20 61 73 73 6f 63 69 61 74 65 64 20 77 ent associated w
1300: 69 74 68 0a 63 68 65 63 6b 2d 69 6e 20 5b 39 62 ith.check-in [9b
1310: 65 31 62 30 30 33 39 32 5d 2c 20 73 69 6d 70 6c e1b00392], simpl
1320: 79 20 72 65 70 6c 61 63 65 20 74 68 65 20 22 3c y replace the "<
1330: 62 3e 2f 74 69 70 2f 3c 2f 62 3e 22 20 77 69 74 b>/tip/</b>" wit
1340: 68 0a 22 3c 62 3e 2f 39 62 65 31 62 30 30 33 39 h."<b>/9be1b0039
1350: 32 2f 3c 2f 62 3e 22 2e 20 20 59 6f 75 20 63 61 2/</b>". You ca
1360: 6e 20 61 6c 73 6f 20 73 75 62 73 74 69 74 75 74 n also substitut
1370: 65 20 74 68 65 20 73 79 6d 62 6f 6c 69 63 20 6e e the symbolic n
1380: 61 6d 65 0a 66 6f 72 20 61 20 70 61 72 74 69 63 ame.for a partic
1390: 75 6c 61 72 20 76 65 72 73 69 6f 6e 20 6f 72 20 ular version or
13a0: 62 72 61 6e 63 68 2e 20 20 46 6f 72 20 65 78 61 branch. For exa
13b0: 6d 70 6c 65 2c 20 79 6f 75 20 6d 69 67 68 74 0a mple, you might.
13c0: 72 65 70 6c 61 63 65 20 22 3c 62 3e 2f 74 69 70 replace "<b>/tip
13d0: 2f 3c 2f 62 3e 22 20 77 69 74 68 20 22 3c 62 3e /</b>" with "<b>
13e0: 2f 74 72 75 6e 6b 2f 3c 2f 62 3e 22 20 74 6f 20 /trunk/</b>" to
13f0: 67 65 74 20 74 68 65 20 6c 61 74 65 73 74 0a 76 get the latest.v
1400: 65 72 73 69 6f 6e 20 6f 66 20 74 68 69 73 20 64 ersion of this d
1410: 6f 63 75 6d 65 6e 74 20 69 6e 20 74 68 65 20 22 ocument in the "
1420: 74 72 75 6e 6b 22 20 62 72 61 6e 63 68 2e 20 20 trunk" branch.
1430: 28 41 73 20 6f 66 20 74 68 69 73 20 77 72 69 74 (As of this writ
1440: 69 6e 67 2c 0a 74 68 65 20 73 65 6c 66 2d 68 6f ing,.the self-ho
1450: 73 74 69 6e 67 20 66 6f 73 73 69 6c 20 72 65 70 sting fossil rep
1460: 6f 73 69 74 6f 72 79 20 6f 6e 6c 79 20 68 61 73 ository only has
1470: 20 61 20 73 69 6e 67 6c 65 20 62 72 61 6e 63 68 a single branch
1480: 20 22 74 72 75 6e 6b 22 20 61 6e 64 0a 73 6f 20 "trunk" and.so
1490: 22 74 72 75 6e 6b 22 20 61 6e 64 20 22 74 69 70 "trunk" and "tip
14a0: 22 20 61 6d 6f 75 6e 74 20 74 6f 20 74 68 65 20 " amount to the
14b0: 73 61 6d 65 20 74 68 69 6e 67 2c 20 62 75 74 20 same thing, but
14c0: 74 68 65 79 20 77 6f 75 6c 64 20 62 65 20 64 69 they would be di
14d0: 66 66 65 72 65 6e 74 0a 69 6e 20 61 20 70 72 6f fferent.in a pro
14e0: 6a 65 63 74 20 77 69 74 68 20 6d 75 6c 74 69 70 ject with multip
14f0: 6c 65 20 62 72 61 6e 63 68 65 73 2e 29 0a 0a 54 le branches.)..T
1500: 68 65 20 66 69 6c 65 20 74 68 61 74 20 65 6e 63 he file that enc
1510: 6f 64 65 73 20 74 68 69 73 20 64 6f 63 75 6d 65 odes this docume
1520: 6e 74 20 69 73 20 73 74 6f 72 65 64 20 69 6e 20 nt is stored in
1530: 74 68 65 20 66 6f 73 73 69 6c 20 73 6f 75 72 63 the fossil sourc
1540: 65 20 74 72 65 65 20 75 6e 64 65 72 0a 74 68 65 e tree under.the
1550: 20 6e 61 6d 65 20 22 3c 62 3e 77 77 77 2f 65 6d name "<b>www/em
1560: 62 65 64 64 65 64 64 6f 63 2e 77 69 6b 69 3c 2f beddeddoc.wiki</
1570: 62 3e 22 20 61 6e 64 20 73 6f 20 74 68 61 74 20 b>" and so that
1580: 6e 61 6d 65 20 66 6f 72 6d 73 20 74 68 65 0a 6c name forms the.l
1590: 61 73 74 20 70 61 72 74 20 6f 66 20 74 68 65 20 ast part of the
15a0: 55 52 4c 20 66 6f 72 20 74 68 69 73 20 64 6f 63 URL for this doc
15b0: 75 6d 65 6e 74 2e 0a 0a 41 73 20 49 20 73 69 74 ument...As I sit
15c0: 20 77 72 69 74 69 6e 67 20 74 68 69 73 20 64 6f writing this do
15d0: 63 75 6d 65 6e 74 61 74 69 6f 6e 20 66 69 6c 65 cumentation file
15e0: 2c 20 49 20 61 6d 20 74 65 73 74 69 6e 67 20 6d , I am testing m
15f0: 79 20 77 6f 72 6b 20 62 79 0a 72 75 6e 6e 69 6e y work by.runnin
1600: 67 20 74 68 65 20 22 3c 62 3e 66 6f 73 73 69 6c g the "<b>fossil
1610: 20 73 65 72 76 65 72 3c 2f 62 3e 22 20 63 6f 6d server</b>" com
1620: 6d 61 6e 64 20 6c 69 6e 65 20 61 6e 64 20 76 69 mand line and vi
1630: 65 77 69 6e 67 0a 3c 62 3e 68 74 74 70 3a 2f 2f ewing.<b>http://
1640: 6c 6f 63 61 6c 68 6f 73 74 3a 38 30 38 30 2f 64 localhost:8080/d
1650: 6f 63 2f 63 6b 6f 75 74 2f 77 77 77 2f 65 6d 62 oc/ckout/www/emb
1660: 65 64 64 65 64 64 6f 63 2e 77 69 6b 69 3c 2f 62 eddeddoc.wiki</b
1670: 3e 20 69 6e 0a 46 69 72 65 66 6f 78 2e 20 20 49 > in.Firefox. I
1680: 20 61 6d 20 64 6f 69 6e 67 20 74 68 69 73 20 65 am doing this e
1690: 76 65 6e 20 74 68 6f 75 67 68 20 49 20 68 61 76 ven though I hav
16a0: 65 20 6e 6f 74 20 79 65 74 20 63 68 65 63 6b 65 e not yet checke
16b0: 64 20 69 6e 0a 74 68 65 20 22 3c 62 3e 77 77 77 d in.the "<b>www
16c0: 2f 65 6d 62 65 64 64 65 64 64 6f 63 2e 77 69 6b /embeddeddoc.wik
16d0: 69 3c 2f 62 3e 22 20 66 69 6c 65 20 66 6f 72 20 i</b>" file for
16e0: 74 68 65 20 66 69 72 73 74 20 74 69 6d 65 2e 20 the first time.
16f0: 20 55 73 69 6e 67 0a 74 68 65 20 73 70 65 63 69 Using.the speci
1700: 61 6c 20 22 3c 62 3e 63 6b 6f 75 74 3c 2f 62 3e al "<b>ckout</b>
1710: 22 20 76 65 72 73 69 6f 6e 20 69 64 65 6e 74 69 " version identi
1720: 66 69 65 72 20 6f 6e 20 74 68 65 20 22 3c 62 3e fier on the "<b>
1730: 2f 64 6f 63 3c 2f 62 3e 22 20 70 61 67 65 0a 69 /doc</b>" page.i
1740: 74 20 69 73 20 65 61 73 79 20 74 6f 20 6d 61 6b t is easy to mak
1750: 65 20 6d 75 6c 74 69 70 6c 65 20 63 68 61 6e 67 e multiple chang
1760: 65 73 20 74 6f 20 6d 75 6c 74 69 70 6c 65 20 66 es to multiple f
1770: 69 6c 65 73 20 61 6e 64 20 73 65 65 20 68 6f 77 iles and see how
1780: 20 74 68 65 79 20 61 6c 6c 0a 6c 6f 6f 6b 20 74 they all.look t
1790: 6f 67 65 74 68 65 72 20 62 65 66 6f 72 65 20 63 ogether before c
17a0: 6f 6d 6d 69 74 74 69 6e 67 20 61 6e 79 74 68 69 ommitting anythi
17b0: 6e 67 20 74 6f 20 74 68 65 20 72 65 70 6f 73 69 ng to the reposi
17c0: 74 6f 72 79 2e 0a tory..