gooderp18绿色标准版
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

89 lines
7.7KB

  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>J.5. Style Guide</title><link rel="stylesheet" type="text/css" href="stylesheet.css" /><link rev="made" href="pgsql-docs@lists.postgresql.org" /><meta name="generator" content="DocBook XSL Stylesheets V1.79.1" /><link rel="prev" href="docguide-authoring.html" title="J.4. Documentation Authoring" /><link rel="next" href="limits.html" title="Appendix K. PostgreSQL Limits" /></head><body><div xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="5" align="center">J.5. Style Guide</th></tr><tr><td width="10%" align="left"><a accesskey="p" href="docguide-authoring.html" title="J.4. Documentation Authoring">Prev</a> </td><td width="10%" align="left"><a accesskey="u" href="docguide.html" title="Appendix J. Documentation">Up</a></td><th width="60%" align="center">Appendix J. Documentation</th><td width="10%" align="right"><a accesskey="h" href="index.html" title="PostgreSQL 12.4 Documentation">Home</a></td><td width="10%" align="right"> <a accesskey="n" href="limits.html" title="Appendix K. PostgreSQL Limits">Next</a></td></tr></table><hr></hr></div><div class="sect1" id="DOCGUIDE-STYLE"><div class="titlepage"><div><div><h2 class="title" style="clear: both">J.5. Style Guide</h2></div></div></div><div class="toc"><dl class="toc"><dt><span class="sect2"><a href="docguide-style.html#id-1.11.11.8.2">J.5.1. Reference Pages</a></span></dt></dl></div><div class="sect2" id="id-1.11.11.8.2"><div class="titlepage"><div><div><h3 class="title">J.5.1. Reference Pages</h3></div></div></div><p>
  3. Reference pages should follow a standard layout. This allows
  4. users to find the desired information more quickly, and it also
  5. encourages writers to document all relevant aspects of a command.
  6. Consistency is not only desired among
  7. <span class="productname">PostgreSQL</span> reference pages, but also
  8. with reference pages provided by the operating system and other
  9. packages. Hence the following guidelines have been developed.
  10. They are for the most part consistent with similar guidelines
  11. established by various operating systems.
  12. </p><p>
  13. Reference pages that describe executable commands should contain
  14. the following sections, in this order. Sections that do not apply
  15. can be omitted. Additional top-level sections should only be used
  16. in special circumstances; often that information belongs in the
  17. <span class="quote">“<span class="quote">Usage</span>”</span> section.
  18. </p><div class="variablelist"><dl class="variablelist"><dt><span class="term">Name</span></dt><dd><p>
  19. This section is generated automatically. It contains the
  20. command name and a half-sentence summary of its functionality.
  21. </p></dd><dt><span class="term">Synopsis</span></dt><dd><p>
  22. This section contains the syntax diagram of the command. The
  23. synopsis should normally not list each command-line option;
  24. that is done below. Instead, list the major components of the
  25. command line, such as where input and output files go.
  26. </p></dd><dt><span class="term">Description</span></dt><dd><p>
  27. Several paragraphs explaining what the command does.
  28. </p></dd><dt><span class="term">Options</span></dt><dd><p>
  29. A list describing each command-line option. If there are a
  30. lot of options, subsections can be used.
  31. </p></dd><dt><span class="term">Exit Status</span></dt><dd><p>
  32. If the program uses 0 for success and non-zero for failure,
  33. then you do not need to document it. If there is a meaning
  34. behind the different non-zero exit codes, list them here.
  35. </p></dd><dt><span class="term">Usage</span></dt><dd><p>
  36. Describe any sublanguage or run-time interface of the program.
  37. If the program is not interactive, this section can usually be
  38. omitted. Otherwise, this section is a catch-all for
  39. describing run-time features. Use subsections if appropriate.
  40. </p></dd><dt><span class="term">Environment</span></dt><dd><p>
  41. List all environment variables that the program might use.
  42. Try to be complete; even seemingly trivial variables like
  43. <code class="envar">SHELL</code> might be of interest to the user.
  44. </p></dd><dt><span class="term">Files</span></dt><dd><p>
  45. List any files that the program might access implicitly. That
  46. is, do not list input and output files that were specified on
  47. the command line, but list configuration files, etc.
  48. </p></dd><dt><span class="term">Diagnostics</span></dt><dd><p>
  49. Explain any unusual output that the program might create.
  50. Refrain from listing every possible error message. This is a
  51. lot of work and has little use in practice. But if, say, the
  52. error messages have a standard format that the user can parse,
  53. this would be the place to explain it.
  54. </p></dd><dt><span class="term">Notes</span></dt><dd><p>
  55. Anything that doesn't fit elsewhere, but in particular bugs,
  56. implementation flaws, security considerations, compatibility
  57. issues.
  58. </p></dd><dt><span class="term">Examples</span></dt><dd><p>
  59. Examples
  60. </p></dd><dt><span class="term">History</span></dt><dd><p>
  61. If there were some major milestones in the history of the
  62. program, they might be listed here. Usually, this section can
  63. be omitted.
  64. </p></dd><dt><span class="term">Author</span></dt><dd><p>
  65. Author (only used in the contrib section)
  66. </p></dd><dt><span class="term">See Also</span></dt><dd><p>
  67. Cross-references, listed in the following order: other
  68. <span class="productname">PostgreSQL</span> command reference pages,
  69. <span class="productname">PostgreSQL</span> SQL command reference
  70. pages, citation of <span class="productname">PostgreSQL</span>
  71. manuals, other reference pages (e.g., operating system, other
  72. packages), other documentation. Items in the same group are
  73. listed alphabetically.
  74. </p></dd></dl></div><p>
  75. </p><p>
  76. Reference pages describing SQL commands should contain the
  77. following sections: Name, Synopsis, Description, Parameters,
  78. Outputs, Notes, Examples, Compatibility, History, See
  79. Also. The Parameters section is like the Options section, but
  80. there is more freedom about which clauses of the command can be
  81. listed. The Outputs section is only needed if the command returns
  82. something other than a default command-completion tag. The Compatibility
  83. section should explain to what extent
  84. this command conforms to the SQL standard(s), or to which other
  85. database system it is compatible. The See Also section of SQL
  86. commands should list SQL commands before cross-references to
  87. programs.
  88. </p></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="docguide-authoring.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="docguide.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="limits.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">J.4. Documentation Authoring </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Appendix K. <span class="productname">PostgreSQL</span> Limits</td></tr></table></div></body></html>
上海开阖软件有限公司 沪ICP备12045867号-1