Skip to content

Commit

Permalink
Merge pull request #13 from usnistgov/7-oscal-reference-landing-page
Browse files Browse the repository at this point in the history
  • Loading branch information
aj-stein-nist authored Aug 17, 2023
2 parents 7446f58 + 140c9ad commit 19eadb9
Show file tree
Hide file tree
Showing 10 changed files with 43 additions and 11 deletions.
28 changes: 28 additions & 0 deletions site/archetypes/guide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# How do I use this documentation?

Each specification consists of an outline, an index, and a reference, for both JSON and XML formats.

## Outline Pages

An outline is a navigatable, tree-based representation of OSCAL's models. For example, below is the collapsed OSCAL System Security Plan outline in JSON and XML, respectively. The name links to the corresponding entry in the XML or JSON formats.

By clicking on the black triangle in front of an entry, it expands to show child entries.

![](/img/outline-ssp-json.png)
![](/img/outline-ssp-xml.png)

In an outline, the cardinality, the minimum and maximum number of instances required, follows the entry as a number in square brackets. The data type follows the cardinality (see the cardinality <code>[1]</code> in the image below).

## Reference Pages

In an outline, each entry links to its corresponding reference providing a definition for an entry and its constraints.

![](/img/reference-ssp-json.png)

## Index Pages

An index for each OSCAL model lists all entries in alphabetical order.

Each entry in the index lists a specific location in the applicable model, in both JSON and XML formats.

![](/img/index-ssp-props-json.png)
9 changes: 0 additions & 9 deletions site/content/_index.md

This file was deleted.

4 changes: 2 additions & 2 deletions site/content/models/_index.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
title: Model Reference
title: Model Documentation
layout: reference-index
menu:
primary:
name: Model Reference
name: Model Documentation
weight: 35
toc:
enabled: true
Expand Down
12 changes: 12 additions & 0 deletions site/layouts/_default/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en-us">

<head>
<title>Redirect</title>
<link rel="canonical" href="models/">
<meta name="robots" content="noindex">
<meta charset="utf-8">
<meta http-equiv="refresh" content="0; url=models/">
</head>

</html>
1 change: 1 addition & 0 deletions site/layouts/_default/reference-index.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
{{ end }}
{{ end }}
</ul>
{{ readFile "archetypes/guide.md" | markdownify }}
{{ end }}
</article>
</div>
Expand Down
Binary file added site/static/img/index-ssp-props-json.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added site/static/img/outline-ssp-json-expand.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added site/static/img/outline-ssp-json.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added site/static/img/outline-ssp-xml.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added site/static/img/reference-ssp-json.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 19eadb9

Please sign in to comment.