mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-06 09:20:57 +01:00
commit
79e303856b
3 changed files with 10 additions and 1 deletions
10
docs/conf.py
10
docs/conf.py
|
@ -11,16 +11,24 @@ import os
|
|||
import sys
|
||||
import builtins
|
||||
import inspect
|
||||
import importlib
|
||||
|
||||
os.environ['XONSH_DEBUG'] = '1'
|
||||
|
||||
from xonsh import __version__ as XONSH_VERSION
|
||||
from xonsh.environ import DEFAULT_DOCS, Env
|
||||
from xonsh.xontribs import xontrib_metadata
|
||||
from xonsh.events import events
|
||||
from xonsh import main
|
||||
from xonsh.commands_cache import CommandsCache
|
||||
|
||||
spec = importlib.util.find_spec('prompt_toolkit')
|
||||
if spec is not None:
|
||||
# hacky runaround to import PTK-specific events
|
||||
builtins.__xonsh_env__ = Env()
|
||||
from xonsh.ptk.shell import events
|
||||
else:
|
||||
from xonsh.events import events
|
||||
|
||||
sys.path.insert(0, os.path.dirname(__file__))
|
||||
|
||||
def setup(sphinx):
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
cloud_sptheme
|
||||
numpydoc==0.5
|
||||
Sphinx
|
||||
prompt_toolkit
|
||||
|
|
Loading…
Add table
Reference in a new issue