New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to add more pages on top of the input dir #2050
Comments
|
In an npm workspaces / lerna monorepo, I have 11ty files under
|
|
Maybe we can take inspiration from vite-plugin-pages's configuration for dirs: export default {
plugins: [
Pages({
dirs: [
{ dir: "src/pages", baseRoute: "" },
{ dir: "src/features/**/pages", baseRoute: "features" },
{ dir: "src/admin/pages", baseRoute: "admin" },
],
}),
],
}; |
|
I wonder if a symlink would work here? I've seen a few people use them in the past; https://github.com/11ty/eleventy/search?q=symlink+is%3Aissue&type=issues Or possibly using https://www.npmjs.com/package/symlink-dir if you don't want to set up symlinks manually. |
|
it would be a burden on contributors to make them symlink files every time they clone the repo or add a package |
|
There is an issue #2353 that talks about accepting an array for input. We can go to vote on that one. |
Is your feature request related to a problem? Please describe.
Right now a configuration might look like this:
Where the markdown files are picked up from the input dir.
The way I like to setup my files, I'd like this structure:
Describe the solution you'd like
It could be possible for the input value to take an array:
Alternatively, there could be an API to programmatically add more page sources:
The output folder would end up as:
Describe alternatives you've considered
Right now I have a script that copies the README.md into the docs folder.
Additional context
None
The text was updated successfully, but these errors were encountered: