diff --git a/.github/toc.yml b/.github/toc.yml index e69de29..0f010d9 100644 --- a/.github/toc.yml +++ b/.github/toc.yml @@ -0,0 +1,20 @@ +- name: cheetah-application + items: + - name: v0.8 + href: cheetah-application/v0.8/README.md +- name: flink-job + items: + - name: v2.1 + href: flink-job/v2.1/README.md +- name: image-automation + items: + - name: v0.2 + href: image-automation/v0.2/README.md +- name: opensearchrole + items: + - name: v0.3 + href: opensearchrole/v0.3/README.md +- name: redpanda-console-oauth2proxy + items: + - name: v1.1 + href: redpanda-console-oauth2proxy/v1.1/README.md diff --git a/.github/workflows/doc-publish.yml b/.github/workflows/doc-publish.yml index 4d54399..c594866 100644 --- a/.github/workflows/doc-publish.yml +++ b/.github/workflows/doc-publish.yml @@ -94,27 +94,28 @@ jobs: - name: create public/ run: | - mkdir -p public/ - cp charts/${{ inputs.chart}}/README.md public/${{inputs.chart}} + mkdir -p public/docs/${{ inputs.chart }}/ + cp charts/${{ inputs.chart }}/README.md public/docs/${{ inputs.chart }} + cp README.md public/docs - name: Deploy to GitHub Pages id: deployment uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./public/${{inputs.chart}} + publish_dir: ./public/docs/ exclude_assets: "" - destination_dir: charts/${{ inputs.chart }}/v${{ steps.chart.outputs.version }} - commit_message: "Deploy ${{ steps.chart.outputs.version }}" + destination_dir: docs/${{ inputs.chart }}/v${{ steps.chart.outputs.version }} + commit_message: "Deploy docs for version v${{ steps.chart.outputs.version }}" keep_files: true - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./public/README.md - exclude_assets: "" - commit_message: "Deploy README.md for repository" + publish_dir: . + exclude_assets: './public/docs, ./toc-folder' + commit_message: "Deploy repo to gh pages" keep_files: true - name: Repository Dispatch diff --git a/.github/workflows/update-docs-auto.yml b/.github/workflows/update-docs-auto.yml index c0e40ab..f137398 100644 --- a/.github/workflows/update-docs-auto.yml +++ b/.github/workflows/update-docs-auto.yml @@ -23,14 +23,14 @@ jobs: charts/cheetah-application/*.yaml - name: Set output variable - #if: ${{ steps.changed-files.outputs.any_changed == 'true' }} + if: ${{ steps.changed-files.outputs.any_changed == 'true' }} run: | echo "changed=true" >> $GITHUB_ENV outputs: changed: ${{ steps.changed-files.outputs.any_changed }} update-doc-cheetah-application: - #if: ${{ needs.cheetah-application.outputs.changed == 'true' }} + if: ${{ needs.cheetah-application.outputs.changed == 'true' }} needs: cheetah-application uses: ./.github/workflows/doc-publish.yml with: