Ⅰ. 插件描述
A theme for rstⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'rykka/rhythm-css'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'rykka/rhythm-css'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'rykka/rhythm-css'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/rykka/rhythm.css
Ⅳ. 文档说明
rhythm.css
:version: 0.62
..
**r**\st **h**\tml **th**\e\ **\m**\e
-- rhythm.css
A css theme focus on reading, for rst document.
.. figure:: https://github.com/Rykka/github_things/raw/master/image/rst_quick_start.gif
:align: center
riv.vim_ (vim) + InstantRst_ (web server) + rhythm.css_ (theme)
Syntax Preview__
RAW: `Syntax rst file`_
Article Preview__
RAW: `Article rst file`_
__ http://rykka.github.io/rhythm.css/rst_syntax
__ http://rykka.github.io/rhythm.css/article
Post issues_ or fork it if needed.
Details
::
.
├── less
│ ├── docutils.less
│ ├── *.less
├── dist
│ └── css
│ └── rhythm.css
├── doc
│ ├── rst_syntax.rst
│ └── *.rst
├── syntax
│ ├── default.css
│ ├── *.css
│ └── murphy.css
├── Gruntfile.js
└── README.rst
less/*.less
The source code
dist/css/rhythm.css
Css file ready for use
Optimized for better reading, And rst syntax ready.
doc/*.rst
A rst document with most rst syntax item.
Use to test css with rst converted html file.
syntax/*.css
Theme for pygment's syntax highlight.
You can use them in generate commands.
Gruntfile.js
Build and testing commands included.
First install with ``npm install``,
Then build and test with ``grunt``.
Usage
- Install tool
.. code:: sh
sudo pip install docutils pygments
- Download
.. code:: sh
git clone https://github.com/Rykka/rhythm.css.git
cd rhythm.css
- Generate Html
.. code:: sh
rst2html.py /path/to/your/rst \
--stylesheet=rhythm.css,syntax/molokai.css \
--syntax-highlight=short \
> /path/to/the/output_html
Related
This theme is build for riv.vim_,
You can use it if you are writing rst document in vim.
And you can find rst specification_ and directives_ here too.
TODO
- [X] 2014-08-15 Add less support.
- Add bare html support.
- Add more themes.
- optimize for chinese.
.. _riv.vim: http://github.com/rykka/riv.vim
.. _issues: https://github.com/Rykka/rhythm.css/issues
.. _fork: https://github.com/Rykka/rhythm.css
.. _Syntax rst file: http://rykka.github.io/rhythm.css/doc/rst_syntax.rst
.. _Article rst file: http://rykka.github.io/rhythm.css/doc/wired_article.rst
.. _specification: http://rykka.github.io/rhythm.css/specification
.. _directives: http://rykka.github.io/rhythm.css/directives
.. _rhythm.css: http://github.com/Rykka/rhythm.css
.. _InstantRst: https://github.com/Rykka/InstantRst