Skip to content

Commit

Permalink
updated the sync docs workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dipankardas011 authored Dec 2, 2024
1 parent 4ad8be7 commit 4387382
Show file tree
Hide file tree
Showing 30 changed files with 5 additions and 1,237 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/sync-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
- main
paths:
- 'cli/**' # Adjust this to match your CLI code structure
- 'gen/docs.md/**' # If the generator is in a separate directory
- '.github/workflows/sync-docs.yml'

workflow_dispatch:
Expand Down Expand Up @@ -40,8 +39,12 @@ jobs:
- name: Sync Generated Docs
run: |
# Copy generated docs
cp docs-repo/content/en/docs/Reference/_index.md /tmp/_index.md
rm -rf docs-repo/content/en/docs/Reference
mkdir -p docs-repo/content/en/docs/Reference
cp /tmp/_index.md docs-repo/content/en/docs/Reference/_index.md
cp -rv cli-repo/gen/docs.md/. docs-repo/content/en/docs/Reference/.
ls -l docs-repo/content/en/docs/Reference/
ls -lha docs-repo/content/en/docs/Reference/
- name: Commit and Push Changes
working-directory: docs-repo
Expand Down
32 changes: 0 additions & 32 deletions gen/docs.md/ksctl.md

This file was deleted.

57 changes: 0 additions & 57 deletions gen/docs.md/ksctl_connect-cluster.md

This file was deleted.

39 changes: 0 additions & 39 deletions gen/docs.md/ksctl_create-cluster.md

This file was deleted.

47 changes: 0 additions & 47 deletions gen/docs.md/ksctl_create-cluster_aws.md

This file was deleted.

47 changes: 0 additions & 47 deletions gen/docs.md/ksctl_create-cluster_azure.md

This file was deleted.

47 changes: 0 additions & 47 deletions gen/docs.md/ksctl_create-cluster_civo.md

This file was deleted.

53 changes: 0 additions & 53 deletions gen/docs.md/ksctl_create-cluster_ha-aws.md

This file was deleted.

43 changes: 0 additions & 43 deletions gen/docs.md/ksctl_create-cluster_ha-aws_add-nodes.md

This file was deleted.

Loading

0 comments on commit 4387382

Please sign in to comment.