Exporting static html version of a site (with CSS/JS from theme)

22 views
Skip to first unread message

Joseph Flowers

unread,
Jul 1, 2015, 5:47:08 PM7/1/15
to press...@googlegroups.com
We are hosting our own instance of Pressbooks.  One of the things that we've been thinking about is how to best export the content for use on the web by someone who doesn't have a WordPress install.

I understand the the XHTML export gets all the content, but it would be nice if there was a way to export the epub into essentially a zip of static html/javascript/css files that operate the same way as the WordPress hosted one works.

Given that PB is open source, we are researching the feasibility of adding another export into includes/modules/export.  Main reason I'm posting here is to ask:

1) Has anyone previously attempted this that can provide any words of wisdom?
2) Is this on the product roadmap?  Assume it's not as the demand may not be there, but figured worth asking

Thanks!

Hugh McGuire

unread,
Jul 2, 2015, 9:22:50 AM7/2/15
to Joseph Flowers, press...@googlegroups.com
 

Given that PB is open source, we are researching the feasibility of adding another export into includes/modules/export.  Main reason I'm posting here is to ask:

1) Has anyone previously attempted this that can provide any words of wisdom?
2) Is this on the product roadmap?  Assume it's not as the demand may not be there, but figured worth asking

It's not on the product roadmap...
It sounds like a useful thing though.

bdolor

unread,
Jul 2, 2015, 11:26:23 AM7/2/15
to press...@googlegroups.com

1) Has anyone previously attempted this that can provide any words of wisdom?

The epub export routine is a good place to start if the end game is to produce a zip file of static content — an epub is just that. You would need to modify the file/directory structure but you're already 80% of the way there.

Hugh McGuire

unread,
Jul 2, 2015, 11:35:04 AM7/2/15
to bdolor, press...@googlegroups.com
in fact, if you did it right you might prove to the universe what an unnecessarily complex format EPUB is.

you might also look at HPUB ... we used to have an HPUB export, but since no one uses it, and it was costing us dev time to maintain, we killed it... HPUB, if I am not mistaken, might be even closer to what you want than EPUB.

 
 

On Thu, Jul 2, 2015 at 11:26 AM, bdolor <br...@bradpayne.ca> wrote:

1) Has anyone previously attempted this that can provide any words of wisdom?

The epub export routine is a good place to start if the end game is to produce a zip file of static content — an epub is just that. You would need to modify the file/directory structure but you're already 80% of the way there.

--
You received this message because you are subscribed to the Google Groups "Pressbooks" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pressbooks+...@googlegroups.com.
Visit this group at http://groups.google.com/group/pressbooks.



--
---------------------------------------------------------------
hughmcguire.net | twitter.com/hughmcguire 
skype. h.mcguire | tel. +1.514.464.2047
---------------------------------------------------------------

Joseph Flowers

unread,
Jul 2, 2015, 12:37:37 PM7/2/15
to press...@googlegroups.com, br...@bradpayne.ca
Thanks Hugh & Brad - makes sense that ePub (or hPub) would be good place to start.  Will begin from there.
Reply all
Reply to author
Forward
0 new messages