Answers.Body: <p>SIGIL is probably not your best tool for creating static HTML files although it's not impossible. </p>
  
  <p>The main goal of sigil is to produce an epub file, and to read an epub in the browser, you'd need to install a special extension (Readium). </p>
  
  <p>If you get down to it, epubs solve a navigation problem -- of flipping between chapters and of creating a TOC. </p>
  
  <p>On the other hand, an epub is just a zip of html files and some extra navigation stuff.  I build my epub files in another way (Docbook XML --> static HTML --> EPUB) -- but when testing/editing, I view each chapter and the table of contents web page in a browser. </p>
  
  <p>I don't know if Sigil has a button to turn your files into an epub file, but my guess is that at some point, the chapters and TOC exist as  HTML files. Even if they don't, you could simply rename the .epub to .zip and then unzip. </p>
  
  <p>The file tree for epubs are fairly standard; here's what's generally inside. </p>
  
  <ul>
  <li><p>OEBPS</p>
  
  <ul>
  <li>1.html</li>
  <li>toc.html</li>
  <li>2.html</li>
  <li>my.css</li>
  <li>images/</li>
  </ul></li>
  <li><p>META-INF (navigation stuff and metadata inside) </p></li>
  </ul>
  
  <p>You could just ftp the oepbs directory to your website and you'd have all the static pages there (you might need to rename the toc.html to index.html so that's the default view. An index file in ebook usually doesn't refer to the TOC but the subject index at the end of the book. </p>
  
  <p>So SIGIL could probably get the job done (and is especially recommended if you are using internal links between web pages), but a simple html editor would work just as well. (Heck, even MS Word to HTML could do the job, although you'd have to live with ugly code). </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-15T21:51:39.963Z
Answers.Text: Thanks for the tips. I think I will give that a try. Indeed I have links between pages and images, and that is one of the reasons Sigil looks interesting. A truly simple HTML editor lacks the concept of a tree of related files.
Answers.UserDisplayName: Alan Snyder
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-17T02:02:48.803Z
Answers.Text: I have tried this approach and it works. It is easy to write a script to extract the files and remove the ones I do not need. The only issue is that Sigil apparently does not keep track of which files have changed, so that each time the ebook is saved every file gets a new timestamp in the ZIP representation. The result is that FTP mirroring is not useful.
Answers.UserDisplayName: Alan Snyder
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-14T17:39:25.240Z
Answers.LastActivityDate: 2016-06-15T22:35:26.487Z
Answers.LastEditDate: 2016-06-15T22:35:26.487Z
Answers.UserDisplayName: idiotprogrammer
Body: <p>I would like to create an online web document consisting of HTML files, image files, and PDF files. I want the document to be directly viewable in browsers with no plugin or special server support.</p>
  
  <p>I am wondering whether epub software, such as Sigil, could be a good way to create such a document. Sigil has good editing tools and can manage a collection of files, but I would need a way to export the files in a form suitable for use on a web server. I do not want to use anything complicated like a content management system.</p>
  
  <p>Is this a feasible approach, and how can the epub file be converted to a file tree for the web server?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-06-14T20:17:34.787Z
Comments.Text: How do you envision a document to contain a PDF file? An Epub file has not provision for PDF content. Don't forget that not all browsers support viewing PDF data in the browser.
Comments.UserDisplayName: Anthon
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-06-15T21:56:07.440Z
Comments.Text: I want a link to the PDF file to make the file available. I do not care whether the PDF is displayed inline or downloaded by the browser. By the way, Sigil allows embedding any kind of file, although it does not understand linking to files of types it does not understand, so I must create the link in HTML by hand. Also, iBooks understands links to embedded PDF files and displays them as an overlay. I would not be surprised that this is non-standard behavior, but I was pleasantly surprised that it worked.
Comments.UserDisplayName: Alan Snyder
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-06-28T15:01:20.970Z
Comments.Text: If you want an HTML web page to contain a viewable PDF, you would have to embed a PDF reader in that webpage, and the browser would handle reading the PDF. Or you could just LINK TO the PDF and have the OS handle reading the PDF.
Comments.UserDisplayName: Bulrush
Tags: <epub><conversion><sigil><website>
Title: Can epub software be used to create an online web document?
UserDisplayName: Alan Snyder
ThreadText: # Can epub software be used to create an online web document?
  
  (Asked by: username_0 on 2016-06-14)
  
  I would like to create an online web document consisting of HTML files, image files, and PDF files. I want the document to be directly viewable in browsers with no plugin or special server support.
  
  I am wondering whether epub software, such as Sigil, could be a good way to create such a document. Sigil has good editing tools and can manage a collection of files, but I would need a way to export the files in a form suitable for use on a web server. I do not want to use anything complicated like a content management system.
  
  Is this a feasible approach, and how can the epub file be converted to a file tree for the web server?
  
  **Tags:** epub, conversion, sigil, website
  
  > **Comments:**
  > **username_1**: How do you envision a document to contain a PDF file? An Epub file has not provision for PDF content. Don't forget that not all browsers support viewing PDF data in the browser.  
  > **username_0**: I want a link to the PDF file to make the file available. I do not care whether the PDF is displayed inline or downloaded by the browser. By the way, Sigil allows embedding any kind of file, although it does not understand linking to files of types it does not understand, so I must create the link in HTML by hand. Also, iBooks understands links to embedded PDF files and displays them as an overlay. I would not be surprised that this is non-standard behavior, but I was pleasantly surprised that it worked.  
  > **username_2**: If you want an HTML web page to contain a viewable PDF, you would have to embed a PDF reader in that webpage, and the browser would handle reading the PDF. Or you could just LINK TO the PDF and have the OS handle reading the PDF.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_3 on 2016-06-14. Score: 1 | Accepted answer
  
  SIGIL is probably not your best tool for creating static HTML files although it's not impossible.
  
  The main goal of sigil is to produce an epub file, and to read an epub in the browser, you'd need to install a special extension (Readium).
  
  If you get down to it, epubs solve a navigation problem -- of flipping between chapters and of creating a TOC.
  
  On the other hand, an epub is just a zip of html files and some extra navigation stuff. I build my epub files in another way (Docbook XML --> static HTML --> EPUB) -- but when testing/editing, I view each chapter and the table of contents web page in a browser.
  
  I don't know if Sigil has a button to turn your files into an epub file, but my guess is that at some point, the chapters and TOC exist as HTML files. Even if they don't, you could simply rename the .epub to .zip and then unzip.
  
  The file tree for epubs are fairly standard; here's what's generally inside.
  
  * OEBPS
  
    + 1.html
    + toc.html
    + 2.html
    + my.css
    + images/
  * META-INF (navigation stuff and metadata inside)
  
  You could just ftp the oepbs directory to your website and you'd have all the static pages there (you might need to rename the toc.html to index.html so that's the default view. An index file in ebook usually doesn't refer to the TOC but the subject index at the end of the book.
  
  So SIGIL could probably get the job done (and is especially recommended if you are using internal links between web pages), but a simple html editor would work just as well. (Heck, even MS Word to HTML could do the job, although you'd have to live with ugly code).
  
  > **Comments:**
  > **username_0**: Thanks for the tips. I think I will give that a try. Indeed I have links between pages and images, and that is one of the reasons Sigil looks interesting. A truly simple HTML editor lacks the concept of a tree of related files.  
  > **username_0**: I have tried this approach and it works. It is easy to write a script to extract the files and remove the ones I do not need. The only issue is that Sigil apparently does not keep track of which files have changed, so that each time the ebook is saved every file gets a new timestamp in the ZIP representation. The result is that FTP mirroring is not useful.  
  
  ---
  
  