diff --git a/.github/workflows/protect-generated.yml b/.github/workflows/protect-generated.yml new file mode 100644 index 0000000000..21f54e9349 --- /dev/null +++ b/.github/workflows/protect-generated.yml @@ -0,0 +1,33 @@ +name: protect-generated + +on: + pull_request: + paths: + - "platform/developer-guide/docs/custom-apps-development/vc-shell/**" + +jobs: + guard: + runs-on: ubuntu-latest + if: ${{ !contains(github.event.pull_request.labels.*.name, 'auto-generated') && github.event.pull_request.user.login != 'vc-shell-docs-bot' }} + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Detect AUTO-GENERATED file edits + env: + BASE_SHA: ${{ github.event.pull_request.base.sha }} + HEAD_SHA: ${{ github.event.pull_request.head.sha }} + run: | + CHANGED=$(git diff --name-only "$BASE_SHA" "$HEAD_SHA" -- 'platform/developer-guide/docs/custom-apps-development/vc-shell/**' || true) + STATUS=0 + for f in $CHANGED; do + # Skip files outside the auto-managed subtree. + case "$f" in + */vc-shell/introduction/*|*/vc-shell/getting-started/*|*/vc-shell/guides/*|*/vc-shell/reference/migration/*) continue ;; + esac + if [[ -f "$f" ]] && grep -q "AUTO-GENERATED FROM vc-shell" "$f"; then + echo "::error file=$f::$f is auto-generated from vc-shell. Edit the source *.docs.md in the vc-shell repo and run yarn docs:sync." + STATUS=1 + fi + done + exit $STATUS diff --git a/.gitignore b/.gitignore index 08e1e7cee6..a5151eb7d7 100644 --- a/.gitignore +++ b/.gitignore @@ -295,3 +295,5 @@ site/ # Local gh-pages folder for versioned content gh-pages/ + +.venv/ diff --git a/mkdocs.yml b/mkdocs.yml index c6960586e1..b992aaf05b 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -539,12 +539,18 @@ extra: content: - title: Developer Guide links: - - title: Overview - url: /platform/developer-guide/latest/custom-apps-development/vc-shell/vc-shell-overview + - title: Introduction + url: /platform/developer-guide/latest/custom-apps-development/vc-shell/introduction/ - title: Getting Started - url: /platform/developer-guide/latest/custom-apps-development/vc-shell/Getting-started/creating-first-custom-app/ - - title: Connecting to Platform - url: /platform/developer-guide/latest/custom-apps-development/vc-shell/How-tos/Connecting-to-Platform/ + url: /platform/developer-guide/latest/custom-apps-development/vc-shell/getting-started/installation/ + - title: Concepts + url: /platform/developer-guide/latest/custom-apps-development/vc-shell/concepts/blade-navigation/ + - title: Components + url: /platform/developer-guide/latest/custom-apps-development/vc-shell/components/data-display/vc-data-table/ + - title: Composables + url: /platform/developer-guide/latest/custom-apps-development/vc-shell/composables/blade-navigation/useBlade/ + - title: Reference + url: /platform/developer-guide/latest/custom-apps-development/vc-shell/reference/cli/create-vc-app/ - title: Deployment on Virto Cloud content: - links: @@ -574,7 +580,7 @@ extra: - title: VC-Shell links: - title: Developer Getting Started - url: /platform/developer-guide/latest/custom-apps-development/vc-shell/Getting-started/creating-first-custom-app + url: /platform/developer-guide/latest/custom-apps-development/vc-shell/getting-started/installation/ - iconSrc: assets/icons/graphql.svg title: APIs content: diff --git a/overrides/main.html b/overrides/main.html index 2b3cb59db4..1f6a260ec6 100644 --- a/overrides/main.html +++ b/overrides/main.html @@ -33,6 +33,25 @@ {% endblock %} +{% block announce %} +
+ +{% endblock %} + {% block html_body %}