Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
django-docutils 0.28.0 documentation
Light Logo Dark Logo
django-docutils 0.28.0 documentation
  • Quickstart
  • Template tag
  • Template filter
  • Class-based view
  • FAQ

Project

  • API Reference
    • exc
    • views
    • lib
      • lib.directives
        • lib.directives.code
        • lib.directives.registry
      • lib.metadata
        • lib.metadata.extract
        • lib.metadata.process
        • lib.metadata.processors
      • lib.publisher
      • lib.roles
        • lib.roles.common
        • lib.roles.registry
        • lib.roles.types
        • lib.roles.email
        • lib.roles.file
        • lib.roles.github
        • lib.roles.hackernews
        • lib.roles.kbd
        • lib.roles.leanpub
        • lib.roles.pypi
        • lib.roles.readthedocs
        • lib.roles.twitter
        • lib.roles.url
        • lib.roles.wikipedia
      • lib.settings
      • lib.text
      • lib.transforms
        • lib.roles.transforms.code
        • lib.roles.transforms.toc
      • lib.utils
      • lib.views
      • lib.writers
    • template
    • templatetags
      • templatetags.django_docutils
  • Changelog
  • GitHub

team git-pull / Tony Narlock:

vcs-python vcspull (libvcs), g

tmux-python tmuxp (libtmux)

cihai unihan-etl (db) cihai (cli)

django django-slugify-processor django-docutils

docs + tests gp-libs

web social-embed

Back to top
View this page
Edit this page

lib.roles.leanpub¶

Leanpub role for Docutils.

django_docutils.lib.roles.leanpub.leanpub_role(name, rawtext, text, lineno, inliner, options=None, content=None)[source]¶

Role for linking to leanpub page.

Return type:

django_docutils.lib.roles.types.RoleFnReturnValue

Examples

the-tao-of-tmux:

:leanpub:`the-tao-of-tmux`

my book:

:leanpub:`my book <the-tao-of-tmux>`

The Tao of tmux:

:leanpub:`The Tao of tmux <the-tao-of-tmux:read>`
Next
lib.roles.pypi
Previous
lib.roles.kbd
Copyright © Copyright 2013- Tony Narlock
Made with Sphinx and @pradyunsg's Furo
On this page
  • lib.roles.leanpub
    • leanpub_role()