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])
|