diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index b0b9107a..7e6ac490 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -1,9 +1,11 @@ name: deploy github pages on: - # Runs on pushes targeting the default branch + # Runs on pushes to main (content) or gh-pages (scaffolding) push: - branches: ["main"] + branches: + - main + - gh-pages # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -24,15 +26,34 @@ jobs: build: runs-on: ubuntu-latest steps: - - name: Checkout + - name: Checkout gh-pages (Jekyll scaffolding) uses: actions/checkout@v4 + with: + ref: gh-pages + + - name: Checkout docs content from main + uses: actions/checkout@v4 + with: + ref: main + sparse-checkout: | + docs/ibm-cloud-rules.md + sparse-checkout-cone-mode: false + path: _main_docs + + - name: Copy docs content into build tree + run: | + mkdir -p docs + cp _main_docs/docs/ibm-cloud-rules.md docs/ibm-cloud-rules.md + - name: Setup Pages uses: actions/configure-pages@v5 + - name: Build with Jekyll uses: actions/jekyll-build-pages@v1 with: source: ./ destination: ./_site + - name: Upload artifact uses: actions/upload-pages-artifact@v3 diff --git a/_config.yml b/_config.yml deleted file mode 100644 index 206705ca..00000000 --- a/_config.yml +++ /dev/null @@ -1,16 +0,0 @@ -title: IBM OpenAPI Validator -description: A highly configurable linter/validator for OpenAPI documents. -theme: minima - -exclude: - - README.md - - CHANGELOG.md - - CONTRIBUTING.md - - Migration-Guide.md - - docs/automated-quality-screening.md - - docs/openapi-ruleset-utilities.md - - packages/ - - node_modules/ - - scripts/ - - coverage/ - - test-local/ diff --git a/_sass/custom.scss b/_sass/custom.scss deleted file mode 100644 index 1a0e2b33..00000000 --- a/_sass/custom.scss +++ /dev/null @@ -1,27 +0,0 @@ -// Fix table layout so they never cause horizontal page scroll. -// Tables are constrained to the wrapper width; pre blocks inside -// cells scroll only within the cell (vertically wrapping the content). - -.post-content { - table { - table-layout: fixed; - width: 100%; - word-wrap: break-word; - overflow-wrap: break-word; - - td, th { - word-wrap: break-word; - overflow-wrap: break-word; - } - - // pre / code blocks inside table cells: scroll horizontally within - // the cell only, never overflow the page. - td pre, th pre { - overflow-x: auto; - max-width: 100%; - white-space: pre; - word-wrap: normal; - overflow-wrap: normal; - } - } -} diff --git a/assets/main.scss b/assets/main.scss deleted file mode 100644 index 456bc665..00000000 --- a/assets/main.scss +++ /dev/null @@ -1,6 +0,0 @@ ---- -# Only the main Sass file needs front matter (the dashes are enough) ---- - -@import "minima"; -@import "custom"; diff --git a/index.html b/index.html deleted file mode 100644 index b544e2ac..00000000 --- a/index.html +++ /dev/null @@ -1,13 +0,0 @@ ---- ---- - - -
- - -Redirecting to IBM Cloud Validation Ruleset…
- -