mirror of
https://github.com/UN-GCPDS/qt-material.git
synced 2025-02-03 17:13:02 +08:00
Update documentation
This commit is contained in:
parent
8a3bf9a6fe
commit
189316fdb1
@ -16,12 +16,12 @@ Status|
|
|||||||
|
|
||||||
There is some custom dark themes:
|
There is some custom dark themes:
|
||||||
|
|
||||||
.. image:: images/dark.gif
|
.. image:: https://github.com/UN-GCPDS/qt-material/raw/master/docs/source/images/dark.gif
|
||||||
|
|
||||||
|
|
||||||
And light:
|
And light:
|
||||||
|
|
||||||
.. image:: images/light.gif
|
.. image:: https://github.com/UN-GCPDS/qt-material/raw/master/docs/source/images/light.gif
|
||||||
|
|
||||||
|
|
||||||
Install
|
Install
|
||||||
@ -141,3 +141,7 @@ Light will need to add `light_secondary` argument as `True`.
|
|||||||
.. |Documentation Status| image:: https://readthedocs.org/projects/qt-material/badge/?version=latest
|
.. |Documentation Status| image:: https://readthedocs.org/projects/qt-material/badge/?version=latest
|
||||||
:target: https://qt-material.readthedocs.io/en/latest/?badge=latest
|
:target: https://qt-material.readthedocs.io/en/latest/?badge=latest
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -37,3 +37,5 @@ buildapi:
|
|||||||
|
|
||||||
cp source/index.rst ../README.rst
|
cp source/index.rst ../README.rst
|
||||||
|
|
||||||
|
python fix_readme.py
|
||||||
|
|
||||||
|
10
docs/fix_readme.py
Normal file
10
docs/fix_readme.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
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])
|
Loading…
x
Reference in New Issue
Block a user