Skip to content

Commit

Permalink
renamed home.ipynb -> index.ipynb, adapting to jupman 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLeoni committed Sep 24, 2018
1 parent 19ea85c commit e6c5f9f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def run_sphinx(manuals, formats):

print("Fixing links to PDFs and EPUBs ... ") # Because of this crap: http://stackoverflow.com/a/23855541

with open(relout + '/home.html', "r+") as f:
with open(relout + '/index.html', "r+") as f:
data = f.read()


Expand Down
7 changes: 1 addition & 6 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ def zip_folders(folder, prefix='', suffix=''):

# -- The settings below this line are not specific to nbsphinx ------------

master_doc = 'index'
master_doc = 'toc-page'



Expand Down Expand Up @@ -906,11 +906,6 @@ def setup(app):
'overlay/_static/project-template',
patterns=[(r"^(jm-templates)/project-(.*)", "/\\2")])

# check home.ipynb
from pathlib import Path
ref = "https://github.com/DavidLeoni/jupman/issues/11"
if not Path('home.ipynb').exists(): # the file pointed to
raise Exception("MISSING home.ipynb ! For more info about Jupman layout, see %s" % ref)


exclude_patterns.extend(MANUALS[manual]['exclude_patterns'])
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions index.rst → toc-page.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

.. meta::
:http-equiv=Refresh: 0; url=home.html

.. meta::
:http-equiv=Refresh: 0; url=index.html


.. toctree::
Expand Down
6 changes: 3 additions & 3 deletions toc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
.. toctree::
:maxdepth: 2
:glob:
:hidden:

Home <home.ipynb>
Home <index.ipynb>

slides.ipynb
commandments.ipynb
Expand All @@ -14,5 +13,6 @@
exercises/sorting/sorting.ipynb

past-exams.ipynb
.

Index
--------

0 comments on commit e6c5f9f

Please sign in to comment.