|
12 | 12 |
|
13 | 13 | <show-structure depth="2" /> |
14 | 14 |
|
15 | | - <snippet id="generate"> |
| 15 | + <chapter title="Generate all feeds" id="generate_all_feeds"> |
| 16 | + <snippet id="generate"> |
| 17 | + <p> |
| 18 | + To generate feeds, create the classes of feeds and its element, add links to the file |
| 19 | + <code>%config-filename%</code>, next call the console command: |
| 20 | + </p> |
| 21 | + |
| 22 | + <code-block lang="bash"> |
| 23 | + %command-generate% |
| 24 | + </code-block> |
| 25 | + </snippet> |
| 26 | + </chapter> |
| 27 | + |
| 28 | + <chapter title="Generate a single feed" id="generate_a_single_feed"> |
| 29 | + <note> |
| 30 | + Please note that the specified feed will be executed even if it is disabled in the settings file. |
| 31 | + </note> |
| 32 | + |
| 33 | + <p> |
| 34 | + To generate a specific feed class, specify the class reference or name relative to the |
| 35 | + <code>App\Feeds</code> namespace. |
| 36 | + </p> |
| 37 | + |
16 | 38 | <p> |
17 | | - To generate feeds, create the classes of feeds and its element, add links to the file |
18 | | - <code>%config-filename%</code>, next call the console command: |
| 39 | + For example: |
19 | 40 | </p> |
20 | 41 |
|
21 | 42 | <code-block lang="bash"> |
22 | | - %command-generate% |
| 43 | + %command-generate% App\Feeds\UserFeed |
| 44 | + %command-generate% UserFeed |
| 45 | + %command-generate% User |
23 | 46 | </code-block> |
24 | | - </snippet> |
| 47 | + </chapter> |
25 | 48 |
|
26 | | - <p> |
27 | | - Each feed can be created in a certain folder of a certain storage. |
28 | | - </p> |
| 49 | + <chapter title="Change location" id="change_location"> |
| 50 | + <p> |
| 51 | + Each feed can be created in a certain folder of a certain storage. |
| 52 | + </p> |
29 | 53 |
|
30 | | - <p> |
31 | | - To indicate the storage, override the property of <code>$storage</code> in the feed class: |
32 | | - </p> |
| 54 | + <p> |
| 55 | + To indicate the storage, override the property of <code>$storage</code> in the feed class: |
| 56 | + </p> |
33 | 57 |
|
34 | | - <code-block lang="php" src="generation-feed-storage.php" include-lines="5-" /> |
| 58 | + <code-block lang="php" src="generation-feed-storage.php" include-lines="5-" /> |
35 | 59 |
|
36 | | - <p> |
37 | | - By default, storage is <code>public</code>. |
38 | | - </p> |
| 60 | + <p> |
| 61 | + By default, storage is <code>public</code>. |
| 62 | + </p> |
39 | 63 |
|
40 | | - <p> |
41 | | - The path to the file inside the storage is indicated in the <code>filename</code> method: |
42 | | - </p> |
| 64 | + <p> |
| 65 | + The path to the file inside the storage is indicated in the <code>filename</code> method: |
| 66 | + </p> |
43 | 67 |
|
44 | | - <code-block lang="php" src="generation-feed-filename.php" include-lines="5-" /> |
| 68 | + <code-block lang="php" src="generation-feed-filename.php" include-lines="5-" /> |
45 | 69 |
|
46 | | - <p> |
47 | | - By default, the class name in <code>kebab-case</code> is used. |
48 | | - For example, <code>user-feed.xml</code> for <code>UserFeed</code> class. |
49 | | - </p> |
| 70 | + <p> |
| 71 | + By default, the class name in <code>kebab-case</code> is used. |
| 72 | + For example, <code>user-feed.xml</code> for <code>UserFeed</code> class. |
| 73 | + </p> |
| 74 | + </chapter> |
50 | 75 | </topic> |
0 commit comments