You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, this leads to all new items having this property because it is a default. Is there any way I can set the document title in the documents YAML without having it added to all child items? IMO it is needless to replicate the title into all requirement items.
This issue stems from what appears to be an oddly configured parser in base.py
Line 312.
There seems to be an inconsistency here in parsing the "doc_attributes".
Given the items listed in "doc_attributes", such as "title" and "copyright" I assume these are intended to be global in nature for the document.
As mentioned, having to use the default key in .doorstop.yml to connect these existing variables is not ideal. I imagine the direct use of the "title" key used to function as a root attribute or directly under "doc" or "attribute", but has since been reworked and this part in base.py got missed.
Key names under "publish" can be whatever you want.
Run publish to create your template folder. Move the template folder to another location.
Edit template/views/doorstop.tpl:
For example, the title section:
This works because the attribute, publish keys are copied to _attribute_publish in the document object. The variable you want to access is then put into the [" "] section, like I've done with title.
Lastly, refer to your templates file when calling publish:
Keep in mind this gets dicey as the global template will not function for Index and Traceability.
At this point some sort of script that calls different templates for your different documents may be appropriate.
Activity
thomathy007 commentedon Sep 30, 2026
This issue stems from what appears to be an oddly configured parser in
base.py
Line 312.
There seems to be an inconsistency here in parsing the "doc_attributes".
Given the items listed in "doc_attributes", such as "title" and "copyright" I assume these are intended to be global in nature for the document.
The issue is in this call:
on line 323 which, gonna be honest, not sure how this line works, but it's trying to pull from a key list of
which doesn't seem right given the "defaults" are not global.
Before I go further, I'll admit I'm new to this tool, so take my suggestion here with a grain of salt:
Suggestion
It would be nice to have a clean way of passing global document values to the publisher, for example:
Expect a .doorstop.yml format of:
Then in our *.tpl bottle template file, we should be able to pull whatever fields we want or had defined in .doorstop.yml:
As mentioned, having to use the default key in .doorstop.yml to connect these existing variables is not ideal. I imagine the direct use of the "title" key used to function as a root attribute or directly under "doc" or "attribute", but has since been reworked and this part in base.py got missed.
thomathy007 commentedon Sep 30, 2026
Hi, I'm back.
I've found a very usable workaround:
Define your .doorstop.yml like so using attributes and publish
Key names under "publish" can be whatever you want.
Run publish to create your template folder. Move the template folder to another location.
Edit template/views/doorstop.tpl:
For example, the title section:
This works because the attribute, publish keys are copied to _attribute_publish in the document object. The variable you want to access is then put into the [" "] section, like I've done with title.
Lastly, refer to your templates file when calling publish:
Keep in mind this gets dicey as the global template will not function for Index and Traceability.
At this point some sort of script that calls different templates for your different documents may be appropriate.