Skip to content

Commit c6c3051

Browse files
Update mdbook docs domains (#484)
1 parent 383149e commit c6c3051

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/docs.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
- '*.*.*'
77
branches:
88
- master
9+
# FIXME: temporary
10+
- aux/docs-root
911
paths:
1012
- 'docs/**'
1113
- 'scripts/**'
@@ -50,7 +52,7 @@ jobs:
5052

5153
- name: Build docs (docs)
5254
if: startsWith(github.ref, 'refs/tags') && !contains(github.ref, '-rc')
53-
run: MDBOOK_ROOT=https://dipdup.net/docs make docs
55+
run: MDBOOK_ROOT=https://docs.dipdup.io make docs
5456

5557
- name: Deploy to GH Pages (docs)
5658
if: startsWith(github.ref, 'refs/tags') && !contains(github.ref, '-rc')
@@ -62,7 +64,7 @@ jobs:
6264

6365
- name: Build docs (docs-next)
6466
if: startsWith(github.ref, 'refs/heads') || contains(github.ref, '-rc')
65-
run: MDBOOK_ROOT=https://dipdup.net/docs-next make docs
67+
run: MDBOOK_ROOT=https://docs-next.dipdup.io make docs
6668

6769
- name: Deploy to GH Pages (docs-next)
6870
if: startsWith(github.ref, 'refs/heads') || contains(github.ref, '-rc')

docs/theme/index.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@
123123
<a class="icon-button" id="stable" href="#">stable</a>
124124
<a class="icon-button" id="latest" href="#">latest</a>
125125
<script type="text/javascript">
126-
document.getElementById('stable').setAttribute('href', window.location.href.replace('/docs-next/', '/docs/'));
127-
document.getElementById('latest').setAttribute('href', window.location.href.replace('/docs/', '/docs-next/'));
126+
document.getElementById('stable').setAttribute('href', window.location.href.replace('docs-next.', 'docs.'));
127+
document.getElementById('latest').setAttribute('href', window.location.href.replace('docs.', 'docs-next.'));
128128
</script>
129129

130130
</div>

0 commit comments

Comments
 (0)