Commit graph

11 commits

Author SHA1 Message Date
Tony @ Navillus
245632bc31
Update collections.md (#549)
Updating the Individual Pages from a Collection example to fix a few typos.

- The pokemon API returns an object with an array named `results` (plural)
- `data()` needs to wrap the object in an Array
- accessing item data needs to use `collection.data[0]` to grab data from the `data()` Array
2021-06-25 14:07:11 -07:00
Nate Moore
a136c85e6b
New Props API (#515)
* wip: update props api

* feat(#139, #309): enable new props api

* chore: migrate examples to new props API

* docs: update syntax guide for new props API

* chore: update examples to new props API

* chore: update docs to new Props API

* fix: hide __astroInternal from `Astro.props` consumers

* chore: remove scratchpad file

* chore: fix script error

* test: fix failing collection tests

* fix: set __astroInternal to `enumerable: false`

* chore: add changeset

* feat: warn users using old props api
2021-06-24 17:48:24 -05:00
Tony @ Navillus
3f3e4f1286
Update createCollection() to handle pageSize: Infinity (#516)
* Fix pageSize calculation when Infinity is given

* test grouping collection with pageSize: Infinity

* test individual pages for collection items

* Revert "update docs, remove reference to Inifinity"

This reverts commit e8a976a543.

* Adding changeset
2021-06-23 08:40:58 -04:00
Fred K. Schott
e8a976a543 update docs, remove reference to Inifinity 2021-06-18 16:16:27 -07:00
Tony @ Navillus
fc4433e640
Update collections.md (#485)
Very minor typo in the example code pulling results out of the `pokeapi` response
2021-06-17 13:47:48 -05:00
FredKSchott
2ea15f4192 [ci] yarn format 2021-06-15 00:22:00 +00:00
Fred K. Schott
8399a4893e
new collections API docs (#416)
* new collections API docs

* docs updates

* Update docs/collections.md

Co-authored-by: Drew Powers <1369770+drwpow@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Drew Powers <1369770+drwpow@users.noreply.github.com>

* respond to code review

Co-authored-by: Drew Powers <1369770+drwpow@users.noreply.github.com>
2021-06-14 17:21:00 -07:00
ewatch
3d99045411
Fix invalid HTML code in Example 1 (#236)
Line 111 opened a headline with h5 but closed with h6.
Both are h5 tags now.
2021-05-24 16:53:39 -04:00
Nate Moore
73b7827b40
chore: update docs to new defaults (#133) 2021-04-27 13:42:03 -05:00
Drew Powers
510e7920d2
Add RSS generation (#123) 2021-04-23 10:44:41 -06:00
Drew Powers
76932822b8
Split README into docs (#118) 2021-04-20 17:15:47 -06:00