File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ reference/vuegen
5050sections_readme/contributing
5151sections_readme/credits
5252sections_readme/contact
53+ sections_readme/changelog
5354```
5455
5556``` {toctree}
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ def process_readme(readme_path, output_dir):
106106 else :
107107 raise ValueError (f"Section '{ section_title } ' not found in README" )
108108
109- # Include CONTRIBUTING.md with its own link references
109+ # Copy CONTRIBUTING.md with its own link references
110110 contrib_path = readme_path .parent / "CONTRIBUTING.md"
111111 try :
112112 raw_contrib = contrib_path .read_text ()
@@ -124,6 +124,15 @@ def process_readme(readme_path, output_dir):
124124 except FileNotFoundError as e :
125125 raise FileNotFoundError (f"CONTRIBUTING.md not found at { contrib_path } " ) from e
126126
127+ # Copy CHANGELOG.md to the output directory
128+ changelog_path = readme_path .parent / "CHANGELOG.md"
129+ try :
130+ raw_changelog = changelog_path .read_text ()
131+ (output_dir / "changelog.md" ).write_text (raw_changelog )
132+ print ("Generated changelog.md" )
133+ except FileNotFoundError as e :
134+ raise FileNotFoundError (f"CHANGELOG.md not found at { changelog_path } " ) from e
135+
127136
128137if __name__ == "__main__" :
129138 default_readme = Path (__file__ ).resolve ().parent .parent / "README.md"
You can’t perform that action at this time.
0 commit comments