Skip to content

Commit

Permalink
fixes error where some docs skipped and not compiled
Browse files Browse the repository at this point in the history
  • Loading branch information
tsole0 committed Jun 30, 2023
1 parent 33c02f8 commit f5284a7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/sphinx-docs/doc-regen/makedocumentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import os
import sys
from os.path import join, abspath, dirname
import re
import subprocess

MAIN_PY_SRC = "../source-temp/user/models/src/"
Expand All @@ -15,8 +14,7 @@
def get_py(directory):
for root, dirs, files in os.walk(directory):
# Only include python files not starting in '_' (pycache not included)
regex = re.compile('[$^_][a-z]*.py$')
PY_FILES = [join(directory, string) for string in files if re.findall(regex, string)]
PY_FILES = [join(directory, string) for string in files if not string.startswith("_") and string.endswith(".py")]
return PY_FILES

def get_main_docs():
Expand Down Expand Up @@ -45,7 +43,7 @@ def call_regenmodel(filepath, regen_py):
subprocess.run(command)

def generate_html():
# smallrst2html.py should be in same parent directory as makedocumentation.py
# based off of syntax provided in Makefile found under /sasmodels/
DOCTREES = "../build/doctrees/"
SPHINX_SOURCE = "../source-temp/"
HTML_TARGET = "../build/html/"
Expand Down

0 comments on commit f5284a7

Please sign in to comment.