predicate.dev - A website for software specifications
- install Hugo
- Fork or clone this repository (https://github.com/predicated-dev/predicate.dev)
- Navigate to the folder and run
hugo serveorhugo server
- 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"
description : "Sample specification that doubles as instructions on how to add your own spec"
---
title: Shown in each versioned spec page in an H1 tagdescription: A meta tag added for search engines
version: 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)
---
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 (or uncomment if a language is present, but commented out with#) - 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. - Check if
content/sample/_index.fr.mdis available, if not copy and translatecontent/sample/_index.fr.md - Copy and translate a version of a specification file, 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
- Create a pull request via GitHub and we will consider your submission for approval