orzih / mkdocs-with-pdf

Generate a single PDF file from MkDocs repository.
MIT License
325 stars 76 forks source link

Exclude index.md #73

Closed fernwerker closed 3 years ago

fernwerker commented 3 years ago

Is there any way to exclude the index.md from pdf generation? My home always goes to a "blog"-similar entry, which is not supposed to be genreated in the pdf file.

Any ideas? I tried:

      exclude_pages:
        - .
        - index.md
        - /

No success so far.

orzih commented 3 years ago

See https://github.com/orzih/mkdocs-with-pdf/issues/69#issuecomment-889342144, same issue.

fernwerker commented 3 years ago

Unfortunately this does not work. So index is still included to the pdf.

But I just moved the blog posts to a sub-page and added something generic to index.. so visitors won't arrive at posts, but so what. :D