Skip to content

Commit

Permalink
fix conf.py to use src code, not installed code
Browse files Browse the repository at this point in the history
  • Loading branch information
eacharles committed Feb 3, 2025
1 parent d108ff7 commit 360026f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
import pkgutil
import rail.projects
import rail.plotting
import rail.cli.rail_plot
import rail.cli.rail_project


sys.path.insert(0, os.path.abspath('..'))

Expand Down Expand Up @@ -179,10 +182,8 @@ def run_apidoc(_):
cur_dir = os.path.normpath(os.path.dirname(__file__))
output_path = os.path.join(cur_dir, 'api')

top_dir = os.path.abspath(os.path.join(os.path.dirname(rail.projects.__file__), '..'))

#paramlist = ['--separate', '--implicit-namespaces', '--no-toc', '-M', '-o', output_path, '-f', top_dir]
paramlist = ['--separate', '--implicit-namespaces', '-M', '-o', output_path, '-f', top_dir]
src_path = os.path.normpath(os.path.join(os.path.dirname(__file__), '..', 'src', 'rail'))
paramlist = ['--separate', '--implicit-namespaces', '-M', '-o', output_path, '-f', src_path]
print(f"running {paramlist}")
apidoc_main(paramlist)

Expand Down

0 comments on commit 360026f

Please sign in to comment.