Skip to main content

Cleverly-named alabaster sub-theme for git-pull projects

Project description

Sphinx sub-theme of Alabaster, for use on git-pull projects.

What alagitpull adds to Alabaster

See the theme live on https://www.git-pull.com, https://tmuxp.git-pull.com, etc.

  • Table CSS tweaks

  • <pre> and code-block css tweaks

  • Additional theming tweaks for admonitions like ..note.

  • New sidebar template with links to projects

    • Automatic unlinking of project if its the current docs

    • Support for subprojects (put into parenthesis)

  • Sidebar CSS tweaks

Config options

Theme variables

To see a full list of options passible to HTML templates, see theme.conf. Not all of these options are used in the theme itself, but to let html_theme_options pass them through, if you want.

To configure, conf.py:

html_theme_options example:

html_theme_options = {
    'logo': 'img/logo.svg',
    'github_user': 'git-pull',
    'github_repo': 'alagitpull',
    'github_type': 'star',
    'github_banner': True,
    'projects': {},
    'project_name': 'my project name',
}

For an example of html_theme_options['projects'] see the alagitpull/__init__.py file.

Example of using an optional variable such as theme_show_meta_app_icons_tags:

html_theme_options = {
    # ...usual stuff, as above, and
    'project_description': 'description of project'
}
{%- if theme_show_meta_app_icon_tags == true %}
<meta name="theme-color" content="#ffffff">
<meta name="application-name" content="{{ theme_project_description }}">

<link rel="shortcut icon" href="/_static/favicon.ico">
<link rel="icon" type="image/png" sizes="512x512" href="/_static/img/icons/icon-512x512.png">
<link rel="icon" type="image/png" sizes="192x192" href="/_static/img/icons/icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="/_static/img/icons/icon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="/_static/img/icons/icon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="/_static/img/icons/icon-16x16.png">

<!-- Apple -->
<meta name="apple-mobile-web-app-title" content="{{ theme_project_name }}">

<link rel="apple-touch-icon" sizes="192x192" href="/_static/img/icons/icon-192x192.png">
<link rel="mask-icon" href="/_static/img/{{ theme_project_name }}.svg" color="grey">

<!-- Microsoft -->
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="/_static/img/icons/ms-icon-144x144.png">
{% endif -%}

Variables

alagitpull_external_hosts_new_window (boolean, default: False): check if link is external domain/IP. If so, open in new window.

alagitpull_external_hosts_new_window = True

alagitpull_internal_hosts (list) - whitelist of domains to open in same tab, without target="_blank". Only used if alagitpull_external_hosts_new_window enabled.

Example:

alagitpull_internal_hosts = [
   'libtmux.git-pull.com',
   '0.0.0.0',
]

Theme options

html_theme_options of sphinx’s conf.py:

  • projects (dict) - Sidebar links.

  • project_name (string) - Name of your project (helps with unlinking

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

alagitpull-0.0.26rc4.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

alagitpull-0.0.26rc4-py2.py3-none-any.whl (8.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file alagitpull-0.0.26rc4.tar.gz.

File metadata

  • Download URL: alagitpull-0.0.26rc4.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.7.7 Linux/4.19.121-microsoft-standard

File hashes

Hashes for alagitpull-0.0.26rc4.tar.gz
Algorithm Hash digest
SHA256 18a45b65e48915be7a499684ee28e8e4162ab670ab2a6e6623749066b024050e
MD5 99df0a0f1ac27aca82f259bf384adfee
BLAKE2b-256 6564b0aebe71b3a261fb7062003436115038ac0d167bd9a10eaf20afbc13cb10

See more details on using hashes here.

Provenance

File details

Details for the file alagitpull-0.0.26rc4-py2.py3-none-any.whl.

File metadata

  • Download URL: alagitpull-0.0.26rc4-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.7.7 Linux/4.19.121-microsoft-standard

File hashes

Hashes for alagitpull-0.0.26rc4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 fcedb1ef821589aef88d9ca098f21a1a9a7aa42915c46441ce89737c74f0b3b9
MD5 c8acedd3475feae0226d9db0c92911f9
BLAKE2b-256 7ec6e6918e914afbb0834f801f883f1f2621cecd797e6b23c80dba48b3e41cf7

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page