Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3aa7fe4

Browse files
committed
UTIL: add utility to redirect everything
1 parent7a1c948 commit3aa7fe4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

‎_websiteutils/make_redirects_links.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,10 @@ def main():
172172
fout.write(st)
173173
_log.info('Done links and redirects')
174174
# change the canonical url for all html to the newest version in the docs:
175-
forentryinos.scandir('./'):
176-
ifentry.is_dir()and (entry.nameintocheck[1:]):
177-
_log.info(f'TOP DIR:{entry.name}')
178-
do_canonicals(entry.name)
179175

176+
pool=multiprocessing.Pool()
177+
pool.map(do_canonicals,tocheck[1:])
178+
pool.close()
180179

181180
if__name__=="__main__":
182181
main()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp