Giter VIP home page Giter VIP logo

sphinx_glpi_theme's Introduction

GLPI Sphinx Theme

GLPI Sphinx theme based on readthedocs.org one.

Installation

Via package

Download the package or add it to your requirements.txt file:

pip install sphinx_glpi_theme

In your conf.py file:

import sphinx_glpi_theme

html_theme = "glpi"

html_theme_path = sphinx_glpi_theme.get_html_themes_path()

Via git or download

Symlink or subtree the sphinx_glpi_theme/glpi repository into your documentation at docs/_themes/sphinx_glpi_theme then add the following two settings to your Sphinx conf.py file:

html_theme = "sphinx_glpi_theme"
html_theme_path = ["_themes", ]

sphinx_glpi_theme's People

Contributors

trasher avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

sphinx_glpi_theme's Issues

sphinx_glpi_theme vs sphinx_rtd_theme

Hi,

I've come across a project which is using sphinx_glpi_theme, and I'm interested to understand what the difference is between it, and sphinx_rtd_theme on which it is based?

Thanks!

Bug when building HTML

Hi!

I encountered and issue while building Sphinx with GLPI theme, when I follow the readme instructions.

Actually the issue comes from the fact that spinx_glpi_theme.get_html_themes_path() returns a list, thus html_theme_path = [sphinx_glpi_theme.get_html_themes_path()] is a nested list.

It is fixed if one uses instead:

html_theme_path = [*sphinx_glpi_theme.get_html_themes_path()]
#or
html_theme_path = sphinx_glpi_theme.get_html_themes_path()

Here is my log:

# Sphinx version: 3.0.1
# Python version: 3.7.3 (CPython)
# Docutils version: 0.16 release
# Jinja2 version: 2.11.1
# Last messages:

# Loaded extensions:
Traceback (most recent call last):
  File "/home/titus/.local/lib/python3.7/site-packages/sphinx/cmd/build.py", line 279, in build_main
    args.tags, args.verbosity, args.jobs, args.keep_going)
  File "/home/titus/.local/lib/python3.7/site-packages/sphinx/application.py", line 277, in __init__
    self._init_builder()
  File "/home/titus/.local/lib/python3.7/site-packages/sphinx/application.py", line 332, in _init_builder
    self.builder.init()
  File "/home/titus/.local/lib/python3.7/site-packages/sphinx/builders/html/__init__.py", line 219, in init
    self.init_templates()
  File "/home/titus/.local/lib/python3.7/site-packages/sphinx/builders/html/__init__.py", line 257, in init_templates
    theme_factory = HTMLThemeFactory(self.app)
  File "/home/titus/.local/lib/python3.7/site-packages/sphinx/theming.py", line 162, in __init__
    self.load_additional_themes(app.config.html_theme_path)
  File "/home/titus/.local/lib/python3.7/site-packages/sphinx/theming.py", line 173, in load_additional_themes
    abs_theme_path = path.abspath(path.join(self.app.confdir, theme_path))
  File "/usr/lib/python3.7/posixpath.py", line 94, in join
    genericpath._check_arg_types('join', a, *p)
  File "/usr/lib/python3.7/genericpath.py", line 149, in _check_arg_types
    (funcname, s.__class__.__name__)) from None
TypeError: join() argument must be str or bytes, not 'list'

Best!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.