LeelaChessZero / lczero.org

A website (will be lczero.org)
37 stars 291 forks source link

Use GitHub Actions & Pages for deployment #85

Open LeoDog896 opened 1 year ago

LeoDog896 commented 1 year ago

Hello!

I would love to contribute to the webpage, but as it stands now, I don't know how to build the webpage locally to contribute to it. With that in mind, I have two questions:

a.) What tool is being used to build the webpage? b.) Is it possible to run that tool and build an SSG webpage that can run on github pages (avoiding the human wait time between commit and deployment?)

mooskagh commented 1 year ago

Hi @LeoDog896,

Thank you for expressing your interest in contributing to the webpage! We had plans to simplify the preview of the website changes (using GitHub hooks) but it never happened.

We use Hugo for generation of the website.
What should work is installing Hugo, and then running hugo server in the repository root. It will start a local web server with the site. Alternatively, just running hugo in the repository root will generate public/ directory, which can be opened in browser.

rti2 commented 1 month ago

What about the Cloudflare pages ? Its free