File: setup.py

package info (click to toggle)
python-mkdocs 1.4.2%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,640 kB
  • sloc: python: 12,310; javascript: 2,315; perl: 142; sh: 84; makefile: 24; xml: 12
file content (22 lines) | stat: -rw-r--r-- 525 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import warnings

warnings.warn(
    "mkdocs.commands.setup is never used in MkDocs and will be removed soon.", DeprecationWarning
)

try:
    from mkdocs.commands.babel import (
        compile_catalog,
        extract_messages,
        init_catalog,
        update_catalog,
    )

    babel_cmdclass = {
        'compile_catalog': compile_catalog,
        'extract_messages': extract_messages,
        'init_catalog': init_catalog,
        'update_catalog': update_catalog,
    }
except ImportError:
    babel_cmdclass = {}