mirror of
https://github.com/UN-GCPDS/qt-material.git
synced 2025-02-03 17:13:02 +08:00
11 lines
447 B
Python
11 lines
447 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')
|
||
|
end = content.find('Indices and tables')
|
||
|
with open('../README.rst', 'w') as file:
|
||
|
file.write(content[:end])
|