sphinx-autoapi/autoapi/settings.py

32 lines
729 B
Python
Raw Normal View History

2015-06-10 20:12:18 +00:00
"""
Basic settings for AutoAPI projects.
You shouldn't need to touch this.
"""
2015-04-08 05:54:53 +00:00
import os
from .mappers import DotNetSphinxMapper, PythonSphinxMapper, GoSphinxMapper, JavaScriptSphinxMapper
2015-04-08 05:54:53 +00:00
SITE_ROOT = os.path.dirname(os.path.realpath(__file__))
TEMPLATE_DIR = os.path.join(SITE_ROOT, 'templates')
2015-07-20 18:37:31 +00:00
default_file_mapping = {
'python': ['*.py'],
'dotnet': ['project.json', '*.csproj', '*.vbproj'],
'go': ['*.go'],
'javascript': ['*.js'],
}
default_ignore_patterns = {
'dotnet': ['*toc.yml', '*index.yml'],
'python': ['*migrations*'],
}
default_backend_mapping = {
'python': PythonSphinxMapper,
'dotnet': DotNetSphinxMapper,
'go': GoSphinxMapper,
'javascript': JavaScriptSphinxMapper,
}