File: conf.py

package info (click to toggle)
python-django-celery-beat 2.7.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 1,052 kB
  • sloc: python: 2,844; makefile: 326; sh: 22
file content (81 lines) | stat: -rw-r--r-- 2,301 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
import os
import sys
import django
import celery

from sphinx_celery import conf


def check_object_path(key, url, path):
    if os.path.isfile(path):
        return {key: (url, path)}
    return {}

intersphinx_mapping = {}
intersphinx_mapping.update(
    check_object_path(
        'python',
        'https://docs.python.org/',
        '/usr/share/doc/python' + '.'.join((str(x) for x in sys.version_info[:2])) + '/html/objects.inv'
    )
)
intersphinx_mapping.update(
    check_object_path(
        'sphinx',
        'https://www.sphinx-doc.org/en/master/',
        '/usr/share/doc/sphinx-doc/html/objects.inv'
    )
)
intersphinx_mapping.update(
    check_object_path(
        'django',
        'https://docs.djangoproject.com/en/' + '.'.join((str(c) for c in django.VERSION[:2])) + '/_objects/',
        '/usr/share/doc/python-django-doc/html/objects.inv'
    )
)
intersphinx_mapping.update(
    check_object_path(
        'celery',
        'https://docs.celeryq.dev/en/' + '.'.join((str(c) for c in celery.VERSION[:3])) + '/',
        '/usr/share/doc/python-celery-doc/html/objects.inv'
    )
)
intersphinx_mapping.update(
    check_object_path(
        'django-celery-results',
        'https://django-celery-results.readthedocs.io/en/latest/',
        '/usr/share/doc/python-django-celery-results-doc/html/objects.inv'
    )
)

globals().update(conf.build_config(
    'django_celery_beat', __file__,
    project='django_celery_beat',
    # version_dev='2.0',
    # version_stable='1.4',
    canonical_url='http://django-celery-beat.readthedocs.io',
    webdomain='',
    github_project='celery/django-celery-beat',
    copyright='2016',
    django_settings='proj.settings',
    intersphinx_mapping=intersphinx_mapping,
    path_additions=[os.path.join(os.pardir, 't')],
    html_logo='images/logo.png',
    html_favicon='images/favicon.ico',
    html_prepend_sidebars=[],
    apicheck_ignore_modules=[
        'django_celery_beat.apps',
        r'django_celery_beat.migrations.*',
    ],
    extlinks={
        'github_project': (
            'https://github.com/%s',
            'GitHub project %s',
        ),
        'github_pr': (
            'https://github.com/celery/django-celery-beat/pull/%s',
            'GitHub PR #%s',
        ),
    },
    extensions=['sphinxcontrib_django']
))