Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for fonts (0.19 sec)

  1. tests/test_local_docs.py

    
    def test_google_fonts_in_generated_redoc():
        body_with_google_fonts = get_redoc_html(
            openapi_url="/docs", title="title"
        ).body.decode()
        assert "fonts.googleapis.com" in body_with_google_fonts
        body_without_google_fonts = get_redoc_html(
            openapi_url="/docs", title="title", with_google_fonts=False
        ).body.decode()
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Dec 20 18:50:00 GMT 2020
    - 2.4K bytes
    - Viewed (0)
  2. fastapi/openapi/docs.py

                """
            ),
        ] = "https://fastapi.tiangolo.com/img/favicon.png",
        with_google_fonts: Annotated[
            bool,
            Doc(
                """
                Load and use Google Fonts.
                """
            ),
        ] = True,
    ) -> HTMLResponse:
        """
        Generate and return the HTML response that loads ReDoc for the alternative
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 10.1K bytes
    - Viewed (0)
Back to top