one.el icon indicating copy to clipboard operation
one.el copied to clipboard

Hosting the generated file as a Github page?

Open shervinsafavi opened this issue 2 years ago • 3 comments

Thanks, Tony for creating this great package. A naive question, would it be possible to host the generated website as a Github page? Or could you elaborate a bit more, how you set up one.tonyaldon.com based on org file?

shervinsafavi avatar Nov 28 '23 11:11 shervinsafavi

Thanks @shervinsafavi for giving a try to one.el.

A naive question, would it be possible to host the generated website as a Github page?

Yes.

The command one-build generates your website under the public subdirectory. So what you have to deploy is that public directory. You can do so with any static website service. I'm using Netlify to publish one.tonyaldon.com, but you can use any other.

After reading Creating a GitHub Pages site, I think that for Github pages, the website (the publishing source) must be either a the top level / of your repository or under the /docs subdirectory. Thus, it seems that you have two options:

  1. After building your website with one-build you make a copy of /public directory named /docs and tell Github that your publishing directory is /docs.
  2. Or, you make a Github repository that only tracks the content of your /public directory generated by one-build and you tell Github that your publishing directory is the top level / of your repository.

I hope this is helpful.

tonyaldon avatar Nov 28 '23 14:11 tonyaldon

Thanks, Tony, I tried (both), but it has some issues (e.g., it doesn't see the style file and links are not correct on the github pages). I'll try to figure it out (and if I could, I'll update the issue and add it to your README). If you also try something, and it works please update us here. Otherwise, please feel free to close the issue.

shervinsafavi avatar Nov 28 '23 16:11 shervinsafavi

I'll try to figure it out ... I'll update the issue

Cool!

No need to close the issue yet.

tonyaldon avatar Nov 29 '23 04:11 tonyaldon