The build directory is the folder in which all the static content gets dumped.
There are several way to tell Stenope where to dump the static files:
# config/packages/stenope.yaml
stenope:
build_dir: '%kernel.project_dir%/build'
bin/console stenope:build ./path/to/the/build
This package defines route options to control some of its features.
You may want to exclude some routes from the static generated version of your site.
In order to ignore such routes during the build, set the stenope.ignore
option to true
:
#[Route('foo', name: 'foo', options: [
'stenope' => [
'ignore' => true,
],
])]
public function fooAction() { /* ... */ }
If you need to exclude some routes from the generated sitemap, but still keep them in the build, set the stenope.sitemap
route option to false
:
#[Route('foo', name: 'foo', options: [
'stenope' => [
'sitemap' => false,
],
])]
public function fooAction() { /* ... */ }