Skip to content

Commit d03e830

Browse files
committed
Change URLs to be hosted at the root of a webserver.
1 parent 5e86a69 commit d03e830

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

_templates/doc-nav.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
<ul class="list-group">
99
{%- for doc_level1 in doc_structure %}
1010
<li class="list-group-item border-0 group-header pb-2">
11-
<a href="/software/microscope/doc/{{ doc_level1[0] }}"
11+
<a href="/doc/{{ doc_level1[0] }}"
1212
class="text-dark">
1313
<img class="img-fluid align-middle" alt="{{ doc_level1[1] }} icon"
1414
src="{{ pathto(doc_level1[2], 1) }}">
1515
<strong>{{ doc_level1[1] }}</strong>
1616
</a>
1717
<ul class="list-group">
1818
{%- for doc_level2 in doc_level1[3] %}
19-
<a href="/software/microscope/doc/{{ doc_level2[0] }}"
19+
<a href="/doc/{{ doc_level2[0] }}"
2020
class="text-muted">
2121
<li class="list-group-item border-0 p-0 py-1 pl-3">{{ doc_level2[1] }}</li>
2222
</a>

_themes/microscope/layout.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
<span class="navbar-toggler-icon"></span>
5858
</button>
5959
<!-- TODO: make this link relative -->
60-
<a class="navbar-brand" href="/software/microscope/">
60+
<a class="navbar-brand" href="/">
6161
<div class="container">
6262
<div class="row">
6363
<!-- TODO: create an icon -->
@@ -75,13 +75,13 @@
7575
<div class="collapse navbar-collapse" id="navbar-menu">
7676
<div class="navbar-nav ml-auto">
7777
<a class="nav-link {% if haslanding %}text-white{% endif %}"
78-
href="/software/microscope/doc">Documentation</a>
78+
href="/doc">Documentation</a>
7979
<a class="nav-link {% if haslanding %}text-white{% endif %}"
8080
href="https://forum.image.sc/">Get Help</a>
8181
<a class="nav-link {% if haslanding %}text-white{% endif %}"
8282
href="https://github.com/python-microscope/microscope">Code</a>
8383
<a class="nav-link {% if haslanding %}text-white{% endif %}"
84-
href="/software/microscope/about.html">About Us</a>
84+
href="/about.html">About Us</a>
8585
</div>
8686
</div>
8787
</nav>

conf.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -167,15 +167,15 @@
167167
],
168168
"footer_links": {
169169
"PROJECT": [
170-
("/software/microscope/about.html", "About Us"),
171-
("/software/microscope/cite.html", "Cite Us"),
170+
("/about.html", "About Us"),
171+
("/cite.html", "Cite Us"),
172172
("https://github.com/python-microscope/microscope", "Code"),
173-
("/software/microscope/doc/news.html", "NEWS"),
173+
("/doc/news.html", "NEWS"),
174174
],
175175
"SUPPORT": [
176-
("/software/microscope/doc/architecture/supported-devices.html", "Supported Devices"),
177-
("/software/microscope/doc", "Documentation"),
178-
("/software/microscope/doc/install.html", "Install"),
176+
("/doc/architecture/supported-devices.html", "Supported Devices"),
177+
("/doc", "Documentation"),
178+
("/doc/install.html", "Install"),
179179
(
180180
# Link to "issues" and not "issues/new" because if the
181181
# user is not logged in on github or does not have a
@@ -191,7 +191,7 @@
191191
"https://webchat.freenode.net/?channels=#python-microscope",
192192
"#python-microscope",
193193
),
194-
("/software/microscope/related-projects.html", "Related Projects"),
194+
("/related-projects.html", "Related Projects"),
195195
],
196196
},
197197
}

0 commit comments

Comments
 (0)