{"action":"created","issue":{"url":"https://api.github.com/repos/stephenslab/ipynb-website/issues/5","repository_url":"https://api.github.com/repos/stephenslab/ipynb-website","labels_url":"https://api.github.com/repos/stephenslab/ipynb-website/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/stephenslab/ipynb-website/issues/5/comments","events_url":"https://api.github.com/repos/stephenslab/ipynb-website/issues/5/events","html_url":"https://github.com/stephenslab/ipynb-website/issues/5","id":288667878,"number":5,"title":"Password Protection","user":{"login":"aabiddanda","id":2427335,"avatar_url":"https://avatars0.githubusercontent.com/u/2427335?v=4","gravatar_id":"","url":"https://api.github.com/users/aabiddanda","html_url":"https://github.com/aabiddanda","followers_url":"https://api.github.com/users/aabiddanda/followers","following_url":"https://api.github.com/users/aabiddanda/following{/other_user}","gists_url":"https://api.github.com/users/aabiddanda/gists{/gist_id}","starred_url":"https://api.github.com/users/aabiddanda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aabiddanda/subscriptions","organizations_url":"https://api.github.com/users/aabiddanda/orgs","repos_url":"https://api.github.com/users/aabiddanda/repos","events_url":"https://api.github.com/users/aabiddanda/events{/privacy}","received_events_url":"https://api.github.com/users/aabiddanda/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-01-15T17:27:12Z","updated_at":"2018-02-05T00:53:31Z","closed_at":null,"author_association":"NONE","body":"There may be some instances where one may want to have password protection (e.g. a work-in-progress that one would only want to share with a couple of folks). Is there a way to set that up as the end product of this?  For instance one could borrow code from [here](https://github.com/chrisssycollins/protected-github-pages)"},"comment":{"url":"https://api.github.com/repos/stephenslab/ipynb-website/issues/comments/362955456","html_url":"https://github.com/stephenslab/ipynb-website/issues/5#issuecomment-362955456","issue_url":"https://api.github.com/repos/stephenslab/ipynb-website/issues/5","id":362955456,"user":{"login":"gaow","id":917985,"avatar_url":"https://avatars1.githubusercontent.com/u/917985?v=4","gravatar_id":"","url":"https://api.github.com/users/gaow","html_url":"https://github.com/gaow","followers_url":"https://api.github.com/users/gaow/followers","following_url":"https://api.github.com/users/gaow/following{/other_user}","gists_url":"https://api.github.com/users/gaow/gists{/gist_id}","starred_url":"https://api.github.com/users/gaow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaow/subscriptions","organizations_url":"https://api.github.com/users/gaow/orgs","repos_url":"https://api.github.com/users/gaow/repos","events_url":"https://api.github.com/users/gaow/events{/privacy}","received_events_url":"https://api.github.com/users/gaow/received_events","type":"User","site_admin":false},"created_at":"2018-02-05T00:53:31Z","updated_at":"2018-02-05T00:53:31Z","author_association":"MEMBER","body":"Okey just got a chance to play with it ... so far I realized 2 limitations:\r\n\r\n1. password protected page cannot be viewed locally (unless direct link is given) because javascript (at least on google chrome) does nto like `file:` protocol. \r\n2. the protected page will lose all CSS / JS it points to.\r\n\r\nI cannot fix 1 so I added a more informative error message to the javascript when `file:` protocol is seen. For 2, potentially we can use absolute path for all `href` but there are obvious problems that way ... the most obvious solution to me is to make symbolic links to those folders. Will think about it some more."}}
{"actor":{"display_login":"gaow"}}