-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from rhatdan/cleanup
Add man pages for ramalama commands
- Loading branch information
Showing
8 changed files
with
162 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
SED=sed | ||
# The 'sort' below is crucial: without it, 'make docs' behaves differently | ||
# on the first run than on subsequent ones, because the generated .md | ||
MANPAGES_SOURCE_DIR = source/markdown | ||
MANPAGES_MD ?= $(sort $(wildcard $(MANPAGES_SOURCE_DIR)/*.md)) | ||
MANPAGES ?= $(MANPAGES_MD:%.md=%) | ||
MANPAGES_DEST ?= $(subst markdown,man, $(subst source,build,$(MANPAGES))) | ||
$(MANPAGES): OUTFILE=$(subst source/markdown,build/man,$@) | ||
$(MANPAGES): %: %.md | ||
GOMD2MAN ?= /usr/bin/go-md2man | ||
MANPAGES_DEST ?= $(subst markdown,man, $(subst source,build,$(MANPAGES))) | ||
SELINUXOPT ?= $(shell test -x /usr/sbin/selinuxenabled && selinuxenabled && echo -Z) | ||
|
||
.PHONY: docdir | ||
docdir: | ||
mkdir -p build/man | ||
$(MANPAGES): OUTFILE=$(subst source/markdown,build/man,$@) | ||
$(MANPAGES): %: %.md docdir | ||
@$(SED) -e 's/\((ramalama[^)]*\.md\(#.*\)\?)\)//g' \ | ||
-e 's/\[\(ramalama[^]]*\)\]/\1/g' \ | ||
-e 's/\[\([^]]*\)](http[^)]\+)/\1/g' \ | ||
-e 's;<\(/\)\?\(a\|a\s\+[^>]*\|sup\)>;;g' \ | ||
-e 's/\\$$/ /g' $< |\ | ||
$(GOMD2MAN) -out $(OUTFILE) | ||
|
||
.PHONY: install | ||
install: $(MANPAGES) | ||
install ${SELINUXOPT} -d -m 755 $(DESTDIR)$(MANDIR)/man1 | ||
install ${SELINUXOPT} -m 644 $(filter %.1,$(MANPAGES_DEST)) $(DESTDIR)$(MANDIR)/man1 | ||
|
||
clean: | ||
$(RM) -fr build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
% ramalama-list 1 | ||
|
||
## NAME | ||
ramalama - List all the AI Models in local storage | ||
|
||
## SYNOPSIS | ||
**ramalama list** [*options*] | ||
|
||
## DESCRIPTION | ||
List all the AI Models in local storage | ||
|
||
## SEE ALSO | ||
**[ramalama(1)](ramalama.1.md) | ||
|
||
## HISTORY | ||
Aug 2024, Originally compiled by Dan Walsh <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
% ramalama-pull 1 | ||
|
||
## NAME | ||
ramalama - Pull and AI Models into local storage | ||
|
||
## SYNOPSIS | ||
**ramalama pull** [*options*] *model* [*model*...] | ||
|
||
## DESCRIPTION | ||
Pull specified AI Models into local storage | ||
|
||
## SEE ALSO | ||
**[ramalama(1)](ramalama.1.md) | ||
|
||
## HISTORY | ||
Aug 2024, Originally compiled by Dan Walsh <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
% ramalama-run 1 | ||
|
||
## NAME | ||
ramalama - Run specified AI Model as a chatbot | ||
|
||
## SYNOPSIS | ||
**ramalama run** [*options*] *model* | ||
|
||
## DESCRIPTION | ||
Run specified AI Model as a chat bot. Ramalama pulls specified AI Model from | ||
registry if it does not exist in local storage. | ||
|
||
## SEE ALSO | ||
**[ramalama(1)](ramalama.1.md) | ||
|
||
## HISTORY | ||
Aug 2024, Originally compiled by Dan Walsh <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
% ramalama-serve 1 | ||
|
||
## NAME | ||
ramalama - Serve specified AI Model as an API server | ||
|
||
## SYNOPSIS | ||
**ramalama serve** [*options*] *model* | ||
|
||
## DESCRIPTION | ||
Serve specified AI Model as a chat bot. Ramalama pulls specified AI Model from | ||
registry if it does not exist in local storage. | ||
|
||
## SEE ALSO | ||
**[ramalama(1)](ramalama.1.md) | ||
|
||
## HISTORY | ||
Aug 2024, Originally compiled by Dan Walsh <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
% ramalama 1 | ||
|
||
## NAME | ||
ramalama - Simple management tool for working with AI Models | ||
|
||
## SYNOPSIS | ||
**ramalama** [*options*] *command* | ||
|
||
## DESCRIPTION | ||
Ramalama : The goal of ramalama is to make AI even more boring. | ||
|
||
**ramalama [GLOBAL OPTIONS]** | ||
|
||
## COMMANDS | ||
|
||
| Command | Description | | ||
| ------------------------------------------------ | --------------------------------------------------------------------------- | | ||
| [ramalama-list(1)](ramalama-list.1.md) | Liste all AI models in local storage. | | ||
| [ramalama-pull(1)](ramalama-pull.1.md) | Pull AI Model from registry to local storage | | ||
| [ramalama-run(1)](ramalama-run.1.md) | Run a chatbot on AI Model. | | ||
| [ramalama-serve(1)](ramalama-serve.1.md)| Serve local AI Model as an API Service. | | ||
|
||
## CONFIGURATION FILES | ||
|
||
|
||
## SEE ALSO | ||
**[podman(1)](https://github.com/containers/podman/blob/main/docs/podman.1.md)**) | ||
|
||
## HISTORY | ||
Aug 2024, Originally compiled by Dan Walsh <[email protected]> |