diff --git a/.devcontainer/post.sh b/.devcontainer/post.sh index 69da1d7..e72a43b 100755 --- a/.devcontainer/post.sh +++ b/.devcontainer/post.sh @@ -30,7 +30,7 @@ if [[ ("${1,,}" == "bundle") || ("${1,,}" == "start") ]]; then fi if [[ "${1,,}" == "start" ]]; then - cd $PARENT/docs && bundle update && nohup bundle exec jekyll serve --force_polling --livereload --safe > $PARENT/jekyll.out 2>&1 & + cd $PARENT/docs && bundle update && nohup bundle exec jekyll serve --force_polling --livereload > $PARENT/jekyll.out 2>&1 & sleep 4 tail $PARENT/jekyll.out echo "Jekyll started, to monitor see $PARENT/jekyll.out" diff --git a/.github/workflows/openapi-bundle.yaml b/.github/workflows/openapi-bundle.yaml index 1877fa9..40b6fdf 100644 --- a/.github/workflows/openapi-bundle.yaml +++ b/.github/workflows/openapi-bundle.yaml @@ -20,17 +20,25 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: 20 - - run: "npx --yes @redocly/cli bundle ./docs/_data/openapi-split.yaml -o ./docs/openapi.yaml" + - name: Redocly bundle + run: "npx --yes @redocly/cli bundle ./docs/_data/openapi-split.yaml -o ./docs/openapi.yaml" + + - name: Setup Ruby + uses: ruby/setup-ruby@v1.98 + with: + ruby-version: '3.1' + bundler-cache: true - name: Setup Pages uses: actions/configure-pages@v4 - - name: Build - uses: actions/jekyll-build-pages@v1 - with: - source: './docs' + - name: Build with Jekyll + run: bundle exec jekyll build --source ./docs" + env: + JEKYLL_ENV: production - name: Upload artifact uses: actions/upload-pages-artifact@v3 diff --git a/cspell.json b/cspell.json index 990f49a..03c45a6 100644 --- a/cspell.json +++ b/cspell.json @@ -9,6 +9,7 @@ "NERC", "openapi", "redoc", + "Redocly", "TROLIE" ], "ignoreWords": [],