Skip to content

Commit 7fc7df6

Browse files
committed
v3 experimentation
1 parent 77c6ba3 commit 7fc7df6

File tree

2 files changed

+42
-30
lines changed

2 files changed

+42
-30
lines changed

.github/workflows/ci.yml

Lines changed: 31 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,31 @@
1-
name: ci
2-
on:
3-
push:
4-
branches:
5-
- master
6-
- main
7-
permissions:
8-
contents: write
9-
jobs:
10-
deploy:
11-
runs-on: ubuntu-latest
12-
steps:
13-
- uses: actions/checkout@v3
14-
- uses: actions/setup-python@v4
15-
with:
16-
python-version: 3.x
17-
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
18-
- uses: actions/cache@v3
19-
with:
20-
key: mkdocs-material-${{ env.cache_id }}
21-
path: .cache
22-
restore-keys: |
23-
mkdocs-material-
24-
- run: pip install mkdocs-material
25-
- run: pip install mkdocs-material-extensions
26-
- run: pip install pillow cairosvg
27-
- run: pip install mkdocs-roamlinks-plugin
28-
- run: pip install mkdocs-glightbox
29-
- run: pip install mkdocs-exclude
30-
- run: mkdocs gh-deploy --force
1+
#name: ci
2+
#on:
3+
# push:
4+
# branches:
5+
# - master
6+
# - main
7+
#permissions:
8+
# contents: write
9+
#jobs:
10+
# deploy:
11+
# runs-on: ubuntu-latest
12+
# steps:
13+
# - uses: actions/checkout@v3
14+
# - uses: actions/setup-python@v4
15+
# with:
16+
# python-version: 3.x
17+
# - run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
18+
# - uses: actions/cache@v3
19+
# with:
20+
# key: mkdocs-material-${{ env.cache_id }}
21+
# path: .cache
22+
# restore-keys: |
23+
# mkdocs-material-
24+
# - run: pip install mkdocs-material
25+
# - run: pip install mkdocs-material-extensions
26+
# - run: pip install pillow cairosvg
27+
# - run: pip install mkdocs-roamlinks-plugin
28+
# - run: pip install mkdocs-glightbox
29+
# - run: pip install mkdocs-exclude
30+
# - run: mkdocs gh-deploy --force
31+
#

.overrides/main.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,17 @@
2020

2121
{% block libs %}
2222
{{ super() }}
23+
24+
<script type="text/javascript">
25+
let url = window.location.href;
26+
var newUrl = url.replace(/.*memex\//, "https://djon.es/memex/");
27+
// create meta tag
28+
let meta = document.createElement('meta');
29+
meta.httpEquiv = "refresh";
30+
meta.content = "0;url=" + newUrl;
31+
document.head.appendChild(meta);
32+
</script>
33+
2334
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
2435
<script>MathJax = {tex:
2536
{

0 commit comments

Comments
 (0)