vivliostyle / vivliostyle.org

Source code of the vivliostyle.org website
https://vivliostyle.org
MIT License
8 stars 4 forks source link

Improving the Samples page or Getting started page #128

Open shinokada opened 2 years ago

shinokada commented 2 years ago

I quite like practical examples in the doc. For example:

vivliostyle build https://vivliostyle.github.io/vivliostyle_doc/samples/gutenberg/Alice.html -s A4 -o Alice.pdf

By using this command, I can see the result. However it stops there. The commands after this example are generic and I can't see the results.

My suggestion is that using the Samples page. I tried HTML with the above code but I didn't get the image you mentioned in the page.

image

Is it possible to post commands how to create this or this as a PDF?

It will be very hands-on and new uses like me can benefit from it.

What do you think?

MurakamiShinyu commented 2 years ago

Is it possible to post commands how to create this or this as a PDF?

vivliostyle build https://vivliostyle.github.io/vivliostyle_doc/samples/webmag/index.html \
  --style https://vivliostyle.github.io/vivliostyle_doc/samples/webmag/css/viv-style-v.css
vivliostyle build https://vivliostyle.github.io/vivliostyle_doc/samples/webmag/index.html \
  --style https://vivliostyle.github.io/vivliostyle_doc/samples/webmag/css/viv-style-h.css

Your suggestion is to put these examples to the CLI document, the Specifying additional style sheets section?

shinokada commented 2 years ago

Yes, that will be a good place to put them. I can see how to use to style a html page. It will be great to see more of these. Thanks.