Skip to content
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

Feature request: Add support for storing and rendering source files from subdirectories #75

Closed
caendesilva opened this issue Jun 20, 2022 · 5 comments · Fixed by #285
Closed
Assignees

Comments

@caendesilva
Copy link
Member

No description provided.

@caendesilva
Copy link
Member Author

caendesilva commented Jul 3, 2022

May be relevant for #112 as a pre-condition

@caendesilva
Copy link
Member Author

A simple usage for this is automatic nested pages, for example _pages/about/contact.md would be saved as _site/about/contact.html.

A more advanced usage could be as an alternative to documentation page grouping where each subdirectory becomes a sidebar page group.

@caendesilva caendesilva self-assigned this Jul 28, 2022
@caendesilva
Copy link
Member Author

Working on this now, realizing an interesting application. If, let's say, a Blade page is stored in _pages/docs, then depending on the compile order, that page could be saved alongside other documentation pages. Maybe this could be used as a more visible documentation full page search page?

@caendesilva
Copy link
Member Author

caendesilva commented Jul 28, 2022

So far:

  • Documentation pages now have support for nested directories, here the pages will still be compiled into _site/docs, but the subdirectory name is used to automatically add a sidebar category.
  • Blog posts work effortlessly, as to Markdown pages 😮
  • Blade pages needs to be updated to generate default title from the basename* Edit: fixed

*Would be neat to add a static parser to find @php($title = 'foo') tags to get the Blade page titles.

@caendesilva
Copy link
Member Author

Could be cool to add a configurable option to automatically put nested Blade/Markdown pages in dropdowns (#76) in the navigation menu.

@caendesilva caendesilva linked a pull request Jul 28, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant