@@ -179,26 +179,26 @@ def _place_doc_files(src_dir: Path, docs_dir: Path, repo: Repo, api_src_dir: Pat
179
179
180
180
# Get changelog
181
181
repo .status .has_changelog = False
182
- changes_dir = Path (docs_dir / "changes" )
182
+ changes_dir = Path (docs_dir )
183
183
changes_dir .mkdir (exist_ok = True )
184
184
for changelog_name in ("CHANGELOG.md" , "CHANGES.md" , "CHANGES.rst" ):
185
185
changelog_path = Path (src_dir / changelog_name )
186
186
if changelog_path .exists ():
187
- shutil .copy (changelog_path , changes_dir / "changelog .md" )
187
+ shutil .copy (changelog_path , changes_dir / "changes .md" )
188
188
repo .status .has_changelog = True
189
189
return
190
190
191
191
# Create redirect message for nested packages
192
192
if isinstance (repo , SubPackage ):
193
- empty_changelog = changes_dir / "changelog .md"
194
- changes_url = f"site:{ repo .subpackage_of } /changes/changelog/ "
193
+ empty_changelog = changes_dir / "changes .md"
194
+ changes_url = f"site:{ repo .subpackage_of } /changes/"
195
195
empty_changelog .write_text (
196
196
f"# Changelog\n \n The changelog for this package is nested under [{ repo .subpackage_of } ]({ changes_url } )."
197
197
)
198
198
return
199
199
200
200
# Create placeholder, case it was not possible to fetch one
201
- empty_changelog = changes_dir / "changelog .md"
201
+ empty_changelog = changes_dir / "changes .md"
202
202
empty_changelog .write_text (
203
203
"# Changelog\n \n The repository does not provide a changelog or there was a problem fetching it."
204
204
)
@@ -360,7 +360,7 @@ def get_repos(repo_type="content"):
360
360
"version" : "3.12.1" ,
361
361
"rest_api_url" : f"https://docs.pulpproject.org/{ repo .name } /restapi.html" ,
362
362
"codebase_url" : f"https://github.com/{ repo .owner } /{ repo .name } " ,
363
- "changelog_url" : f"site:{ repo .name } /changes/changelog/ " ,
363
+ "changelog_url" : f"site:{ repo .name } /changes/" ,
364
364
}
365
365
for repo in repos_list
366
366
]
0 commit comments