Преглед изворни кода

remove style tag from readme

Falko Schindler пре 3 година
родитељ
комит
011721af81
2 измењених фајлова са 3 додато и 2 уклоњено
  1. 0 2
      README.md
  2. 3 0
      main.py

+ 0 - 2
README.md

@@ -10,8 +10,6 @@ You can also use it in development, for example when tweaking/configuring a mach
 
 NiceGUI is available as [PyPI package](https://pypi.org/project/nicegui/), [Docker image](https://hub.docker.com/r/zauberzeug/nicegui) and on [GitHub](https://github.com/zauberzeug/nicegui).
 
-<style>a img {display: inline}</style>
-
 [![PyPI version](https://badge.fury.io/py/nicegui.svg)](https://pypi.org/project/nicegui/)
 [![PyPI - Downloads](https://img.shields.io/pypi/dm/nicegui)](https://pypi.org/project/nicegui/)
 [![Docker Pulls](https://img.shields.io/docker/pulls/zauberzeug/nicegui)](https://hub.docker.com/r/zauberzeug/nicegui)<br />

+ 3 - 0
main.py

@@ -15,6 +15,9 @@ from nicegui.globals import page_stack
 # add docutils css to webpage
 page_stack[0].head_html += docutils.core.publish_parts('', writer_name='html')['stylesheet']
 
+# avoid display:block for PyPI/Docker/GitHub badges
+page_stack[0].head_html += '<style>p a img {display: inline}</style>'
+
 
 @contextmanager
 def example(content: Union[Callable, type, str]):