Update documentation

This commit is contained in:
Yeison 2020-12-11 20:12:23 -05:00
parent 8a3bf9a6fe
commit 189316fdb1
3 changed files with 18 additions and 2 deletions

View File

@ -16,12 +16,12 @@ Status|
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:
.. image:: images/light.gif
.. image:: https://github.com/UN-GCPDS/qt-material/raw/master/docs/source/images/light.gif
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
:target: https://qt-material.readthedocs.io/en/latest/?badge=latest

View File

@ -37,3 +37,5 @@ buildapi:
cp source/index.rst ../README.rst
python fix_readme.py

10
docs/fix_readme.py Normal file
View 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])