Closed villanella closed 6 months ago
Hi @villanella,
.doorstop.yml
files for the document that fails? And also the printout with the --verbose
flag set.Hello @neerdoc, thank you for helping me with debug!
This config file contains custom attribute:
settings:
digits: 3
itemformat: markdown
parent: ROOT
prefix: REQ
sep: '.'
attributes:
defaults:
component:
Verbose log:
...
loading document ADH-2122-UC's items...
loading document ADH-2122-REQ's items...
loading document ADH-2122-TST's items...
Deleting contents of template directory /home/username/doorstop/doorstop-rtm/output/template
Copying /usr/lib/python3.11/site-packages/doorstop/core/files/templates/html to /home/username/doorstop/doorstop-rtm/template
Copying /usr/lib/python3.11/site-packages/doorstop/core/../views to /home/username/doorstop/doorstop-rtm/output/template/views
Template = doorstop
publishing to /home/username/doorstop/doorstop-rtm/output/documents/ROOT.html...
publishing to /home/username/doorstop/doorstop-rtm/output/documents/OVERVIEW.html...
publishing to /home/username/doorstop/doorstop-rtm/output/documents/REQ.html...
Traceback (most recent call last):
File "/usr/bin/doorstop", line 8, in <module>
........ [error message here] ....
KeyError: 'doc'
If I removes attributes, the publish result of this doc is successful.
All docs at once I can't publish because of my RAM (according the error zsh: killed doorstop publish all output -H --verbose
). I have specs with a lot of items.
Default template can't render markdown tables. How can I fix it? Maybe I apply the templates in incorrect way. My templates are located at the next path:
Deleting contents of template directory /home/username/doorstop/doorstop-rtm/output/template
Copying /usr/lib/python3.11/site-packages/doorstop/core/files/templates/html to /home/username/doorstop/doorstop-rtm/template
Copying /usr/lib/python3.11/site-packages/doorstop/core/../views to /home/username/doorstop/doorstop-rtm/output/template/views
Template = doorstop
I am facing the same issue, it really seems to be related to the available RAM. Is there any way of sequencing the publishing in order to limit the necessary available RAM ?
.doorstop.yml
file. I will fix as soon as I can. In the meantime, please test to add the doc attribute with a "dummy" text. It should help. Like this:
attributes:
defaults:
component:
doc:
dummy
reqs
├── REQ001.yml
├── assets
│ └── logo-black-white.png -> ../../docs/images/logo-black-white.png
├── template
│ ├── bootstrap.bundle.min.js
│ ├── bootstrap.min.css
│ ├── doorstop.css
│ ├── general.css
│ ├── jquery.min.js
│ ├── logo-black-white.png
│ ├── output
│ │ ├── chtml
│ │ │ └── fonts
│ │ │ ├── tex.js
│ │ │ └── woff-v2
│ │ │ ├── MathJax_AMS-Regular.woff
│ │ │ ├── MathJax_Calligraphic-Bold.woff
│ │ │ ├── MathJax_Calligraphic-Regular.woff
│ │ │ ├── MathJax_Fraktur-Bold.woff
│ │ │ ├── MathJax_Fraktur-Regular.woff
│ │ │ ├── MathJax_Main-Bold.woff
│ │ │ ├── MathJax_Main-Italic.woff
│ │ │ ├── MathJax_Main-Regular.woff
│ │ │ ├── MathJax_Math-BoldItalic.woff
│ │ │ ├── MathJax_Math-Italic.woff
│ │ │ ├── MathJax_Math-Regular.woff
│ │ │ ├── MathJax_SansSerif-Bold.woff
│ │ │ ├── MathJax_SansSerif-Italic.woff
│ │ │ ├── MathJax_SansSerif-Regular.woff
│ │ │ ├── MathJax_Script-Regular.woff
│ │ │ ├── MathJax_Size1-Regular.woff
│ │ │ ├── MathJax_Size2-Regular.woff
│ │ │ ├── MathJax_Size3-Regular.woff
│ │ │ ├── MathJax_Size4-Regular.woff
│ │ │ ├── MathJax_Typewriter-Regular.woff
│ │ │ ├── MathJax_Vector-Bold.woff
│ │ │ ├── MathJax_Vector-Regular.woff
│ │ │ └── MathJax_Zero.woff
│ │ ├── chtml.js
│ │ ├── svg
│ │ │ └── fonts
│ │ │ └── tex.js
│ │ └── svg.js
│ ├── tex-mml-chtml.js
│ └── views
│ ├── base.tpl
│ ├── document_list.tpl
│ ├── my_template.tpl
│ └── item_list.tpl
└── tutorial
├── TUT001.yml
Then you can publish like this: doorstop --html --template my_template all output
For the RAM issue: Can either of you contact my directly so that we can discuss if there is a way that you can share your document temporarily for testing as this is not something that I have encountered. It is on the 3.2 milestone to test very large setups, but I have not had the time yet.
Hi @neerdoc, I tried to send you my files via mail, "gustav@neer.se" is correct ?
@neerdoc I have used your fix from https://github.com/neerdoc/doorstop/commit/3c57c445768895c8fe5d065f743b7e4e51e3febf This fixes the situation for me, so please disregard my mail and my previous comments regarding a potential RAM issue, it works fine for me now !
@fwuehr1995 Very good! I'll disregard the email.
- I realise that I've been cheating a bit on the checking of this information in the
.doorstop.yml
file. I will fix as soon as I can. In the meantime, please test to add the doc attribute with a "dummy" text. It should help. Like this:attributes: defaults: component: doc: dummy
2. For the second problem with the template: The template folder should be placed alongside the documents. So for a document tree you would place the files like this:
reqs ├── REQ001.yml ├── assets │ └── logo-black-white.png -> ../../docs/images/logo-black-white.png ├── template │ ├── bootstrap.bundle.min.js │ ├── bootstrap.min.css │ ├── doorstop.css │ ├── general.css │ ├── jquery.min.js │ ├── logo-black-white.png │ ├── output │ │ ├── chtml │ │ │ └── fonts │ │ │ ├── tex.js │ │ │ └── woff-v2 │ │ │ ├── MathJax_AMS-Regular.woff │ │ │ ├── MathJax_Calligraphic-Bold.woff │ │ │ ├── MathJax_Calligraphic-Regular.woff │ │ │ ├── MathJax_Fraktur-Bold.woff │ │ │ ├── MathJax_Fraktur-Regular.woff │ │ │ ├── MathJax_Main-Bold.woff │ │ │ ├── MathJax_Main-Italic.woff │ │ │ ├── MathJax_Main-Regular.woff │ │ │ ├── MathJax_Math-BoldItalic.woff │ │ │ ├── MathJax_Math-Italic.woff │ │ │ ├── MathJax_Math-Regular.woff │ │ │ ├── MathJax_SansSerif-Bold.woff │ │ │ ├── MathJax_SansSerif-Italic.woff │ │ │ ├── MathJax_SansSerif-Regular.woff │ │ │ ├── MathJax_Script-Regular.woff │ │ │ ├── MathJax_Size1-Regular.woff │ │ │ ├── MathJax_Size2-Regular.woff │ │ │ ├── MathJax_Size3-Regular.woff │ │ │ ├── MathJax_Size4-Regular.woff │ │ │ ├── MathJax_Typewriter-Regular.woff │ │ │ ├── MathJax_Vector-Bold.woff │ │ │ ├── MathJax_Vector-Regular.woff │ │ │ └── MathJax_Zero.woff │ │ ├── chtml.js │ │ ├── svg │ │ │ └── fonts │ │ │ └── tex.js │ │ └── svg.js │ ├── tex-mml-chtml.js │ └── views │ ├── base.tpl │ ├── document_list.tpl │ ├── my_template.tpl │ └── item_list.tpl └── tutorial ├── TUT001.yml
Then you can publish like this:
doorstop --html --template my_template all output
For the RAM issue: Can either of you contact my directly so that we can discuss if there is a way that you can share your document temporarily for testing as this is not something that I have encountered. It is on the 3.2 milestone to test very large setups, but I have not had the time yet.
This dummy code is working, thank you:
doc:
dummy
Only the error with publishing tables is still actual. My publish template structure is the same as yours, but no tables are rendered in html output and in doorstop-server.
@neerdoc This is an example how tables are rendered in doorstop-server and doorstop publish output
Screen 1:
Screen 2:
Hello! There are some problems in Doorstop v3.0b12 with refactored HTML publisher :