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

Commit 8293275

Browse files
committed
Make page slugs lowercase
1 parent f42180f commit 8293275

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎website/copy_notebooks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def abspath_from_here(*args):
2727
def copy_notebooks():
2828
nblist = sorted(nb for nb in os.listdir(NB_SOURCE_DIR)
2929
if nb.endswith('.ipynb'))
30-
name_map = {nb: nb.rsplit('.', 1)[0] + '.html'
30+
name_map = {nb: nb.rsplit('.', 1)[0].lower() + '.html'
3131
for nb in nblist}
3232

3333
figsource = abspath_from_here('..', 'notebooks', 'figures')
@@ -78,7 +78,7 @@ def copy_notebooks():
7878
pagefile = os.path.join(PAGE_DEST_DIR, base + '.md')
7979
with open(pagefile, 'w') as f:
8080
f.write(PAGEFILE.format(title=title,
81-
slug=base,
81+
slug=base.lower(),
8282
notebook_file=nb,
8383
template=template,
8484
cells=cells))

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /