vivliostyle / vivliostyle.js

📖 The power of CSS typesetting, right at your fingertips.
https://vivliostyle.org
GNU Affero General Public License v3.0
606 stars 52 forks source link

URL questions for a standalone website #551

Open mrchristian opened 5 years ago

mrchristian commented 5 years ago

Hi VivlioS,

I have a question about the Vivliostyle URLs.

I want to make a standalone website for a book. The whole website would just contain the files for the book, nothing else.

The book has been authored using Fidus Writers :-)

You can see an example HTML output here, and it could also just be on a normal webserver.

https://consortium.github.io/Fidus-Writer-Publishing/

The question I have is does the the appended Vivliostyle URLS, or can I have just the file URLs.

So not

https://vivliostyle.github.io/vivliostyle.js/viewer/vivliostyle-viewer.html#x=https://vivliostyle.github.io/vivliostyle_doc/samples/scholarly/index.html&spread=false

and instead

https://vivliostyle.github.io/vivliostyle_doc/samples/scholarly/index.html

I tried checking through the documentation but got a little lost.

I would also use the Vivliostyle setup on a research paper mining project about climate change, so create an inventory file of these papers and render an HTML site from it, but I'll come back to that later. https://github.com/petermr/climate/tree/master/clim107 @petermr

Thanks

Simon

MurakamiShinyu commented 5 years ago

For now, Vivliostyle Viewer URL with the document URL appended, i.e. such as https://vivliostyle.org/viewer/#src=https://consortium.github.io/Fidus-Writer-Publishing/&bookMode=true is necessary to view the document with the Vivliostyle.

It would be useful if it's possible with a <script> tag in the document HTML to enable Vivliostyle viewer, for example:

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>open-science-training-handbook</title>
        <script src="viewer/vivliostyle-viewer.js"></script>
    </head>
    <body>
        <h1>open-science-training-handbook</h1>
        ...

Is this what you want? If so, it will be a feature request issue.

mrchristian commented 5 years ago

Thanks for getting back.

I am imagining, assuming, that I would load the Vivliostyle.js from my own book site.

I'm just trying to figure out if its possible to have addresses that I could hand out of the web, and second would be relatively permanent.

Like book.com/chapter01, or assigning a DOI

Your suggestion about script tag in HTML doc would seem like a good idea, so yes a feature quest.

If this was used the HTML page would need to have an indication of where it sat in the TOC hierarchy, so some sort of inventory needs supplying. Just thinking off the top of my head.

My poor mans version would be to start with a book landing page and then link into the Vivliostyle appended address for the moment.

Thanks for the great work here :-)