Include list of third-party licenses in the C++ docs

This isn't very pretty, but I think it does the job.

cc #6634
This commit is contained in:
Simon Hausmann 2024-12-16 10:52:50 +01:00 committed by Simon Hausmann
parent f025ecf703
commit a7f965c941
5 changed files with 86 additions and 28 deletions

View file

@ -47,6 +47,13 @@ Slint C++ documentation
genindex
.. toctree::
:maxdepth: 0
:hidden:
:caption: Third-Party Licenses
thirdparty.md
.. image:: https://github.com/slint-ui/slint/workflows/CI/badge.svg
:target: https://github.com/slint-ui/slint/actions
:alt: GitHub CI Build Status

View file

@ -0,0 +1,29 @@
# Third Party Licenses
This page lists the licenses of the dependencies used by Slint.
## Overview of licenses
{{#each overview}}
- [{{name}}](#{{id}}) ({{count}})
{{/each}}
## All License Text
{{#each licenses}}
### <a id="{{id}}"></a> {{name}}
#### Used by:
{{#each used_by}}
- [{{crate.name}} {{crate.version}}]({{#if crate.repository}} {{crate.repository}} {{else}}
https://crates.io/crates/{{crate.name}} {{/if}})
{{/each}}
#### License Text
```
{{text}}
```
{{/each}}