Skip to content

Commit

Permalink
Fix generator issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Foereaper authored Jan 18, 2024
1 parent 6e53b76 commit 0e04eae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/ElunaDoc/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def make_renderer(template_path, link_parser_factory):
"""Return a function that can be used to render Jinja2 templates from the `template_path` directory."""

# Set up jinja2 environment to load templates from the templates folder.
env = Environment(loader=FileSystemLoader(template_path), extensions=['jinja2.ext.with_'])
env = Environment(loader=FileSystemLoader(template_path))


def inner(template_name, output_path, level, **kwargs):
Expand Down Expand Up @@ -64,13 +64,13 @@ def make_root(level):

# Load up all files with methods we need to parse.
# Hard-coded to the TC files for now. Will have to add core support later on.
print 'Finding Eluna method files...'
print('Finding Eluna method files...')
class_files = find_class_files('../TrinityCore/')

# Parse all the method files.
classes = []
for f in class_files:
print 'Parsing file {}...'.format(f.name)
print(f'Parsing file {f.name}...')
classes.append(ClassParser.parse_file(f))
f.close()

Expand Down Expand Up @@ -156,7 +156,7 @@ def data_type_parser(content):
render('date.js', 'date.js', level=0, currdate=time.strftime("%d/%m/%Y"))

for class_ in classes:
print 'Rending pages for class {}...'.format(class_.name)
print(f'Rendering pages for class {class_.name}...')

# Make a folder for the class.
os.mkdir('build/' + class_.name)
Expand Down

0 comments on commit 0e04eae

Please sign in to comment.