Remove docs for svg api, it's not provided anymore

Signed-off-by: Florian <florian@nextcloud.com>
This commit is contained in:
Florian 2023-01-27 12:07:17 +01:00 committed by GitHub
parent a57287b218
commit 0fbe6c78c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,24 +16,15 @@ White icons only have a grey background on this documentation page for readabili
.. _svgcolorapi:
Svg color api
=============
More information about scss and this api: :ref:`scss mixins and functions <cssicons>`
The svg API is not supported anymore due to performance reasons.
You can request and color any svg icons used in nextcloud with this api.
The server will directly change the colours of the ``circle``, ``rect`` and ``path`` elements in the svg you provide.
Simply use those urls:
* ``https://yourdomain/svg/core/actions/menu?color=ffffff``
Will serve the svg located in the core/img directory as a white icon
``/core/img/actions/menu.svg``
* ``https://yourdomain/svg/core/places/calendar?color=0082c9``
Will serve the svg located in the core/img directory with the color #0082c9
``/core/img/places/calendar.svg``
* ``https://yourdomain/svg/files/app?color=000000``
Will serve the svg located in the files app ``img`` directory ad a black icon
``/app/files/img/app.svg``
Material design icons
=====================
If you need more than the shipped default icons, using the material-design-icons would be a good idea.
For usage with vuejs look over here: https://nextcloud-vue-components.netlify.app/#/Components/NcIconSvgWrapper