一个简单的sphinx主题,支持rtl语言。
sphinx_minoo_theme的Python项目详细描述
Minoo是一个简单的Sphinx主题,支持从右到左的语言,如Persian。
Features
- 材质颜色
- RTL语言
- 响应性
- 谷歌分析ID
- 社交链接和虚拟形象
- 免费
Installation
Via package
从pypi安装:
$ pip install sphinx_minoo_theme
编辑sphinx配置文件conf.py
# At the top. import sphinx_minoo_theme # ... html_theme = "sphinx_minoo_theme" html_theme_path = [sphinx_minoo_theme.get_html_theme_path()]
Via git or download
将sphinx_minoo_theme/sphinx_minoo_theme从存储库复制到_templates文件夹中的文档中。
编辑sphinx配置文件conf.py
# ... html_theme = "sphinx_minoo_theme" html_theme_path = ["_templates"]
Customisation
- 将您的虚拟形象文件放入名为avatar.jpg的static文件夹中。
编辑主题配置文件theme.conf
改变方向:
direction = ltr
for “right-to-left” languages set on ^{tt8}$
添加您的谷歌分析ID:
analytics_id = UA-XXXXX-X
添加您的网站地址和社交链接:
website = facebook = googleplus = linkedin = twitter = github = https://github.com/saeiddrv/SphinxMinooTheme bitbucket =
Whichever you don’t want, left empty!
编辑glossary.html文件
- 这样,你可以改变主题词!
Gratitude
sphinx_rtd_theme帮助我构建了这个主题。