Skip to content

Commit

Permalink
Merge pull request #39 from usnistgov/nikitawootten-nist/allow-prerel…
Browse files Browse the repository at this point in the history
…eases

Show model deprecation, allow for pre-releases
  • Loading branch information
iMichaela authored Apr 7, 2024
2 parents 6471202 + f7cde2c commit 0485793
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ environment:

.PHONY: serve
serve: modeldoc release-assets ## Spin up a static web server for local dev
cd site
hugo serve
cd site && hugo serve

.PHONY: site
site: $(SITE_OUTPUT_DIR) ## Build the site
Expand Down Expand Up @@ -116,4 +115,4 @@ list-tags: ## List OSCAL tagged releases

.PHONY: list-prototype-branches
list-prototype-branches: ## List OSCAL prototype branches for publication
./support/list_branches.sh $(PROTOTYPE_BRANCHES_REMOTE) $(PROTOTYPE_BRANCHES_PREFIX)
./support/list_branches.sh $(PROTOTYPE_BRANCHES_REMOTE) $(PROTOTYPE_BRANCHES_PREFIX)
4 changes: 4 additions & 0 deletions site/assets/scss/schema-docs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -360,3 +360,7 @@
font-family: anchorjs-icons;
background-image: "";
}

.OM-name-deprecated {
text-decoration: line-through;
}
4 changes: 3 additions & 1 deletion support/list_revisions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ OSCAL_DIR="${ROOT_DIR}/support/OSCAL"
TAGS=$(cd "${OSCAL_DIR}"; git tag)

# filter out non-version tags (anything that isn't in a vX.X.X, milestones, release candidates, etc.)
TAGGED_REVISIONS=$(echo "${TAGS}" | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$')
TAGGED_REVISIONS=$(echo "${TAGS}" | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+(-\S+)?$')
# sort tags (which should be in semver-ish format)
TAGGED_REVISIONS=$(echo "${TAGGED_REVISIONS}" | sort -t "." -k1,1n -k2,2n -k3,3n)
# Filter out pre-1.0 pre-releases
TAGGED_REVISIONS=$(echo "${TAGGED_REVISIONS}" | grep -v -E '^v1\.0\.0-.*')

echo "${TAGGED_REVISIONS}"
2 changes: 1 addition & 1 deletion support/metaschema-xslt
Submodule metaschema-xslt updated 128 files

0 comments on commit 0485793

Please sign in to comment.