Skip to content

Commit bfd3004

Browse files
authored
Merge pull request #12 from python-project-templates/tkp/darkcode
add copyright passthrough
2 parents ab16808 + 592c485 commit bfd3004

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

yardang/build.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def generate_docs_configuration(
3636
module: str = "",
3737
description: str = "",
3838
author: str = "",
39+
copyright: str = "",
3940
version: str = "",
4041
theme: str = "furo",
4142
docs_root: str = "",
@@ -59,6 +60,9 @@ def generate_docs_configuration(
5960
author = author[0]
6061
else:
6162
author = f"The {project} authors"
63+
if isinstance(author, dict):
64+
author = author["name"]
65+
copyright = copyright or author
6266
theme = theme or get_config(section="theme")
6367
version = version or get_config(section="version", base="project")
6468
docs_root = (
@@ -102,6 +106,7 @@ def generate_docs_configuration(
102106
module=module,
103107
description=description,
104108
author=author,
109+
copyright=copyright,
105110
version=version,
106111
theme=theme,
107112
docs_root=docs_root,

0 commit comments

Comments
 (0)