为您的狮身人面像项目提供了一个美丽、极简、反应灵敏的主题。

amunra-sphinx-theme的Python项目详细描述


Amunra-Sphinx-Theme preview

摘要

amunra基于bootstrap 4为sphinx提供了一个轻量级、易于使用、响应性强的主题。 它具有一个最低限度的顶部导航栏,可以手动配置 或者使用sphinx的标准toctree指令。

安装

  1. 安装主题:

    pip install amunra-sphinx-theme
    
  2. 在sphinx的conf.py配置文件中配置它 如下所示:

    html_theme = "amunra_sphinx_theme"
    
  3. 通过添加以下代码段来配置主题选项 在conf.py文件中:

    html_theme_options = {
        # Title shown in the top left. (Default: ``project`` value.)
        "navbar_title": "Amunra",
    
        # Links to shown in the top bar. (Default: top-level ``toctree`` entries.)
        "navbar_links": [
            ("Quickstart", "quickstart"),
            ("Tutorials", "tutorials/index"),
            ("API", "api/index"),
            ("About", "about/index"),
        ],
    
        # If ``github_link`` is set, a GitHub icon will be shown in the top right.
        "github_link": "https://github.com/barentsen/amunra-sphinx-theme",
    
        # Text to show in the footer of every page.
        "footer_text": "Created with ♥ by Geert Barentsen.",
    
        # Google Analytics ID. (Optional.)
        "analytics_id": "UA-XXXXX-X"
    }
    
  4. 可选:通过包含 在index.rst文件中执行以下代码:

    .. title:: Your-Project-Title
    
    .. container:: lead
    
        Your-Project-Title
    
        A short description of your project.
    
        .. raw:: html
    
            <a href="quickstart.html" class="btn btn-primary">Quickstart →</a>
    

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如果数组是单调递增或单调递减的,则它是单调的   java异步任务:doInBackground未完成   java数组逻辑错误   在Java桌面应用程序中加载应用程序属性   小程序windows上的Java控制面板如何与机器上安装的许多不同版本的Java一起工作?   许多循环的java循环策略   java Android Studio无法转到管理页面   java为什么集成测试的执行时间在SpringBoot2.2中显著增加?   java Grails dbmupdate失败:MySQLSyntaxErrorException:您的SQL语法有错误   字符串非常简单:用Java编写“”   java Wicket反馈消息和AjaxButton   java Oreo、默认短信应用程序和操作通过消息进行响应   Java将字符串中的\“替换为”   Java中的html意外URL请求结果   java在拼花文件格式中INT64和十进制(18,6)意味着什么?   java如何查看PDF文件   java在向powershell中的程序传递参数时遇到问题   继承如何在不同实现/类/etc的java中调用toString()   java Count可抓获的最大窃贼数