1
0
mirror of https://github.com/pirate/ArchiveBox.git synced 2025-08-18 12:21:42 +02:00

remove django dependency during docs build

Nick Sweeting
2024-10-04 19:20:18 -07:00
parent db24e7ea2d
commit 2a39523027

14
conf.py

@@ -9,26 +9,12 @@
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
import os
import sys
import django
from pathlib import Path
# import recommonmark # noqa: F401
# from recommonmark.transform import AutoStructify
sys.path.append(str(Path(__file__).parent.parent))
sys.path.append(str(Path(__file__).parent.parent / 'archivebox'))
# os.environ['DJANGO_SETTINGS_MODULE'] = 'core.settings'
# import archivebox
# os.chdir(archivebox.PACKAGE_DIR)
# django.setup()
# from archivebox.config.legacy import setup_django
# setup_django()
# -- Project information -----------------------------------------------------