Skip to content

Commit

Permalink
Merge pull request #12 from python-project-templates/tkp/darkcode
Browse files Browse the repository at this point in the history
add copyright passthrough
  • Loading branch information
timkpaine authored Aug 9, 2024
2 parents ab16808 + 592c485 commit bfd3004
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions yardang/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def generate_docs_configuration(
module: str = "",
description: str = "",
author: str = "",
copyright: str = "",
version: str = "",
theme: str = "furo",
docs_root: str = "",
Expand All @@ -59,6 +60,9 @@ def generate_docs_configuration(
author = author[0]
else:
author = f"The {project} authors"
if isinstance(author, dict):
author = author["name"]
copyright = copyright or author
theme = theme or get_config(section="theme")
version = version or get_config(section="version", base="project")
docs_root = (
Expand Down Expand Up @@ -102,6 +106,7 @@ def generate_docs_configuration(
module=module,
description=description,
author=author,
copyright=copyright,
version=version,
theme=theme,
docs_root=docs_root,
Expand Down

0 comments on commit bfd3004

Please sign in to comment.