Skip to content

Commit

Permalink
Merge pull request #1597 from Okeanos/spec-rendering
Browse files Browse the repository at this point in the history
docs: improve rendering of specification files on GH pages
  • Loading branch information
bgilbert committed Apr 7, 2023
2 parents 0680c48 + 4fec35c commit 94e79c4
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/_sass/custom/custom.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#spec-docs ~ ul {
ul {
border-left: 1px solid $grey-lt-300;
}

li::before {
margin-left: -0.8em;
}
}
2 changes: 2 additions & 0 deletions docs/configuration-v3_0.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ nav_order: 49

The Ignition configuration is a JSON document conforming to the following specification, with **_italicized_** entries being optional:

<div id="spec-docs"></div>

* **ignition** (object): metadata about the configuration itself.
* **version** (string): the semantic version number of the spec. The spec version must be compatible with the latest version (`3.0.0`). Compatibility requires the major versions to match and the spec version be less than or equal to the latest version. `-experimental` versions compare less than the final version with the same number, and previous experimental versions are not accepted.
* **_config_** (object): options related to the configuration.
Expand Down
2 changes: 2 additions & 0 deletions docs/configuration-v3_1.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ nav_order: 48

The Ignition configuration is a JSON document conforming to the following specification, with **_italicized_** entries being optional:

<div id="spec-docs"></div>

* **ignition** (object): metadata about the configuration itself.
* **version** (string): the semantic version number of the spec. The spec version must be compatible with the latest version (`3.1.0`). Compatibility requires the major versions to match and the spec version be less than or equal to the latest version. `-experimental` versions compare less than the final version with the same number, and previous experimental versions are not accepted.
* **_config_** (object): options related to the configuration.
Expand Down
2 changes: 2 additions & 0 deletions docs/configuration-v3_2.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ nav_order: 47

The Ignition configuration is a JSON document conforming to the following specification, with **_italicized_** entries being optional:

<div id="spec-docs"></div>

* **ignition** (object): metadata about the configuration itself.
* **version** (string): the semantic version number of the spec. The spec version must be compatible with the latest version (`3.2.0`). Compatibility requires the major versions to match and the spec version be less than or equal to the latest version. `-experimental` versions compare less than the final version with the same number, and previous experimental versions are not accepted.
* **_config_** (object): options related to the configuration.
Expand Down
2 changes: 2 additions & 0 deletions docs/configuration-v3_3.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ nav_order: 46

The Ignition configuration is a JSON document conforming to the following specification, with **_italicized_** entries being optional:

<div id="spec-docs"></div>

* **ignition** (object): metadata about the configuration itself.
* **version** (string): the semantic version number of the spec. The spec version must be compatible with the latest version (`3.3.0`). Compatibility requires the major versions to match and the spec version be less than or equal to the latest version. `-experimental` versions compare less than the final version with the same number, and previous experimental versions are not accepted.
* **_config_** (object): options related to the configuration.
Expand Down
2 changes: 2 additions & 0 deletions docs/configuration-v3_4.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ nav_order: 45

The Ignition configuration is a JSON document conforming to the following specification, with **_italicized_** entries being optional:

<div id="spec-docs"></div>

* **ignition** (object): metadata about the configuration itself.
* **version** (string): the semantic version number of the spec. The spec version must be compatible with the latest version (`3.4.0`). Compatibility requires the major versions to match and the spec version be less than or equal to the latest version. `-experimental` versions compare less than the final version with the same number, and previous experimental versions are not accepted.
* **_config_** (object): options related to the configuration.
Expand Down
2 changes: 2 additions & 0 deletions docs/configuration-v3_5_experimental.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ _NOTE_: This pre-release version of the specification is experimental and is sub

The Ignition configuration is a JSON document conforming to the following specification, with **_italicized_** entries being optional:

<div id="spec-docs"></div>

* **ignition** (object): metadata about the configuration itself.
* **version** (string): the semantic version number of the spec. The spec version must be compatible with the latest version (`3.5.0-experimental`). Compatibility requires the major versions to match and the spec version be less than or equal to the latest version. `-experimental` versions compare less than the final version with the same number, and previous experimental versions are not accepted.
* **_config_** (object): options related to the configuration.
Expand Down
1 change: 1 addition & 0 deletions docs/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ nav_order: 9

### Changes

- Improve rendering of spec docs on docs site

### Bug fixes

Expand Down
2 changes: 2 additions & 0 deletions internal/doc/header.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ _NOTE_: This pre-release version of the specification is experimental and is sub
{{ end -}}
The Ignition configuration is a JSON document conforming to the following specification, with **_italicized_** entries being optional:

<div id="spec-docs"></div>

0 comments on commit 94e79c4

Please sign in to comment.