Skip to content

Commit

Permalink
Fixed static content providers for website
Browse files Browse the repository at this point in the history
  • Loading branch information
norberttech committed Dec 21, 2024
1 parent 41347b1 commit 53892ae
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions web/landing/src/Flow/Website/EventListener/SitemapSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,18 @@ private function populateExamples(SitemapPopulateEvent $event) : void
),
'examples'
);

$event->getUrlContainer()->addUrl(
new UrlConcrete(
$event->getUrlGenerator()->generate(
'documentation_example',
['topic' => $topic, 'example' => $example],
UrlGeneratorInterface::ABSOLUTE_URL
),
changefreq: 'weekly'
),
'examples'
);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public function all() : array

foreach ($this->examples->examples($topic) as $example) {
$sources[] = new Source('example', ['topic' => $topic, 'example' => $example]);
$sources[] = new Source('documentation_example', ['topic' => $topic, 'example' => $example]);
}
}

Expand Down

0 comments on commit 53892ae

Please sign in to comment.