Skip to content

Commit

Permalink
DEVAI-25: Move TechDocs From Content To Skeleton (#45)
Browse files Browse the repository at this point in the history
* remove docs and mkdocs.yaml from template contents

Signed-off-by: Jordan Dubrick <jdubrick@redhat.com>

* move tekton readme to techdocs dir and remove from script

Signed-off-by: Jordan Dubrick <jdubrick@redhat.com>

* bump source component readme to techdoc skeleton

Signed-off-by: Jordan Dubrick <jdubrick@redhat.com>

* add action for techdocs

Signed-off-by: Jordan Dubrick <jdubrick@redhat.com>

* rework action to contain values

Signed-off-by: Jordan Dubrick <jdubrick@redhat.com>

* test for ai-lab-app remove this commit

Signed-off-by: Jordan Dubrick <jdubrick@redhat.com>

* Revert "test for ai-lab-app remove this commit"

This reverts commit 8ac1648.

* pull in ai lab app change

Signed-off-by: Jordan Dubrick <jdubrick@redhat.com>

* fix rebase messup and pull in doc changes with generate.sh

Signed-off-by: Jordan Dubrick <jdubrick@redhat.com>

---------

Signed-off-by: Jordan Dubrick <jdubrick@redhat.com>
  • Loading branch information
Jdubrick authored Nov 14, 2024
1 parent ce95ee0 commit d6d6d5b
Show file tree
Hide file tree
Showing 63 changed files with 48 additions and 605 deletions.
13 changes: 4 additions & 9 deletions scripts/import-ai-lab-samples
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ fi

(cd $SAMPLE_DIR; git checkout $BRANCH; git pull)


cd $SAMPLE_DIR
# get readme to source component doc
cp -r $SAMPLE_DIR/README.md $SKELETON_DIR/techdoc/docs/source-component.md

for f in */; do
if [ -d "$f" ]; then
# $f is a directory
Expand All @@ -36,14 +38,7 @@ for f in */; do
cp -r $ROOT_DIR/skeleton/template-card-techdocs/base/mkdocs.yml $DEST/mkdocs.yml

cp $ROOT_DIR/skeleton/template.yaml $DEST/template.yaml

cp -r $ROOT_DIR/skeleton/techdoc/docs $DEST/content/docs
cp -r $ROOT_DIR/skeleton/techdoc/mkdocs.yml $DEST/content/mkdocs.yml

# get readme to source component doc
cp -r $SAMPLE_DIR/README.md $DEST/content/docs/source-component.md
cp -r $ROOT_DIR/skeleton/source-repo/.tekton/README.md $DEST/content/docs/pipelines.md


# get default env variables
source $SCRIPTDIR/envs/base

Expand Down
4 changes: 2 additions & 2 deletions scripts/update-tekton-definition
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ SRC_TEKTON=$ROOTDIR/skeleton/source-repo/.tekton
rm -rf $SRC_TEKTON
mkdir -p $SRC_TEKTON
cp -r $TEMPDIR/$REPONAME/pac/source-repo/. $SRC_TEKTON

cp $SRC_TEKTON/README.md $ROOTDIR/skeleton/techdoc/docs/pipelines.md
rm -rf $TEMPDIR

for prun in $SRC_TEKTON/*.yaml $GITOPS_TEKTON/*.yaml; do
for prun in $SRC_TEKTON/*.yaml; do
echo "Labels for $prun"
add-backstage-labels $prun
done
Expand Down
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions skeleton/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,13 @@ spec:
input:
url: ./content
targetPath: source
# Renders all of the template variables into the techdocs and adds them to the source repo
- id: fetch-skeleton-docs
name: Fetch Skeleton Techdocs
action: fetch:template
input:
url: ../../skeleton/techdoc
targetPath: source
values:
name: ${{ parameters.name }}
appSummary: ${APP_SUMMARY}
Expand Down
15 changes: 0 additions & 15 deletions templates/audio-to-text/content/docs/gitops-application.md

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
20 changes: 0 additions & 20 deletions templates/audio-to-text/content/docs/index.md

This file was deleted.

48 changes: 0 additions & 48 deletions templates/audio-to-text/content/docs/rhoai.md

This file was deleted.

11 changes: 0 additions & 11 deletions templates/audio-to-text/content/mkdocs.yml

This file was deleted.

7 changes: 7 additions & 0 deletions templates/audio-to-text/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,13 @@ spec:
input:
url: ./content
targetPath: source
# Renders all of the template variables into the techdocs and adds them to the source repo
- id: fetch-skeleton-docs
name: Fetch Skeleton Techdocs
action: fetch:template
input:
url: ../../skeleton/techdoc
targetPath: source
values:
name: ${{ parameters.name }}
appSummary: An AI-enabled audio transcription streamlit application. Upload an audio file to be transcribed.
Expand Down
15 changes: 0 additions & 15 deletions templates/chatbot/content/docs/gitops-application.md

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
20 changes: 0 additions & 20 deletions templates/chatbot/content/docs/index.md

This file was deleted.

22 changes: 0 additions & 22 deletions templates/chatbot/content/docs/pipelines.md

This file was deleted.

48 changes: 0 additions & 48 deletions templates/chatbot/content/docs/rhoai.md

This file was deleted.

9 changes: 0 additions & 9 deletions templates/chatbot/content/docs/source-component.md

This file was deleted.

11 changes: 0 additions & 11 deletions templates/chatbot/content/mkdocs.yml

This file was deleted.

7 changes: 7 additions & 0 deletions templates/chatbot/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,13 @@ spec:
input:
url: ./content
targetPath: source
# Renders all of the template variables into the techdocs and adds them to the source repo
- id: fetch-skeleton-docs
name: Fetch Skeleton Techdocs
action: fetch:template
input:
url: ../../skeleton/techdoc
targetPath: source
values:
name: ${{ parameters.name }}
appSummary: A Large Language Model (LLM)-enabled streamlit chat application. The bot replies with AI generated responses.
Expand Down
15 changes: 0 additions & 15 deletions templates/codegen/content/docs/gitops-application.md

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
20 changes: 0 additions & 20 deletions templates/codegen/content/docs/index.md

This file was deleted.

22 changes: 0 additions & 22 deletions templates/codegen/content/docs/pipelines.md

This file was deleted.

Loading

0 comments on commit d6d6d5b

Please sign in to comment.