Skip to content

Build artifacts can escape the output directory (book) #172

@japaric

Description

@japaric

STR

$ mkdir foo && cd $_

$ touch README.md

$ edit src/SUMMARY.md && cat $_
- [foo](../README.md)

$ tree
.
├── README.md
└── src
    └── SUMMARY.md

$ mdbook build

$ tree
.
├── book
│   ├── book.css
│   ├── book.js
│   ├── favicon.png
│   ├── _FontAwesome
│   │   ├── css
│   │   │   └── font-awesome.css
│   │   └── fonts
│   │       ├── FontAwesome.ttf
│   │       ├── fontawesome-webfont.eot
│   │       ├── fontawesome-webfont.svg
│   │       ├── fontawesome-webfont.ttf
│   │       ├── fontawesome-webfont.woff
│   │       └── fontawesome-webfont.woff2
│   ├── highlight.css
│   ├── highlight.js
│   ├── index.html
│   ├── jquery.js
│   ├── print.html
│   └── tomorrow-night.css
├── README.html <-- !
├── README.md
└── src
    └── SUMMARY.md

There's an extra README.html in the root of the directory. I think the cause is that one of the input files is outside the src directory.

My expectation is that build artifacts should be contained in the book directory.

Meta

$ mdbook --verion
mdbook v0.0.15

$ git rev-parse HEAD
b91f8173503e017fc41ef3254e4726872d

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-RenderingArea: RenderingC-bugCategory: A bug, incorrect or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions