updating_the_website.html 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  4. <head>
  5. <title>Updating The Boost Website</title>
  6. </head>
  7. <body bgcolor="#FFFFFF" text="#000000">
  8. <table border="1" bgcolor="#007F7F" cellpadding="2" summary="Quick Links">
  9. <tr>
  10. <td bgcolor="#FFFFFF"><img src="../boost.png" alt=
  11. "boost.png (6897 bytes)" width="277" height="86" /></td>
  12. <td><a href="../index.htm"><font face="Arial" color=
  13. "#FFFFFF"><big>Home</big></font></a></td>
  14. <td><a href="../libs/libraries.htm"><font face="Arial" color=
  15. "#FFFFFF"><big>Libraries</big></font></a></td>
  16. <td><a href="../people/people.htm"><font face="Arial" color=
  17. "#FFFFFF"><big>People</big></font></a></td>
  18. <td><a href="faq.htm"><font face="Arial" color=
  19. "#FFFFFF"><big>FAQ</big></font></a></td>
  20. <td><a href="index.htm"><font face="Arial" color=
  21. "#FFFFFF"><big>More</big></font></a></td>
  22. </tr>
  23. </table>
  24. <h1>Making Updates to the Boost Website Content</h1>
  25. <p>Any boost developer can update the Boost website content between
  26. releases.</p>
  27. <ul>
  28. <li>We <em>strongly</em> recommend the use of <a href=
  29. "http://tidy.sourceforge.net/">HTML Tidy</a> when editing HTML and XHTML
  30. files intented for the website. Using <code>tidy</code> helps in
  31. preventing errors in the HTML, in keeping a clear revision history, and
  32. in conforming to Web standards to help make the website readable by the
  33. majority of people. The Boost web pages currently have a variety of
  34. different types of HTML and XHTML content. Each needs to be dealt with
  35. differently by <code>tidy</code>. Most pages are regular HTML 3.x/4.x,
  36. for these use a <code>tidy</code> invocation of:
  37. <pre>
  38. tidy --tidy-mark no -i -wrap 78 -m <i>some_page.html</i>
  39. </pre>Other pages are using the more recent XHTML 1.0 and XHTML 1.0 Strict
  40. standards. Most notably this include the <a href="../index.htm">home
  41. page</a>. Some additional options are needed to make <code>tidy</code>
  42. enforce the XHTML standard:
  43. <pre>
  44. tidy --tidy-mark no -i -wrap 78 -m -asxhtml <i>some_page.html</i>
  45. </pre>That command is also useful if one is converting from HTML to XHTML. To
  46. have <code>tidy</code> check for the XHTML 1.0 Strict format use:
  47. <pre>
  48. tidy --tidy-mark no -i -wrap 78 -m -asxhtml --doctype strict <i>some_page.html</i>
  49. </pre>If you have a choice as to what format to use, prefer the XHTML 1.0
  50. Strict format as that opens the content to the widest audience.
  51. </li>
  52. <li>If the change you are making is intended to be part of a release, you
  53. should first make the change in our CVS repository, so it doesn't get
  54. lost or overwritten by the next person that updates the page between
  55. releases. Of course if you don't check in (say because the change is not
  56. supposed to be in the next release), and someone else changes the page
  57. after you, the change may be lost. This procedure does not account for
  58. that case; you'll have to use your head and figure out what to do.</li>
  59. <li>You will upload the file(s) by <code>scp</code>'ing to the
  60. appropriate subdirectory of
  61. <code>shell.sf.net:/home/groups/b/bo/boost/htdocs/</code>. For example,
  62. to update the page you are reading, I would issue
  63. <pre>
  64. scp updating_the_website.html david_abrahams@shell.sf.net:/home/groups/b/bo/boost/htdocs/more/
  65. </pre>
  66. </li>
  67. <li>It is <b>crucial</b> to ensure that you set group write permission on
  68. every file you upload. If you don't do that, nobody else will be able to
  69. change it, which is particularly deadly at release time. If you are on
  70. Unix or Cygwin, you may be able to do that with a <tt>chmod</tt> command
  71. before uploading the file. The absolutely failsafe thing to do is to <tt>
  72. ssh</tt> into <tt>shell.sf.net</tt> and do the <tt>chmod</tt> there.
  73. The files also need to have general read permission, and any
  74. directories should have general execute permission and the "set user or
  75. group ID on execution" (s) bit should also be set. If you're not
  76. touching any directories, you can do it all with one command, e.g.
  77. <pre>
  78. ssh david_abrahams@shell.sf.net "chmod a+r,g+rw /home/groups/b/bo/boost/htdocs/more/updating_the_website.html"
  79. </pre>
  80. </li>
  81. </ul>
  82. <hr />
  83. <p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B,
  84. %Y" startspan -->$Date$
  85. <!--webbot bot="Timestamp" endspan
  86. i-checksum="38708" --></p>
  87. <p>&copy; Copyright David Abrahams 2005</p>
  88. <p>&copy; Copyright Rene Rivera 2005</p>
  89. <p>Distributed under the Boost Software License, Version 1.0. (See
  90. accompanying file <a href="../LICENSE_1_0.txt">LICENSE_1_0.txt</a> or copy
  91. at <a href=
  92. "http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt</a>)</p>
  93. </body>
  94. </html>
粤ICP备19079148号