diff --git a/docs/generate.py b/docs/generate.py index 591a1124..c0b83c19 100644 --- a/docs/generate.py +++ b/docs/generate.py @@ -1,24 +1,13 @@ import bpy -import sys import pathlib -try: - from bl_ext.user_default import molecularnodes as mn -except ImportError: - try: - from bl_ext.vscode_development import molecularnodes as mn - except ImportError: - import molecularnodes as mn +import molecularnodes as mn +from molecularnodes import noodlenotes DOCS_FOLDER = pathlib.Path(__file__).resolve().parent -# import the scripts for building documentation -sys.path.insert(0, str(DOCS_FOLDER)) -import noodlenotes - - # load the data file which contains all of the nodes to build docs for -bpy.ops.wm.open_mainfile(filepath=mn.blender.nodes.MN_DATA_FILE) +bpy.ops.wm.open_mainfile(filepath=mn.utils.MN_DATA_FILE) header = """--- diff --git a/docs/noodlenotes/__init__.py b/molecularnodes/noodlenotes/__init__.py similarity index 100% rename from docs/noodlenotes/__init__.py rename to molecularnodes/noodlenotes/__init__.py diff --git a/docs/noodlenotes/documenter.py b/molecularnodes/noodlenotes/documenter.py similarity index 100% rename from docs/noodlenotes/documenter.py rename to molecularnodes/noodlenotes/documenter.py diff --git a/docs/noodlenotes/interface.py b/molecularnodes/noodlenotes/interface.py similarity index 100% rename from docs/noodlenotes/interface.py rename to molecularnodes/noodlenotes/interface.py diff --git a/docs/noodlenotes/markdown.py b/molecularnodes/noodlenotes/markdown.py similarity index 100% rename from docs/noodlenotes/markdown.py rename to molecularnodes/noodlenotes/markdown.py