Skip to content

Commit a29c9c0

Browse files
committed
update docguide.sgml , ecpg.sgml and extend.sgml
1 parent 9a7225e commit a29c9c0

File tree

3 files changed

+638
-177
lines changed

3 files changed

+638
-177
lines changed

postgresql/doc/src/sgml/docguide.sgml

Lines changed: 49 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -274,14 +274,18 @@ ____________________________________________________________________________-->
274274
You can get away with not installing DocBook XML and the DocBook XSLT
275275
stylesheets locally, because the required files will be downloaded from the
276276
Internet and cached locally. This may in fact be the preferred solution if
277-
your operating system packages provide only an old version of especially
278-
the stylesheets or if no packages are available at all. See
279-
the <option>-&minus;nonet</option> option for <command>xmllint</command>
280-
and <command>xsltproc</command> for more information.
277+
your operating system packages provide only an old version of these files,
278+
or if no packages are available at all.
279+
If you want to prevent any attempt to access the Internet while building
280+
the documentation, you need to pass the <option>--nonet</option> option
281+
to <command>xmllint</command> and <command>xsltproc</command>; see below
282+
for an example.
281283
</para>
282284
____________________________________________________________________________-->
283285
<para>
284-
你可以在本地不安装DocBook XML和DocBook XSLT样式表的情况下开始工作,因为所需的文件将从Internet下载下来并且缓存在本地。如果你的操作系统包仅提供了旧版本的样式表或者根本就没有所需的包,那么这种方式实际上是最好的解决方案。更多信息请见<command>xmllint</command>和<command>xsltproc</command>的<option>--nonet</option>选项。
286+
你可以在本地不安装DocBook XML和DocBook XSLT样式表的情况下开始工作,因为所需的文件将从Internet下载下来并且缓存在本地。
287+
如果你的操作系统包仅提供了这些文件的旧版本或者根本就没有所需的包,那么这种方式实际上是最好的解决方案。
288+
如果你想要防止任何访问互联网的尝试,在构建文档的时候,你需要传递<option>--nonet</option> 选项到 <command>xmllint</command> 和 <command>xsltproc</command>;参见下方示例。
285289
</para>
286290

287291
<sect2>
@@ -412,33 +416,63 @@ ____________________________________________________________________________-->
412416
<!--==========================orignal english content==========================
413417
<para>
414418
Before you can build the documentation you need to run the
415-
<filename>configure</filename> script as you would when building
419+
<filename>configure</filename> script, as you would when building
416420
the <productname>PostgreSQL</productname> programs themselves.
417-
Check the output near the end of the run, it should look something
421+
Check the output near the end of the run; it should look something
418422
like this:
419423
<screen>
420424
checking for xmllint... xmllint
421-
checking for DocBook XML V4.5... yes
422-
checking for dbtoepub... dbtoepub
423425
checking for xsltproc... xsltproc
424426
checking for fop... fop
427+
checking for dbtoepub... dbtoepub
425428
</screen>
426-
If <filename>xmllint</filename> was not found then some of the following
427-
tests will be skipped.
429+
If <filename>xmllint</filename> or <filename>xsltproc</filename> is not
430+
found, you will not be able to build any of the documentation.
431+
<filename>fop</filename> is only needed to build the documentation in
432+
PDF format.
433+
<filename>dbtoepub</filename> is only needed to build the documentation
434+
in EPUB format.
428435
</para>
429436
____________________________________________________________________________-->
430437
<para>
431-
在你能编译文档之前,你需要运行<filename>configure</filename>脚本,就像你在编译<productname>PostgreSQL</productname>程序本身时所作的那样。检查运行末尾附近的输出,应该看起来像这样:
438+
在你能编译文档之前,你需要运行<filename>configure</filename>脚本,就像你在编译<productname>PostgreSQL</productname>程序本身时所作的那样。
439+
检查运行末尾附近的输出;应该看起来像这样:
432440
<screen>
433441
checking for xmllint... xmllint
434-
checking for DocBook XML V4.5... yes
435-
checking for dbtoepub... dbtoepub
436442
checking for xsltproc... xsltproc
437443
checking for fop... fop
444+
checking for dbtoepub... dbtoepub
438445
</screen>
439-
如果没有找到<filename>xmllint</filename>,那么一些后续测试将被跳过。
446+
如果没有找到<filename>xmllint</filename> 或 <filename>xsltproc</filename>,你将不能构建任何文档。
447+
<filename>fop</filename>仅在构建PDF格式的文档时需要。
448+
<filename>dbtoepub</filename>仅在构建EPUB格式的文档时需要。
440449
</para>
441450

451+
<!--==========================orignal english content==========================
452+
<para>
453+
If necessary, you can tell <filename>configure</filename> where to find
454+
these programs, for example
455+
<screen>
456+
./configure ... XMLLINT=/opt/local/bin/xmllint ...
457+
</screen>
458+
Also, if you want to ensure that <filename>xmllint</filename>
459+
and <filename>xsltproc</filename> will not perform any network access,
460+
you can do something like
461+
<screen>
462+
./configure ... XMLLINT="xmllint -&minus;nonet" XSLTPROC="xsltproc -&minus;nonet" ...
463+
</screen>
464+
</para>
465+
____________________________________________________________________________-->
466+
<para>
467+
如果需要,你可以告知 <filename>configure</filename> 在哪里发现这些程序,例如
468+
<screen>
469+
./configure ... XMLLINT=/opt/local/bin/xmllint ...
470+
</screen>
471+
此外,如果你想要确定 <filename>xmllint</filename> 和 <filename>xsltproc</filename> 将不会执行任何网络访问,你可以像这样做
472+
<screen>
473+
./configure ... XMLLINT="xmllint --nonet" XSLTPROC="xsltproc --nonet" ...
474+
</screen>
475+
</para>
442476
</sect2>
443477
</sect1>
444478

0 commit comments

Comments
 (0)