... | ... | @@ -31,10 +31,17 @@ The logo lives in `static/logo.png`. Some colors are defined in |
|
|
## Uploading site to the static mirror system
|
|
|
|
|
|
The `status.torproject.org` site currently lives in the [static mirror
|
|
|
system](howto/static-component). Ideally, it would be built through automated, continuous
|
|
|
integration (and maybe GitLab pages), but that is not currently the
|
|
|
case. So, first, the website needs to be built locally, with this
|
|
|
simple command:
|
|
|
system](howto/static-component). Ideally, it would be built through
|
|
|
automated, continuous integration (and maybe GitLab pages), but that
|
|
|
is not currently the case.
|
|
|
|
|
|
You can preview changes by starting a local server:
|
|
|
|
|
|
hugo serve --baseUrl=http://localhost/
|
|
|
firefox https://localhost:1313/
|
|
|
|
|
|
To publish the website, it needs to be built locally, with this simple
|
|
|
command:
|
|
|
|
|
|
hugo
|
|
|
|
... | ... | @@ -116,12 +123,16 @@ The basic setup for cstate is: |
|
|
sudo apt install hugo
|
|
|
git clone --recursive -b master https://gitlab.torproject.org/tpo/tpa/status-site.git
|
|
|
cd status-site
|
|
|
hugo
|
|
|
hugo serve --baseUrl=http://localhost/
|
|
|
|
|
|
This will build a copy of the status site in `public/`. To view it in
|
|
|
your web browser, for example:
|
|
|
This start a local web server. To view it in your web browser, for
|
|
|
example:
|
|
|
|
|
|
firefox public/index.html
|
|
|
firefox https://localhost:1313/
|
|
|
|
|
|
The content can be built in the `public/` directory with, simply:
|
|
|
|
|
|
hugo
|
|
|
|
|
|
Most configuration happens in `config.yaml`.
|
|
|
|
... | ... | |