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

Support nested sections #490

Closed
kasium opened this issue Mar 20, 2023 · 3 comments
Closed

Support nested sections #490

kasium opened this issue Mar 20, 2023 · 3 comments

Comments

@kasium
Copy link

kasium commented Mar 20, 2023

Let's imagine the following project X:

  • frontend
    • fixed
    • features
  • backend
    • fixed
    • features

Currently in towncrier you would need 4 fragments with their configuration in TOML. However, it would be a great feature if towncrier would support something like

[tool.towncrier]
package = "X"

  [[tool.towncrier.category]]
  directory = "backend"
  name = "Backend"

    [[tool.towncrier.type]]
    directory = "feature"
    name = "Features"
    showcontent = true

With that, given a file foo.backend.feature would render similar to

Backend
--------

Features
^^^^^^^^

* My feature (foo)
@chadrik
Copy link

chadrik commented Apr 26, 2023

This is supported in change as a feature called "components", and it's quite nice.

@SmileyChris
Copy link
Contributor

This is already a feature, it's just not documented.
In #483, I've added some docs.

@kasium
Copy link
Author

kasium commented May 6, 2023

Great , thanks a lot!

@kasium kasium closed this as completed May 6, 2023
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

No branches or pull requests

3 participants