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

Automatically generate pages from resource tree #215

Open
Kaliumhexacyanoferrat opened this issue Jul 8, 2021 · 0 comments · May be fixed by #355
Open

Automatically generate pages from resource tree #215

Kaliumhexacyanoferrat opened this issue Jul 8, 2021 · 0 comments · May be fixed by #355
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Kaliumhexacyanoferrat
Copy link
Owner

Kaliumhexacyanoferrat commented Jul 8, 2021

As a developer, I would like to automatically create a layout with pages from a given resource tree, so that my project is easier to maintain.

Example

var tree = ResourceTree.FromProject("Pages");

var pages = Pages.From(tree);

var website = Website.Create()
                     .Content(pages);

Acceptance criteria

  • The functionality is implemented in a new module named GenHTTP.Modules.Pages
  • Pages are rendered into the project template as expected (e.g. provided by the website in the example above, note that the existing PageProviders will do that automatically)
  • Pages are rendered by analyzing the extension of the requested resource
  • Extensions that are not supported for rendering (e.g. .jpg) are directly served as static resources
  • The title of a rendered page is automatically derived from the resource name (MyPage.md => My Page)
  • The path of a rendered page is automatically derived from the resource name (MyPage.md => my-page)
  • Rendered pages may overwrite the ContentInfo to set the title and description of the page, if supported by the rendering engine
  • All acceptance criteria are covered by acceptance tests
@Kaliumhexacyanoferrat Kaliumhexacyanoferrat added enhancement New feature or request good first issue Good for newcomers labels Jul 8, 2021
@Kaliumhexacyanoferrat Kaliumhexacyanoferrat added this to the Version 7.0 milestone Dec 16, 2022
@Kaliumhexacyanoferrat Kaliumhexacyanoferrat self-assigned this Dec 16, 2022
@Kaliumhexacyanoferrat Kaliumhexacyanoferrat removed this from the Version 7.0 milestone Jul 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant