Skip to content

Commit

Permalink
docs: redirect to developer portal
Browse files Browse the repository at this point in the history
  • Loading branch information
Topener committed Nov 7, 2023
1 parent a21521e commit 9c57071
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Redirecting to Developer Portal</title>
</head>
<body>
<p>Redirecting to <a id="url" href="#">Developer Portal</a>...</p>

<script>
const hash = window.location.hash.substring(2)

const newUrl = `https://developers.dhis2.org/docs/cli/${hash}`
document.getElementById('url').href = newUrl
window.location.href = newUrl
</script>
</body>
</html>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"tape-await": "^0.1.2"
},
"scripts": {
"build:docs": "d2-utils-docsite build ./docs -o ./dist",
"docs:build": "mkdir -p dist && cp docs/index.html dist/",
"start": "d2-utils-docsite serve ./docs -o ./dist",
"test": "tape packages/**/tests/*.js"
},
Expand Down

0 comments on commit 9c57071

Please sign in to comment.