MaxMelcher / AzureDevOps.WikiPDFExport

Export Azure DevOps Wiki to PDF
MIT License
187 stars 62 forks source link

Add Front Page #64

Open varkud opened 3 years ago

varkud commented 3 years ago

Would be good to have an option to select a front page, either as:

p.s. superb functionality!! Thanks for your work.

MaxMelcher commented 3 years ago

So a structure like this? [FrontPage] [the Wiki]

What is the scenario for this? Why is the frontpage not in the wiki?

Jheronymus commented 3 years ago

I was thinking of the same thing. But I think a nice front page, possibly with full size logo, big title etc would be nice as a document cover. While having such a thing as an opening for a wiki might be a bit weird. some wiki's/ docs-as-code type of solutions allow for some meta data on the page. Maybe that is a good way to allow for flexibility between wiki and document?

EDIT: maybe this can be done with https://github.com/MaxMelcher/AzureDevOps.WikiPDFExport/issues/39

Diom commented 2 years ago

@MaxMelcher The --glocaltoc option give this new importance, as we want the title page before the TOC.

Diom commented 2 years ago

By the way on this... with the last commit the TOC was wrapped in a <div class='toc'>...</div> container. I was able to add a title page by using CSS:

.toc {
    page-break-after: always;
}

h1.title {
    page-break-before: avoid !important;
    page-break-after: always;
    padding-top: 25%;
    text-align: center;
    font-size: 48px;
}

and the --globaltoc option set with HTML: --globaltoc "<h1 class='title'>My Title</h1>"

This works well for me anyways. Means I can set the title page at generation time.

cpetry commented 2 years ago

I am now also in need of this. So here are two options:

I guess as it takes a little while to polish this front page a markdown approach would be nicest (at least in my case). I'll create a PR for this

MaxMelcher commented 2 years ago

I agree. Markdown is the way to go, adding a custom html-based frontpage would be too much.

thanks @cpetry

nrogoff commented 11 months ago

Would be good to include the 'folder' level markdown page. e.g. if exporting the path and subfolders below /MyProject/Architecture then the front page would be /MyProject/Architecture.md