Skip to content

Commit

Permalink
Feed 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Awilum committed Jul 11, 2022
1 parent 8083463 commit aef50d6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# v2.0.0, 2022-xx-xx
# v2.0.0, 2022-07-11

### Features

* **core** Updated code base for new Flextype 1.0.0-alpha.1
* **core** Adde ability to generate static feeds.

# v1.0.0, 2021-01-15
* Initial release
4 changes: 2 additions & 2 deletions settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ feeds: []
static:

# Feeds path (without trailing and without starting slash)
feed_path: '_site'
path: '_site'

# Site url (without trailing slash)
feed_url: ''
site_url: ''
4 changes: 2 additions & 2 deletions src/core/Console/Commands/Feed/FeedGenerateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ protected function configure(): void
{
$this->setName('feed:generate');
$this->setDescription('Generate feed.');
$this->addOption('feed-path', null, InputOption::VALUE_REQUIRED, 'Destination for generated static feed file (without trailing and without starting slash)');
$this->addOption('path', null, InputOption::VALUE_REQUIRED, 'Destination for generated static feed file (without trailing and without starting slash)');
$this->addOption('site-url', null, InputOption::VALUE_REQUIRED, 'Sit url (without trailing slash).');
}

Expand All @@ -44,7 +44,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int

$result = Command::SUCCESS;

$feedPath = $input->getOption('feed-path') ? $input->getOption('feed-path') : registry()->get('plugins.feed.settings.static.feed_path');
$feedPath = $input->getOption('path') ? $input->getOption('path') : registry()->get('plugins.feed.settings.static.path');

$staticFeedPath = FLEXTYPE_ROOT_DIR . '/' . $feedPath;

Expand Down

0 comments on commit aef50d6

Please sign in to comment.