Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
rewrite ipynb docs
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
- Loading branch information
Showing
2 changed files
with
40 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
1. You should install the ``ipython`` theme using this command | ||
|
||
|
||
.. code-block:: console | ||
$ nikola install_theme ipython | ||
(or ``ipython-xkcd``, if you want xkcd styling) | ||
|
||
More info here about themes: | ||
http://getnikola.com/handbook.html#getting-more-themes | ||
|
||
If you want to use your own theme, copy the ``ipython.min.css`` and | ||
``nikola_ipython.css`` files from ``ipython`` to your theme (and include them | ||
in ``bundles`` if necessary) | ||
|
||
2. Then, just add to ``conf.py``: | ||
|
||
|
||
.. code-block:: python | ||
POSTS = ( | ||
("posts/*.ipynb", "posts", "post.tmpl", True), | ||
) | ||
PAGES = ( | ||
("stories/*.ipynb", "stories", "story.tmpl", False), | ||
) | ||
and set ``THEME`` to ``'ipython'`` or ``'ipython-xkcd'``, depending on your | ||
choice. | ||
|
||
To create a new post or page, use: | ||
|
||
.. code-block:: console | ||
$ nikola new_post -f ipynb | ||
$ nikola new_page -f ipynb | ||
**NOTE**: the ``-1`` and ``-2`` options are ignored; two-file posts are always | ||
created for ipynb posts. |
This file was deleted.
Oops, something went wrong.