Skip to content

Commit a0bcaee

Browse files
authored
Merge pull request #2610 from farid-zare/gh-pages
Remove PDF and m files link from the website
2 parents abe5e1a + 7ef77cb commit a0bcaee

2 files changed

Lines changed: 4 additions & 21 deletions

File tree

stable/extract_info.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,12 @@ def get_file_info(file_path):
2323

2424
template_content = template_content.replace('IFRAMETUTORIAL.html', relative_path)
2525
template_content = template_content.replace('((TutorialName))', base_name)
26-
template_content = template_content.replace(
27-
'((TutorialPDFpath))',
28-
f'https://github.com/opencobra/COBRA.tutorials/tree/master/{relative_path.replace(".html", ".pdf")}'
29-
)
26+
3027
template_content = template_content.replace(
3128
'((TutorialMLXpath))',
3229
f'https://github.com/opencobra/COBRA.tutorials/tree/master/{relative_path.replace(".html", ".mlx")}'
3330
)
34-
template_content = template_content.replace(
35-
'((TutorialMATpath))',
36-
f'https://github.com/opencobra/COBRA.tutorials/tree/master/{relative_path.replace(".html", ".m")}'
37-
)
31+
3832
template_content = template_content.replace(
3933
'((TutorialGITHUBpath))',
4034
f'https://github.com/opencobra/COBRA.tutorials/tree/master/{"/".join(file_path.split("/")[2:-1])}'

stable/tutorials/HOLDER_TEMPLATE.html

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -199,12 +199,7 @@ <h1>The COBRA Toolbox</h1>
199199
<span id="((TutorialName))"></span><h1>tutorialNoName<a class="headerlink" href="#tutorialnoname" title="Permalink to this headline"></a></h1>
200200
<div class="wrapper">
201201
<ul class="metro">
202-
<li class="small-tile-text color_class5 scale-10">
203-
<a class="tile" href="((TutorialPDFpath))" style="width: 90px; height: 90px;">
204-
<img alt="PDF file" height="90px" src="../_static/img/icon5.png"/>
205-
</a>
206-
<div>Download PDF</div>
207-
</li>
202+
208203

209204
<li class="small-tile-text color_class6 scale-10">
210205
<a class="tile" href="((TutorialMLXpath))" style="width: 90px; height: 90px;">
@@ -213,12 +208,6 @@ <h1>The COBRA Toolbox</h1>
213208
<div>Download live Script</div>
214209
</li>
215210

216-
<li class="small-tile-text color_class7 scale-10">
217-
<a class="tile" href="((TutorialMATpath))" style="width: 90px; height: 90px;">
218-
<img alt="m file" height="90px" src="../_static/img/icon7.png"/>
219-
</a>
220-
<div>Download m file</div>
221-
</li>
222211

223212
<li class="small-tile-text color_class8 scale-10">
224213
<a class="tile" href="((TutorialGITHUBpath))" style="width: 90px; height: 90px;">
@@ -358,4 +347,4 @@ <h1>The COBRA Toolbox</h1>
358347

359348

360349

361-
</body></html>
350+
</body></html>

0 commit comments

Comments
 (0)