This is the code for the decred.org website. It is built using the static site generator Hugo and utilizes Docker for testing and deployment.
To start a development web server at http://localhost:1313:
Run the HTML validator to ensure all of the generated files are syntactically correct:
Deployment with Docker
# Build the decred/dcrweb image. ./bin/build.sh # Start the container. docker run -d -p <local port>:80 decred/dcrweb:latest
The most frequently updated content sections live in the below locations:
The other sections live under
These pages are implemented as Hugo templates
The message catalogs can be found in
When making changes in the templates, you'll want to keep the strings in the
catalogs, please follow the naming scheme in the existing templates.
The below commands must be run when either the content changes or there are updates in the translations in Transifex. You'll first need to install the Transifex client.
Importing new translations and content updates
When translations are added/updated in Transifex, pull the updates:
When you run this for the first time, you'll be asked to log in with your Transifex username/password.
To push the changes to staging:
git commit -m "Translation update" git push origin
Updating the message catalog
When the master content changes in the HTML files, you'll need to regenerate the message catalog and push it to Transifex so that translators can update the localized message catalogs:
dcrweb is licensed under the liberal ISC License.