Skip to content

Commit

Permalink
docs: change docs build
Browse files Browse the repository at this point in the history
  • Loading branch information
Topener committed Nov 8, 2023
1 parent ac5aa44 commit 14bce7b
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/app-runtime/${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 @@ -49,7 +49,7 @@
"test": "yarn test:services && yarn test:runtime",
"format": "d2-style apply js --all --no-stage && d2-style apply text --all --no-stage",
"start": "yarn build && cd examples/query-playground && yarn start",
"docs:build": "d2-utils-docsite build ./docs -o ./dist && yarn build:playground",
"docs:build": "mkdir -p dist && cp docs/index.html dist/ && yarn build:playground",
"docs:serve": "d2-utils-docsite serve ./docs -o ./dist",
"lint": "d2-style check js && d2-style check text"
},
Expand Down

0 comments on commit 14bce7b

Please sign in to comment.