predicate.dev - A website for software specifications
- Create a subfolder under the
contentfolder with a short name for your specification. This folder will be used in the url, so make it lowercase, short and representative. - Create an
_index.mdfile with the full name of the specification
content/sample/_index.md (subsitute sample with the spec foldername)
---
title: "Sample Specification"
---
title: Shown before any other content in an H1 tagversion: A Semantic Versioning 2.0.0 compliant version number. Shown directly below the title in an H2 taglatest: true or false (default). Used to determine the specification shown when navigating to the specification main URL. At least one specification should be marked aslatest, usually the latest release version of the specification
content/sample/1.0.0/index.md (subsitute sample with the spec foldername)
---
Title: "Sample Specification"
version: "1.0.0"
latest: true
---
Content of the specification goes here- Check
hugo.tomlfile to see if the language is present in the[languages]section, else add it. - Note the language abbreviation. We will use
fr(French) as an example. In all cases below subsitutefrfor your language abbreviation - Check if
i18n/fr.yamlis available, if not copyi18n/en.yamltoi18n/fr.yaml - Translate the content of
i18n/fr.yamlbased oni18n/en.yamlas needed. - Locate the specification file to translate, for example to translate Semantic Version Query Language Specification 1.0.0 copy
content/svql/1.0.0/index.mdtocontent/svql/1.0.0/index.fr.md - Translate the language specific file
- Create a pull request via GitHub and we will consider your submission for approval