Coder Social home page Coder Social logo

Comments (6)

nikitawootten-nist avatar nikitawootten-nist commented on July 17, 2024 2

Hey Chris, there is actually a simpler way to work around this. Makefile variables can be overridden, so instead of editing list_revisions.sh you can just override the variable its result is stored in:

$ make site REVISIONS="v1.1.0 my-test-branch my-other-test-branch"

This behavior is a bit unexpected. I agree it should be documented somewhere.

from oscal-reference.

Compton-US avatar Compton-US commented on July 17, 2024 1

Thanks. I need to make another feature branch this afternoon and start work, so I'll reset and try this out.

from oscal-reference.

nikitawootten-nist avatar nikitawootten-nist commented on July 17, 2024

As for pointing at alternative OSCAL source repositories, currently you would have to edit the generate_modeldoc.sh script, but the script could be edited to either:

  1. Accept an environment variable to override the OSCAL source directory
  2. Expect the OSCAL source directory to be passed in as an argument, so that it would also be controlled via the Makefile

The ladder has some interesting properties, such as allowing the Makefile to ensure the user has initialized the submodule (unless it has been overridden).

from oscal-reference.

Compton-US avatar Compton-US commented on July 17, 2024

This approach seems to be working for me. I've adjusted the generate_modeldoc script and Makefile to support the local OSCAL repo part, and I'll push it up as a feature branch sometime today for consideration. I need to add something to the readme on how to use.

from oscal-reference.

nikitawootten-nist avatar nikitawootten-nist commented on July 17, 2024

This approach seems to be working for me. I've adjusted the generate_modeldoc script and Makefile to support the local OSCAL repo part, and I'll push it up as a feature branch sometime today for consideration. I need to add something to the readme on how to use.

Awesome, if possible I'd like to also amend the script to optionally not use a worktree (just use the provided oscal folder without making a temporary copy)

from oscal-reference.

iMichaela avatar iMichaela commented on July 17, 2024

The solution indicated by @nikitawootten-nist needs to be tested and documented in the README with examples of how to:

  1. override the REVISION to generate the documentation for a single branch or a selected list of branches (releases or prototypes) 2.
  2. pointing at alternative OSCAL source repositories by editing the generate_modeldoc.sh script.

Alternatively, the script can be modified under this issue, to accept an environment variable to override the OSCAL source directory
OR to expect the OSCAL source directory to be passed in as an argument, so that it would also be controlled via the Makefile

from oscal-reference.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.