Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Front Page #64

Open
varkud opened this issue May 25, 2021 · 7 comments
Open

Add Front Page #64

varkud opened this issue May 25, 2021 · 7 comments
Labels
Milestone

Comments

@varkud
Copy link

varkud commented May 25, 2021

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

  • html(the same as footer/header)
  • Parent page (the same as folder name on one level up)
  • path to wiki page

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

@MaxMelcher
Copy link
Owner

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

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

@Jheronymus
Copy link
Contributor

Jheronymus commented Jun 1, 2021

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 #39

@MaxMelcher MaxMelcher added this to the Version 4.1 milestone Nov 14, 2021
@Diom
Copy link
Contributor

Diom commented Feb 17, 2022

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

@Diom
Copy link
Contributor

Diom commented Feb 25, 2022

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
Copy link

cpetry commented Mar 2, 2022

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

  • Define a front page via markdown and name it as a --frontpage parameter
  • Define the front page via html like @Diom directly in parameters

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
Copy link
Owner

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

thanks @cpetry

chrPetry pushed a commit to cpetry/AzureDevOps.WikiPDFExport that referenced this issue Mar 2, 2022
…to the given frontpage name is pushed in front of toc as first page
@nrogoff
Copy link

nrogoff commented Jul 28, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants