module sphinxext.sphinx_youtube_extension

Inheritance diagram of pyquickhelper.sphinxext.sphinx_youtube_extension

Short summary

module pyquickhelper.sphinxext.sphinx_youtube_extension

Inspired from sphinxcontrib.youtube (not maintained anymore).

source on GitHub

Classes

class

truncated documentation

youtube_node

Youtube node.

YoutubeDirective

Youtube directive.

Functions

function

truncated documentation

css

Returns style.

depart_youtube_node

Youtube node.

get_size

Get size.

setup

Setup for youtube extension.

visit_youtube_node

Visit youtube node (html).

Methods

method

truncated documentation

run

Documentation

Inspired from sphinxcontrib.youtube (not maintained anymore).

source on GitHub

class pyquickhelper.sphinxext.sphinx_youtube_extension.YoutubeDirective(name, arguments, options, content, lineno, content_offset, block_text, state, state_machine)[source][source]

Bases: docutils.parsers.rst.Directive

Youtube directive.

source on GitHub

pyquickhelper.sphinxext.sphinx_youtube_extension.css(d)[source][source]

Returns style.

source on GitHub

pyquickhelper.sphinxext.sphinx_youtube_extension.depart_youtube_node(self, node)[source][source]

Youtube node.

source on GitHub

pyquickhelper.sphinxext.sphinx_youtube_extension.get_size(d, key)[source][source]

Get size.

Parameters
  • d – string

  • key – string

Returns

integer

source on GitHub

pyquickhelper.sphinxext.sphinx_youtube_extension.setup(app)[source][source]

Setup for youtube extension.

source on GitHub

pyquickhelper.sphinxext.sphinx_youtube_extension.visit_youtube_node(self, node)[source][source]

Visit youtube node (html).

source on GitHub

class pyquickhelper.sphinxext.sphinx_youtube_extension.youtube_node(rawsource='', *children, **attributes)[source][source]

Bases: docutils.nodes.General, docutils.nodes.Element

Youtube node.

source on GitHub