制作mobi格式的PostgreSQL文档

制作mobi格式的PostgreSQL文档,第1张

概述1、下载源代码: git clone -b REL_10_STABLE git://git.postgresql.org/git/postgresql.git pg10cd pg10git branch[root@localhost postgresql]# git branch* REL_10_STABLE 2、安装对应依赖包: yum install docbook-dtds docb

1、下载源代码:

git clone -b REL_10_Stable git://git.postgresql.org/git/postgresql.git pg10cd pg10git branch[root@localhost postgresql]# git branch* REL_10_Stable

2、安装对应依赖包:

yum install docbook-dtds docbook-style-xsl fop libxslt opensp

参考:https://www.postgresql.org/docs/current/static/docguIDe-toolsets.HTML

3、准备工作:

./configurecd pg10cd doc/src/sgml

4、编译:

[root@localhost sgml]# make postgres.epub{ \  echo "<!ENTITY version \"10.0\">"; \  echo "<!ENTITY majorversion \"10\">"; \} > version.sgml'/usr/bin/perl' ./mk_feature_tables.pl YES ../../../src/backend/catalog/sql_feature_packages.txt ../../../src/backend/catalog/sql_features.txt > features-supported.sgml'/usr/bin/perl' ./mk_feature_tables.pl NO ../../../src/backend/catalog/sql_feature_packages.txt ../../../src/backend/catalog/sql_features.txt > features-unsupported.sgml'/usr/bin/perl' ./generate-errcodes-table.pl ../../../src/backend/utils/errcodes.txt > errcodes-table.sgml/usr/bin/osx -wall -wno-unused-param -wno-empty -wfully-tagged -D . -D . -x lower postgres.sgml >postgres.xml.tmp'/usr/bin/perl' -p -e 's/\[(aacute|acirc|aelig|agrave|amp|aring|atilde|auml|bull|copy|eacute|egrave|gt|iacute|lt|mdash|nbsp|ntilde|oacute|ocirc|oslash|ouml|pi|quot|scaron|uuml) *\]/\&;/gi;' -e '$_ .= qq{<!DOCTYPE book PUBliC "-//oasis//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">\n} if $. == 1;' <postgres.xml.tmp > postgres.xmlrm postgres.xml.tmp/usr/bin/xmllint --noout --valID postgres.xml/usr/share/sgml/docbook/xsl-stylesheets-1.78.1/epub/bin/dbtoepub postgres.xml[root@localhost sgml]# [root@localhost sgml]# ls postgres.epub postgres.epub

5、拷贝出来,并进行转换,我是利用软件calibre转换的。

下载链接:https://pan.baIDu.com/s/1o7O2MeA

欢迎下载收藏,谢谢。

总结

以上是内存溢出为你收集整理的制作mobi格式的PostgreSQL文档全部内容,希望文章能够帮你解决制作mobi格式的PostgreSQL文档所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/sjk/1172000.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-02
下一篇 2022-06-02

发表评论

登录后才能评论

评论列表(0条)

保存