Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add date to all articles correcting RSS timestamps #61

Merged
merged 12 commits into from
Nov 20, 2023

Conversation

nikitawootten-nist
Copy link
Collaborator

This PR adds a date to all pages using the timestamp of the first commit. This corrects the RSS feeds generated in #47.

Also fixed:

  • Remove and ignore hugo build lock
  • Remove files belonging to OSCAL-Reference

For posterity, the following script was used:

#!/usr/bin/env bash
# dateify

set -Eeuo pipefail

function creation_date() {
    git log --follow --format=%ad --date=iso $1 | tail -1
}

while IFS= read -r -d '' file
do
    if [ "$(head -n1 $file)" = "---" ]; then
        if ! grep -q "date: " $file; then
            date=$(creation_date $file)
            echo $file $date
            awk "NR==3{print \"date: $date\"}1" "$file" > .temp_file && mv .temp_file "$file"
        fi
    fi
done <   <(git ls-files -z src/content | grep -z '.md$')

aj-stein-nist and others added 11 commits September 14, 2023 12:37
* Add blog section index.

* Add edited blog post for usnistgov/OSCAL#1911.

Co-authored-by: Arminta Jenkins <michaela.iorga@nist.gov>
Co-authored-by: Michaela Iorga <michaela.iorga@nist.gov>
Co-authored-by: Wendell Piez <wendell.piez@nist.gov>

* PR feedback: correct blog index heading.

* PR feedback: shorten title, stick to fall cleaning.

* PR feedback: community->all, all is confusing.

* PR feedback: switch from deep to fall cleaning in 1st para.

* PR feedback: update changes list to include XSLT converter artifact summary, as requested.

* PR feedback: add summary about oscal-tools and oscal-cat

As requested, do this so that the distinction between release artifacts,
what metaschema-xslt does, and what higher-level transformations that
were in oscal-tools is more clear.

* Take Nikita's feedback on changes list

Take feedback with wording improvements and mentioning of a simpler build process.

Co-authored-by: Nikita Wootten <nikita.wootten@nist.gov>

* PR feedback: remove contraction.

* PR feedback: add mention of v1.1.1 also.

* PR feedback: be explicit and repeat mention of OSCAL repo

Remove more casual language that was not concise enough.

---------

Co-authored-by: Arminta Jenkins <michaela.iorga@nist.gov>
Co-authored-by: Wendell Piez <wendell.piez@nist.gov>
Co-authored-by: Nikita Wootten <nikita.wootten@nist.gov>
Added a link for the discussions to support the effort OSCAL DEFINE.
Backport update of the news page to align with missing release and our updated release guidance. This will serve as an example.
Following usnistgov/OSCAL#1936, add workflow to add new issues to the board automatically.
With updated comms guidance and checklists reviewed with @iMichaela regarding releases and news, add oscal-cli release and backport recent liboscal-java release.
…esources/ (#60)

* Update broken links for #48.

Co-Authored-By: Arminta Jenkins <arminta.jenkins@nist.gov>

* updated 3 FedRAMP links and XML-JSON converter links.

* I corrected the link for TESTING NEW RELEASES.

* Add missing implementation layer index alias.

---------

Co-authored-by: Arminta Jenkins <arminta.jenkins@nist.gov>
@nikitawootten-nist nikitawootten-nist linked an issue Nov 8, 2023 that may be closed by this pull request
@nikitawootten-nist nikitawootten-nist changed the base branch from main to develop November 20, 2023 15:55
@nikitawootten-nist nikitawootten-nist merged commit 7ec0414 into develop Nov 20, 2023
1 check passed
@nikitawootten-nist nikitawootten-nist deleted the nikitawootten-nist/issue47 branch November 20, 2023 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RSS feed timestamps are incorrect
5 participants