A repository to hold Replicante website.
Our aim is to build a thriving, healthy and diverse community.
To help us get there we decided to adopt the Contributor Covenant Code of Conduct
for all our projects.
Any issue should be reported to stefano-pogliani
by emailing conduct@replicante.io.
Unfortunately, as the community lucks members, we are unable to provide a second contact to
report incidents to.
We would still encourage people to report issues, even anonymously.
In addition to the Code Of Conduct below the following documents are relevant:
- The Reporting Guideline, especially if you wish to report an incident.
- The Enforcement Guideline
The hugo new
command should be used to add content:
- Skipping the
content/
prefix. - But including the
.md
file extention. - So
hugo new section/content.md
.
For some sections there are dedicated archetypes that should be used (with --kind NAME
):
- For
docs/agent/<version>/info/
useagent-info
. - For
docs/agent/<version>/official/
useagent-official
. - For
docs/agent/<version>/nodeactref/
useagent-nodeactref
. - For
docs/core/<version>/admin/
usecore-admin
. - For
docs/core/<version>/apiref/
usecore-apiref
. - For
docs/core/<version>/basics/
usecore-basics
. - For
docs/core/<version>/cli/
usecore-cli
. - For
docs/core/<version>/features/
usecore-feature
. - For
docs/core/<version>/orcactref/
usecore-orcactref
. - For
docs/core/<version>/scale/
usecore-scale
. - For
docs/core/<version>/security/
usecore-sec
. - For
docs/core/<version>/upgrade/
usecore-upgrade
. - For
docs/devnotes/<version>/dreams/
usedevnotes-dream
. - For
docs/devnotes/<version>/notes/
usedevnotes-note
. - For
docs/devnotes/<version>/opts/
usedevnotes-optimise
. - For
docs/spec/<version>/agent/
usespec-agent
. - For
docs/spec/<version>/platform/
usespec-platform
.
The documents under the docs/
sections are versioned.
Versions are handled as hugo sections:
- Each set of documentation is its own section under
docs/
(for example thedocs/devnotes/
section). - Each version is then a sub-section for the same set of documents.
- The
_index.md
file is only used for:- The sub-section title, used to set the version "name".
- The weight of sub-section, used to order versions explicitly.
- The current stable version for a section is set in
data/docs.yaml
.
To "cut" a new version:
- Make sure the
main
version is up to date and ready to be cut. - Copy the full tree to the new version (
cp -r main/ vX.Y.Z/
). - Update the title for the new version and all the weights (hint: use high weights for older versions).
- Update the stable version set in
data/docs.yaml
.
Build theme assets (if needed):
cd themes/replicante/src
npm install
npm run build
cd ../../../
Build the site only:
rm -r dist/ # Clean target before build.
hugo
TODO
aws s3 sync dist/ s3://<bucket>/