@@ -150,26 +150,26 @@ def _place_doc_files(src_dir: Path, docs_dir: Path, repo: Repo):
150
150
151
151
# Get changelog
152
152
repo .status .has_changelog = False
153
- changes_dir = Path (docs_dir / "changes" )
153
+ changes_dir = Path (docs_dir )
154
154
changes_dir .mkdir (exist_ok = True )
155
155
for changelog_name in ("CHANGELOG.md" , "CHANGES.md" , "CHANGES.rst" ):
156
156
changelog_path = Path (src_dir / changelog_name )
157
157
if changelog_path .exists ():
158
- shutil .copy (changelog_path , changes_dir / "changelog .md" )
158
+ shutil .copy (changelog_path , changes_dir / "changes .md" )
159
159
repo .status .has_changelog = True
160
160
return
161
161
162
162
# Create redirect message for nested packages
163
163
if isinstance (repo , SubPackage ):
164
- empty_changelog = changes_dir / "changelog .md"
165
- changes_url = f"site:{ repo .subpackage_of } /changes/changelog/ "
164
+ empty_changelog = changes_dir / "changes .md"
165
+ changes_url = f"site:{ repo .subpackage_of } /changes/"
166
166
empty_changelog .write_text (
167
167
f"# Changelog\n \n The changelog for this package is nested under [{ repo .subpackage_of } ]({ changes_url } )."
168
168
)
169
169
return
170
170
171
171
# Create placeholder, case it was not possible to fetch one
172
- empty_changelog = changes_dir / "changelog .md"
172
+ empty_changelog = changes_dir / "changes .md"
173
173
empty_changelog .write_text (
174
174
"# Changelog\n \n The repository does not provide a changelog or there was a problem fetching it."
175
175
)
@@ -322,7 +322,7 @@ def get_repos(repo_type="content"):
322
322
"version" : "3.12.1" ,
323
323
"rest_api_url" : f"https://docs.pulpproject.org/{ repo .name } /restapi.html" ,
324
324
"codebase_url" : f"https://github.com/{ repo .owner } /{ repo .name } " ,
325
- "changelog_url" : f"site:{ repo .name } /changes/changelog/ " ,
325
+ "changelog_url" : f"site:{ repo .name } /changes/" ,
326
326
}
327
327
for repo in repos_list
328
328
]
0 commit comments