Building a single page instead of a book
Sometimes you'd like to build a single page of content rather than anentire book. For example, if you'd like to generate a web-friendly HTMLpage from a Jupyter Notebook for a report or publication.
You can generate a standalone HTML file for a single page of Jupyter Bookcontent by running the following command:
jupyter-book page path/to/mybook.ipynb
This will do the following:
- Convert your page to HTML
- Add the Jupyter Book CSS and Javascript to the header ofthat HTML.
- Write the result to disk The page's HTML will be missing a few Jupyter Book features, such asa Table of Contents, however the layout and style will largely be thesame. Here is an example of what this looks like.
This page was created by The Jupyter Book Community
当前内容版权归 Jupyter Book 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 Jupyter Book .