Discussion:
[Docutils-users] How to get rst preview tools on CentOS7?
David M. Karr
2016-05-31 21:19:54 UTC
Permalink
I'm just starting to look at ReST. I'll likely be editing rst files in
Emacs, although I could use Eclipse if a suitable editor was available.
As it's just simple text formatting, I could probably get by with a
plain text view in Eclipse if I had to. The Emacs mode appears to be a
little more functional.

What I can't figure out is how to get the various RST preview tools,
like "rst2pdf". I see that "rst2pdf" is available on Ubuntu, but I
don't see it in the default repos for CentOS7.

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Docutils-users mailing list
Docutils-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to reply to the list.
Matěj Cepl
2016-06-01 07:18:34 UTC
Permalink
Post by David M. Karr
I'm just starting to look at ReST. I'll likely be editing rst files in
Emacs, although I could use Eclipse if a suitable editor was available.
As it's just simple text formatting, I could probably get by with a
plain text view in Eclipse if I had to. The Emacs mode appears to be a
little more functional.
Try to run

yum list \*docutil\*

That's where plenty of rST related programs are packaged.

Matěj
--
https://matej.ceplovi.cz/blog/, Jabber: ***@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5 BC1D 7920 5802 880B C9D8

How many Bavarian Illuminati does it take to screw in a light
bulb?
Three: one to screw it in, and one to confuse the issue.


------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Docutils-users mailing list
Docutils-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply
Oleksandr Gavenko
2016-06-03 07:50:05 UTC
Permalink
Post by David M. Karr
I'm just starting to look at ReST. I'll likely be editing rst files in
Emacs, although I could use Eclipse if a suitable editor was available.
As it's just simple text formatting, I could probably get by with a
plain text view in Eclipse if I had to. The Emacs mode appears to be a
little more functional.
I probably use

docutils-common: /usr/share/emacs/site-lisp/rst.el

On "C-c C-t C-t" it shows TOC for easy navigation and on "C-c C-=" it fixes
and cycles through header declarations.

I never use any other commands. Full command list is available on C-h m.

I miss indenting and text wrapping in definition list declaration but except
this and syntax highlighting issues in "verbatim" text it works fine
Post by David M. Karr
What I can't figure out is how to get the various RST preview tools,
like "rst2pdf". I see that "rst2pdf" is available on Ubuntu, but I
don't see it in the default repos for CentOS7.
I don't use RH, just make web search for Debian "apt-file" alternative:

sudo yum install yum-utils
repoquery --whatprovides '*bin/rst2pdf'

In this way you be able to find any package that contain specific file. See:

http://stackoverflow.com/questions/1133495/how-do-i-find-which-rpm-package-supplies-a-file-im-looking-for

While I build RST files with GNU make there are command C-c C-c C-c
(M-x rst-compile).

If you work with Java (I assume that because you are mentioning Eclipse) it is
possible to build Java project documentation in Maven project with:

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.2</version>
<dependencies>
<dependency>
<groupId>org.nuiton.jrst</groupId>
<artifactId>doxia-module-jrst</artifactId>
<version>1.5</version>
</dependency>
</dependencies>
</plugin>
--
http://defun.work/


------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Docutils-users mailing list
Docutils-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to reply to the list.
Oleksandr Gavenko
2016-06-06 09:50:25 UTC
Permalink
From: "David M. Karr"
Post by David M. Karr
What I can't figure out is how to get the various RST preview tools,
like "rst2pdf". I see that "rst2pdf" is available on Ubuntu, but I
don't see it in the default repos for CentOS7.
sudo yum install yum-utils
repoquery --whatprovides '*bin/rst2pdf'
On Debian 'rst2pdf' is provided by external project:

$ apt-file search bin/rst2pdf
rst2pdf: /usr/bin/rst2pdf

$ apt-cache show rst2pdf
Version: 0.93-4
Maintainer: Elena Grandi <valhalla-***@trueelena.org>
Homepage: http://code.google.com/p/rst2pdf/

It seems that docutils team is not responsible for that utility.

You should contact RH/CentOS packaging team and ask them for inclusion of
rst2pdf utility.

================================================================

I managed to install CentOS in LXC container:

sudo lxc-create -t centos -n centos2 -- --release 6.8
sudo lxc-create -t centos -n centos2 -- --release 7

Even "yum" utility provide built-in ability to query for packages which have
certain files:

[***@centos media]# cat /etc/redhat-release
CentOS release 6.8 (Final)

[***@centos media]# yum whatprovides '*/bin/rst2pdf*'

No Matches found

[***@centos media]# yum whatprovides '*/bin/rst2*'
python-docutils-0.6-1.el6.noarch : A system for processing plaintext documentation
Matched from:
Filename : /usr/bin/rst2html
Filename : /usr/bin/rst2odt
Filename : /usr/bin/rst2xml
Filename : /usr/bin/rst2s5
Filename : /usr/bin/rst2latex
Filename : /usr/bin/rst2man
Filename : /usr/bin/rst2pseudoxml
Filename : /usr/bin/rst2newlatex
Filename : /usr/bin/rst2odt_prepstyles


[***@centos2 media]# cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)

[***@centos2 media]# yum whatprovides '*/bin/rst2pdf*'

No Matches found


[***@centos2 media]# yum whatprovides '*/bin/rst2*'
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.mirohost.net
* extras: mirror.mirohost.net
* updates: mirror.mirohost.net
python-docutils-0.11-0.2.20130715svn7687.el7.noarch : System for processing plaintext documentation
Repo : base
Matched from:
Filename : /usr/bin/rst2odt
Filename : /usr/bin/rst2html
Filename : /usr/bin/rst2pseudoxml
Filename : /usr/bin/rst2xml
Filename : /usr/bin/rst2s5
Filename : /usr/bin/rst2latex
Filename : /usr/bin/rst2man
Filename : /usr/bin/rst2odt_prepstyles
Filename : /usr/bin/rst2xetex
--
http://defun.work/


------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Docutils-users mailing list
Docutils-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to reply to the list.
Matěj Cepl
2016-06-06 14:58:02 UTC
Permalink
Post by Oleksandr Gavenko
You should contact RH/CentOS packaging team and ask them for
inclusion of
rst2pdf utility.
rst2pdf is part of Fedora/EPEL ...
https://admin.fedoraproject.org/pkgdb/package/rpms/rst2pdf/

You just file a bug against the package asking for what you
want. Of course, you may be asked to maitain the branch
yourself, in which case, welcome to the Fedora packaging world!
:)

Matěj
--
https://matej.ceplovi.cz/blog/, Jabber: ***@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5 BC1D 7920 5802 880B C9D8

The American Republic will endure, until politicians realize they
can bribe the people with their own money.
-- based on a statement of Alexander Fraser Tytler


------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Docutils-users mailing list
Docutils-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/docutils-users

Plea
Loading...