qt-material/docs/fix_readme.py

12 lines
576 B
Python
Raw Normal View History

2020-12-11 20:12:23 -05:00
import os
with open('../README.rst', 'r') as file:
content = file.read()
content = content.replace('images/dark.gif', 'https://github.com/UN-GCPDS/qt-material/raw/master/docs/source/images/dark.gif')
content = content.replace('images/light.gif', 'https://github.com/UN-GCPDS/qt-material/raw/master/docs/source/images/light.gif')
2020-12-12 14:15:43 -05:00
content = content.replace('images/theme.gif', 'https://github.com/UN-GCPDS/qt-material/raw/master/docs/source/images/theme.gif')
2020-12-11 20:12:23 -05:00
end = content.find('Indices and tables')
with open('../README.rst', 'w') as file:
file.write(content[:end])