title | date | weight |
---|---|---|
Contributing to the Website |
2020-02-19 22:03:26 +0100 |
30 |
The Submariner documentation website is based on Hugo, Grav, the Hugo Learn theme, and is written in Markdown format.
You can always click the Edit this page link at the top right of each page, but if you want to test your changes locally before submitting you can:
-
Fork the
submariner-io/submariner-website
project on GitHub. -
Check out your copy locally:
git clone ssh://git@github.com/<your-user>/submariner-website.git cd submariner-website make server
-
An instance of the website is now running locally on your machine and is accessible at http://localhost:1313.
{{% notice note %}} By default, the server can only be accessed from the same machine it's run on. Running
make server BIND=0.0.0.0 PORT=8080
will allow remote access via any IP address on the machine (remote or local) on port 8080. SettingBIND
to a specific IP address restricts access to that address alone. {{% /notice %}} -
Edit files in src. The browser should automatically reload so you can view your changes.
-
Eventually commit, push, and pull-request your changes. You can find a good guide about the GitHub workflow here.
-
Your changes will be verified by CI. Check the job results for details of any errors.