1
0
mirror of https://github.com/flutter/samples.git synced 2026-04-01 17:23:18 +00:00

Simplify samples index and remove cookbook recipes (#2102)

Remove the cookbook recipes from the samples index in a step to
eventually remove it as a whole.

The cookbook recipe listings in the index haven't been updated in a long
time, the support for updating them doesn't work, and this isn't
generally how people are finding cookbook recipes.

This has the added benefit of reducing repo size quite a bit due to the
large images.
This commit is contained in:
Parker Lougheed
2023-11-30 12:17:19 -06:00
committed by GitHub
parent 60a4057c1f
commit ab6d874404
120 changed files with 28 additions and 1563 deletions

View File

@@ -122,8 +122,8 @@ void main() {
// Test if queries match by type
expect(matchesQuery('type:sample', attributes), true);
expect(matchesQuery('type:cookbook', attributes), false);
expect(matchesQuery('kittens type:cookbook', attributes), false);
expect(matchesQuery('type:demo', attributes), false);
expect(matchesQuery('kittens type:demo', attributes), false);
});
});
@@ -134,7 +134,7 @@ void main() {
expect(parseHash('#?search=kittens&platform=web'),
containsPair('platform', 'web'));
expect(parseHash('#?type=sample'), containsPair('type', 'sample'));
expect(parseHash('#?type=cookbook'), containsPair('type', 'cookbook'));
expect(parseHash('#?type=demo'), containsPair('type', 'demo'));
});
test('can be set', () {

View File

@@ -22,6 +22,6 @@ samples:
href: https://apps.apple.com/us/app/neko-atsume-kitty-collector/id923917775
- text: author
href: http://jpryan.me
type: sample # sample, app, or cookbook
type: sample # sample or app
date: 2019-12-15T02:59:43.1Z
channel: stable

View File

@@ -16,6 +16,6 @@ samples:
- path
tags: ['beginner', 'kittens', 'cats']
platforms: ['web', 'ios', 'android']
type: sample # sample, app, or cookbook
type: sample # sample or app
date: 2019-12-15T02:59:43.1Z
channel: stable