Replies: 2 comments
-
Hey Flo, having your own layout is the only solution to hide specific options from the output. It's also quite easy to extend it, if you start with the default one: needs_layouts = {
"my_layout": {
"grid": "simple",
"layout": {
"head": [
'<<meta("type_name")>>: **<<meta("title")>>** <<meta_id()>> <<collapse_button("meta", '
'collapsed="icon:arrow-down-circle", visible="icon:arrow-right-circle", initial=False)>> '
],
"meta": ["<<meta_all(no_links=True)>>", "<<meta_links_all()>>"],
},
},
} Source: default.py, contains the configs for our default layouts, and is a good place for layout examples.
I guess you can also name the layout Otherwise you can use needs_global_options = {
'layout': 'my_layout'
} Source: needs_global_option config |
Beta Was this translation helpful? Give feedback.
-
Hi Flo, Welcome to the Sphinx-Needs community, and thank you for bringing Sphinx-Needs to your company! It’s great to hear about your initiative. We’d love to have a chat to discuss your current challenges and offer support with materials and best practices from other companies already using Sphinx-Needs. Just drop us a message at [email protected], and we’ll be happy to connect! Looking forward to supporting you on your Sphinx-Needs journey. Best, |
Beta Was this translation helpful? Give feedback.
-
Hello guys,
I'm Flo, connected from Rennes, France.
I'm trying to push in my company to use sphinx-needs for requirement management and use it as part of our documentations.
I've got a small issue, if anybody can help me.
So i want to use as much as possible the built-in layouts, the only issue i have is that i'm not able to select what fields are visible in the rendered html (or PDF). For instance having the field 'style' visible seems a bit awkward to me.
I went through the doc, i could not find any solution, except creating my own layout, which would be acceptable, but it will probably lead to new issues for me, so i"d like to clarify that first.
Am i missing something?
Many thanks for your help.
Best,
Flo.
Beta Was this translation helpful? Give feedback.
All reactions