docs: Split README (#800)

* docs: Split README (#775) (#785)

* docs: add script to generate API reference from the source code (#788)

* refactor: test docs build, fix docs build flow

* refactor: update requirements

* refactor: rename changelog to release notes in docs
This commit is contained in:
Juro Oravec 2024-12-02 09:54:59 +01:00 committed by GitHub
parent ce3305a5ff
commit 4c2cb2f2c4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
56 changed files with 5093 additions and 49 deletions

View file

@ -140,6 +140,16 @@ class ComponentVars(NamedTuple):
</div>
{% endif %}
```
This is equivalent to checking if a given key is among the slot fills:
```py
class MyTable(Component):
def get_context_data(self, *args, **kwargs):
return {
"my_slot_filled": "my_slot" in self.input.slots
}
```
"""