mirror of
https://github.com/lektor/lektor-website.git
synced 2025-03-12 08:16:40 +01:00
Add minimal docs for Asset class (to fix broken link to same)
This commit is contained in:
parent
103761dd6f
commit
65d03ec753
11
content/docs/api/db/asset/children/contents.lr
Normal file
11
content/docs/api/db/asset/children/contents.lr
Normal file
@ -0,0 +1,11 @@
|
||||
title: children
|
||||
---
|
||||
summary: Returns a query to the children of a page.
|
||||
---
|
||||
type: property
|
||||
---
|
||||
body:
|
||||
|
||||
[Assets :ref](../) that correspond to directories can have children
|
||||
below them. The `children` attribute provides a convenient way to access
|
||||
those. It returns an iterable of child assets.
|
14
content/docs/api/db/asset/contents.lr
Normal file
14
content/docs/api/db/asset/contents.lr
Normal file
@ -0,0 +1,14 @@
|
||||
title: Asset
|
||||
---
|
||||
summary: Static assets, copied verbatim to the output.
|
||||
---
|
||||
module: lektor.assets
|
||||
---
|
||||
type: class
|
||||
---
|
||||
body:
|
||||
|
||||
Assets are [Source Objects :ref](../obj/) that correspond to static files that
|
||||
are copied verbatim from the `/assets` folder to the output directory.
|
||||
|
||||
Usually, there is no need to manipulate Asset objects directly.
|
13
content/docs/api/db/asset/get-child/contents.lr
Normal file
13
content/docs/api/db/asset/get-child/contents.lr
Normal file
@ -0,0 +1,13 @@
|
||||
title: get_child
|
||||
---
|
||||
body:
|
||||
|
||||
Lookup a child of the asset. Returns `None` if no child exists with the specified name.
|
||||
|
||||
Naturally, this method always returns `None` unless the asset is a directory.
|
||||
---
|
||||
signature: name, from_url=False
|
||||
---
|
||||
summary: Get child asset
|
||||
---
|
||||
type: method
|
Loading…
x
Reference in New Issue
Block a user