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

GitHub Pages HTML rendering #16

Open
mrchristian opened this issue Nov 19, 2020 · 1 comment
Open

GitHub Pages HTML rendering #16

mrchristian opened this issue Nov 19, 2020 · 1 comment
Labels
MVP α Must One Button Publishing MVP started 2020 vα

Comments

@mrchristian
Copy link
Contributor

Question:

GitHub Pages HTML rendering - We are looking to see if you might have a recommendation about a framework we could use? Maybe that framework is even a use of Vivliostle or a CSS Typesetting solution? (Eureka - ah hadn’t thought of that until I started asking the question.).
Currently we make a website by converting Fidus Writer output, either HTML or unzipped EPUB so XHTML into a GitHub Pages - Jekyll or Hugo website, by converting the HTML/XHTML to Markdown.
See:

  1. GlobaleGesundheit - Jekyll - https://akademie-oeffentliches-gesundheitswesen.github.io/GlobaleGesundheit/
  2. Should-Schools-Reopen - Hugo - https://independent-sage.github.io/Should-Schools-Reopen/

What we want to change to is to remove the Markdown conversion and instead make the website on GitHub Pages using HTML or XHTML as directly outputted Fidus Writer. We imagine that we need to add custom CSS and Javascript to replicate some of the features we get from Jekyll or Hugo. The features we need are to build a navigation menu on the left, have a header and footer where we could insert links automatically; add some extra page content like GDPR, and if possible add anchor links to headers, and add search. Jekyll and Hugo frameworks can use HTML/XHTML but we tend not to find themes that have been built to take advantage of rendering HTML/XHTML and still be able to build the menus as they would when using Markdown.

Here are example file sets as delivered from Fidus Writer:

  1. HTML / XHTML - https://github.com/akademie-oeffentliches-gesundheitswesen/GlobaleGesundheit/tree/master/source
  2. XHTML from unzipped EPUB - https://github.com/akademie-oeffentliches-gesundheitswesen/Buchvorlage/tree/master/webbuch
@mrchristian mrchristian added the MVP α Must One Button Publishing MVP started 2020 vα label Nov 19, 2020
@mrchristian
Copy link
Contributor Author

Answer:

EPUB-compatible WebBook format (see: #3) will be useful because the same XHTML content documents can be used for EPUB, WebBook (with or without Vivliostyle), and PDF (with Vivliostyle).

How to generate such WebBook files will be a question. As explained before, images/tables numbering has to be processed without using CSS counter. Also, endnotes, images/tables lists at the back of the book have to be generated. If such processing can be done in Fidus Writer it will be nice.

Each content document XHTML file will have two stylesheet links, one for normal browser and EPUB reader, and the other for Vivliostyle that can be specified with media="print" (not only for Vivliostyle but also for normal browser to print, or other HTML+CSS to print tools) or media="vivliostyle" (only for Vivliostyle).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
MVP α Must One Button Publishing MVP started 2020 vα
Projects
None yet
Development

No branches or pull requests

1 participant