2020-04-06 20:27:35 +00:00
|
|
|
# Renames the slew of markdown extensions in middleman all to .mdx
|
|
|
|
# Call with the path to the root folder, will convert recursively
|
2020-04-09 19:15:05 +00:00
|
|
|
# For example, bash _temp_rename.bash pages/consul
|
2020-04-06 20:27:35 +00:00
|
|
|
# This file can be removed once we have finished porting from the old version!
|
|
|
|
|
|
|
|
find $1 -name "*.html.md" -exec rename 's/\.html.md$/.mdx/' '{}' \;
|
|
|
|
find $1 -name "*.html.markdown" -exec rename 's/\.html.markdown$/.mdx/' '{}' \;
|
|
|
|
find $1 -name "*.html.md.erb" -exec rename 's/\.html.md.erb$/.mdx/' '{}' \;
|
2020-04-07 18:55:19 +00:00
|
|
|
find $1 -name "*.html.markdown.erb" -exec rename 's/\.html.markdown.erb$/.mdx/' '{}' \;
|
2020-04-06 20:27:35 +00:00
|
|
|
find $1 -name "*.md" -exec rename 's/\.md$/.mdx/' '{}' \;
|