mirror of
https://github.com/UN-GCPDS/qt-material.git
synced 2025-01-20 16:52:55 +08:00
12 lines
576 B
Python
12 lines
576 B
Python
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')
|
|
content = content.replace('images/theme.gif', 'https://github.com/UN-GCPDS/qt-material/raw/master/docs/source/images/theme.gif')
|
|
end = content.find('Indices and tables')
|
|
with open('../README.rst', 'w') as file:
|
|
file.write(content[:end])
|