mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-20 11:45:50 +00:00
fix parse_pages.py behavior with non-default paths
(cherry picked from commit 465ecc18626aed42012fd5e812969c501da08e98)
This commit is contained in:
@@ -321,7 +321,7 @@ def render_pages(target=None, for_pdf=False):
|
||||
pages = get_pages(target)
|
||||
categories = get_categories(pages)
|
||||
|
||||
env = Environment(loader=FileSystemLoader(os.path.curdir))
|
||||
env = Environment(loader=FileSystemLoader(config["template_path"]))
|
||||
env.lstrip_blocks = True
|
||||
env.trim_blocks = True
|
||||
|
||||
@@ -499,7 +499,8 @@ if __name__ == "__main__":
|
||||
if cli_args.pdf[-4:] != ".pdf":
|
||||
exit("PDF filename must end in .pdf")
|
||||
logging.info("making a pdf...")
|
||||
make_pdf(cli_args.pdf, target=cli_args.target)
|
||||
pdf_path = os.path.join(config["out_path"], cli_args.pdf)
|
||||
make_pdf(pdf_path, target=cli_args.target)
|
||||
logging.info("pdf done")
|
||||
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user