Skip to content

Latest commit

 

History

History
77 lines (60 loc) · 2.38 KB

index.md

File metadata and controls

77 lines (60 loc) · 2.38 KB

Helix Pages

Welcome to Helix Pages!

To use it, change the current URL to https://<repo>--<owner>.project-helix.page. <owner> and <repo> must refer to a valid Git repository.

Example: https://helix-home--adobe.project-helix.page/README.html


Try it...

Simply paste a GitHub URL to a publicly visible Markdown file (.md) here...

<script> function splitURL() { const giturl = document.getElementById('giturl').value; const resegs = /(?=0) return('Repository name cannot contain a \'.\''); if (c.user.indexOf('.')>=0) return('User name cannot contain a \'.\''); if (c.branch.indexOf('.')>=0) return('Branch cannot contain a \'.\''); } function takeMeThere() { if (checkURL()) { return; } const c = splitURL(); const separator = '--'; const pathstub = c.path.substr(0, c.path.length - 3); const branchprefix = (c.branch === 'master' ? '' : c.branch + separator); const url = `https://${branchprefix}${c.repo}${separator}${c.user}.hlx.page${pathstub}.html`; window.location = url; } </script>

Take Me There

For developers

For authors