Skip to content

Commit

Permalink
deploy: 3f7c59e
Browse files Browse the repository at this point in the history
  • Loading branch information
dylansdaniels committed Dec 13, 2024
1 parent 66059e0 commit edbe5dc
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 21 deletions.
2 changes: 1 addition & 1 deletion build.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# %%
import os
import re
# import re
import pypandoc
from create_page_index import update_page_index
from create_navbar import generate_navbar_html
Expand Down
8 changes: 4 additions & 4 deletions content/01_under_the_hood/cortical_column_structure.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,22 @@
Human Neocortical Neurosolver
</p>
<br>
<a href="content/00_preface.html">Preface</a>
<a href="content/preface.html">Preface</a>
<div class="sidebar-list">
<a id="sidebar-header" onclick="toggleSubmenu(event)">
1. Under the Hood
</a>
<div class="submenu">
<a href="content/01_under_the_hood/01_cortical_column_structure.html">1.1 Cortical Column Structure</a>
<a href="content/01_under_the_hood/02_primary_electric_currents.html">1.2 Calculation of Primary Electric Currents</a>
<a href="content/01_under_the_hood/cortical_column_structure.html">1.1 Cortical Column Structure</a>
<a href="content/01_under_the_hood/primary_electric_currents.html">1.2 Calculation of Primary Electric Currents</a>
</div>
</div>
<div class="sidebar-list">
<a id="sidebar-header" onclick="toggleSubmenu(event)">
2 Simulating ERPs
</a>
<div class="submenu">
<a href="content/02_simulating_erps/01_overview_of_erps.html">2.1 Review of ERPs</a>
<a href="content/02_simulating_erps/overview_of_erps.html">2.1 Review of ERPs</a>
</div>
</div>
</div>
Expand Down
8 changes: 4 additions & 4 deletions content/01_under_the_hood/primary_electric_currents.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,22 @@
Human Neocortical Neurosolver
</p>
<br>
<a href="content/00_preface.html">Preface</a>
<a href="content/preface.html">Preface</a>
<div class="sidebar-list">
<a id="sidebar-header" onclick="toggleSubmenu(event)">
1. Under the Hood
</a>
<div class="submenu">
<a href="content/01_under_the_hood/01_cortical_column_structure.html">1.1 Cortical Column Structure</a>
<a href="content/01_under_the_hood/02_primary_electric_currents.html">1.2 Calculation of Primary Electric Currents</a>
<a href="content/01_under_the_hood/cortical_column_structure.html">1.1 Cortical Column Structure</a>
<a href="content/01_under_the_hood/primary_electric_currents.html">1.2 Calculation of Primary Electric Currents</a>
</div>
</div>
<div class="sidebar-list">
<a id="sidebar-header" onclick="toggleSubmenu(event)">
2 Simulating ERPs
</a>
<div class="submenu">
<a href="content/02_simulating_erps/01_overview_of_erps.html">2.1 Review of ERPs</a>
<a href="content/02_simulating_erps/overview_of_erps.html">2.1 Review of ERPs</a>
</div>
</div>
</div>
Expand Down
8 changes: 4 additions & 4 deletions content/02_simulating_erps/overview_of_erps.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,22 @@
Human Neocortical Neurosolver
</p>
<br>
<a href="content/00_preface.html">Preface</a>
<a href="content/preface.html">Preface</a>
<div class="sidebar-list">
<a id="sidebar-header" onclick="toggleSubmenu(event)">
1. Under the Hood
</a>
<div class="submenu">
<a href="content/01_under_the_hood/01_cortical_column_structure.html">1.1 Cortical Column Structure</a>
<a href="content/01_under_the_hood/02_primary_electric_currents.html">1.2 Calculation of Primary Electric Currents</a>
<a href="content/01_under_the_hood/cortical_column_structure.html">1.1 Cortical Column Structure</a>
<a href="content/01_under_the_hood/primary_electric_currents.html">1.2 Calculation of Primary Electric Currents</a>
</div>
</div>
<div class="sidebar-list">
<a id="sidebar-header" onclick="toggleSubmenu(event)">
2 Simulating ERPs
</a>
<div class="submenu">
<a href="content/02_simulating_erps/01_overview_of_erps.html">2.1 Review of ERPs</a>
<a href="content/02_simulating_erps/overview_of_erps.html">2.1 Review of ERPs</a>
</div>
</div>
</div>
Expand Down
8 changes: 4 additions & 4 deletions content/preface.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,22 @@
Human Neocortical Neurosolver
</p>
<br>
<a href="content/00_preface.html">Preface</a>
<a href="content/preface.html">Preface</a>
<div class="sidebar-list">
<a id="sidebar-header" onclick="toggleSubmenu(event)">
1. Under the Hood
</a>
<div class="submenu">
<a href="content/01_under_the_hood/01_cortical_column_structure.html">1.1 Cortical Column Structure</a>
<a href="content/01_under_the_hood/02_primary_electric_currents.html">1.2 Calculation of Primary Electric Currents</a>
<a href="content/01_under_the_hood/cortical_column_structure.html">1.1 Cortical Column Structure</a>
<a href="content/01_under_the_hood/primary_electric_currents.html">1.2 Calculation of Primary Electric Currents</a>
</div>
</div>
<div class="sidebar-list">
<a id="sidebar-header" onclick="toggleSubmenu(event)">
2 Simulating ERPs
</a>
<div class="submenu">
<a href="content/02_simulating_erps/01_overview_of_erps.html">2.1 Review of ERPs</a>
<a href="content/02_simulating_erps/overview_of_erps.html">2.1 Review of ERPs</a>
</div>
</div>
</div>
Expand Down
11 changes: 7 additions & 4 deletions create_navbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,14 @@ def get_relative_paths(path=None):
md_pages.update(get_relative_paths(item_path))
else:
if not item == "README.md" and item.endswith(".md"):
location = item_path.split(os.getcwd())[1]
location = 'content' + location.split('content')[1]
location = location.split('.md')[0] + '.html'
md_pages[item] = location
# get the relative path for the web content only
location = item_path.split(os.getcwd()+os.sep)[1]
location = location.split(item)[0]

page = item.split("_", 1)[1]
page = page.split(".md")[0] + ".html"

md_pages[item] = location + page
return md_pages

def create_page_link(file, label, page_paths, indent):
Expand Down

0 comments on commit edbe5dc

Please sign in to comment.