Create many HTML outputs from one .rst input

Matt Williams avatarMatt Williams created an issue

When writing long documents in rst and making extensive use of parts, chapters and sections it would be nice if it were possible to have Sphinx automatically create many HTML output pages from it. For example, an rst page (book.rst) with:

####
This a long book
####

***
Chapter 1
***

The beginning
===

The middle
===

***
Chapter 2
***

More story
===

Could create two HTML pages, one with the contents of "Chapter 1" and the other with the contents of "Chapter 2" and automatically name them something like book1.html and book2.html and create 'next' and 'previous' links for them.

Comments (2)

  1. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.