Skip to content

Commit

Permalink
chore: Clean docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin Blackman committed Nov 9, 2023
1 parent 152edb3 commit b34a8ba
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ CHAT HOTKEYS:
- CTRL+U - Page up
- CTRL+D - Page down
CHAT CODE ACTIONS:
When working with models that provide code, and using an editor integration, Oatmeal has the capabilities to read selected code from an editor, and submit model provided code back in to an editor. Each code block provided by a model is indexed with a (NUMBER) at the beginning of the block to make it easily identifiable.
Expand Down
1 change: 0 additions & 1 deletion src/domain/services/actions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ HOTKEYS:
- CTRL+U - Page up
- CTRL+D - Page down
CODE ACTIONS:
When working with models that provide code, and using an editor integration, Oatmeal has the capabilities to read selected code from an editor, and submit model provided code back in to an editor. Each code block provided by a model is indexed with a (NUMBER) at the beginning of the block to make it easily identifiable.
Expand Down
10 changes: 7 additions & 3 deletions tools/thirdparty/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ PROGDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
APPROVED_DEFAULT_LICENSES="$(cat "$PROGDIR"/approved_licenses.json | jq -rc 'to_entries[] | .value[]' | sd '\n' '|')ignoremeplz"
LICENSES=$(cargo about generate -c "$PROGDIR/about.toml" "$PROGDIR/templates/json-nl.hbs" | grep -v -E "($APPROVED_DEFAULT_LICENSES)")

FAILED_LINT="false"

function grepBadStrings() {
if (echo "$LICENSES" | grep -q "$1"); then
pkgs=$(echo "$LICENSES" | grep "$1" | jq -rc '"\(.package_name_version) - \(.license) - \(.link)"')
Expand All @@ -14,12 +16,10 @@ function grepBadStrings() {
echo -e "This effects the following packages:\n$pkgs"
echo ""

exit 1
FAILED_LINT="true"
fi
}

rm -f "$PROGDIR/debug.html"

# Lint first
grepBadStrings "Copyright (c) <year> <copyright holders>"
grepBadStrings "LICENSE-APACHE or"
Expand All @@ -29,6 +29,10 @@ grepBadStrings "LICENSE-MIT or"
grepBadStrings "apache"
grepBadStrings "Apache"

if [[ "$FAILED_LINT" == "true" ]]; then
exit 1
fi

cargo about generate -c "$PROGDIR/about.toml" "$PROGDIR/templates/html.hbs" >"$PROGDIR/../../THIRDPARTY.html"
sd '__BASE16_TEXTMATE__' "$(curl -s -L https://raw.githubusercontent.com/chriskempson/base16-textmate/0e51ddd568bdbe17189ac2a07eb1c5f55727513e/LICENSE.md | awk 'NR > 1')" "$PROGDIR/../../THIRDPARTY.html"

Expand Down

0 comments on commit b34a8ba

Please sign in to comment.