Mystery of the docs in the PDF transformation
Posted: Tue Jul 18, 2017 9:45 pm
I have a four book maps in the same directory.
They are all using the same, project-level transformation and the transformation is specified at the Project level. For some reason, 1 book (admin_guide_book.ditamap) is always output to a different level than the other books.
This is extra docs directory for one book is a problem because we plan to automate further. Different books should not result in a different transformation output behavior. So, I tried a couple of more things to pinpoint the reason. I wanted to rule out the our custom PDF transform itself, so I tried using the base DITA Map PDF transformation. The output was this:
The docs directory was still there. Could it be the base PDF transform cared somehow about whether the directory and the file had similar names? I tried changing the name of the book map again. I got this output
So, not that. At this point, it looks like the problem could be in the book's map file but the map file in VI and out looks identical to the others in its structure. I'm at a loss what to try next to debug this. I could code my build around the mysterious output path issue but it is driving me crazy at this point
Anybody got any ideas why this one particular book picks up an extra docs directory level when it outputs?
Code: Select all
docs/admin_guide/admin_guide_book.ditamap
docs/admin_guide/advanced_searches_guide_book.map
docs/admin_guide/internal_POC_guide_book.ditamap
docs/admin_guide/user_guide_book.ditamap
They are all using the same, project-level transformation and the transformation is specified at the Project level. For some reason, 1 book (admin_guide_book.ditamap) is always output to a different level than the other books.
Code: Select all
├── admin_guide
│ ├── advanced_searches_guide_book.pdf
│ ├── internal_POC_guide_book.pdf
│ └── user_guide_book.pdf
├── dita.list
├── dita.xml.properties
├── docs
│ └── admin_guide
│ └── admin_guide_book.pdf
Code: Select all
./out/pdf
./out/pdf/admin_guide/advanced_searches_guide_book.pdf
./out/pdf/admin_guide/internal_POC_guide_book.pdf
./out/pdf/admin_guide/user_guide_book.pdf
./out/pdf/docs/admin_guide/admin_guide_book.pdf
Code: Select all
./out/pdf/docs/admin_guide/admin_book.pdf
Anybody got any ideas why this one particular book picks up an extra docs directory level when it outputs?