Skip to content

Commit

Permalink
Switch to Jetbrains Writerside
Browse files Browse the repository at this point in the history
  • Loading branch information
afoeder committed May 7, 2024
1 parent 7e6d9ba commit 7aaf30a
Show file tree
Hide file tree
Showing 56 changed files with 158 additions and 714 deletions.
80 changes: 80 additions & 0 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: Build site

on:
push:
branches: ["main"]
workflow_dispatch:

permissions:
id-token: write
pages: write

env:
INSTANCE: 'Writerside/ac'
ARTIFACT: 'webHelpHI2-all.zip'
DOCKER_VERSION: '241.15989'

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Build docs using Writerside Docker builder
uses: JetBrains/writerside-github-action@v4
with:
instance: ${{ env.INSTANCE }}
artifact: ${{ env.ARTIFACT }}
docker-version: ${{ env.DOCKER_VERSION }}

- name: Save artifact with build results
uses: actions/upload-artifact@v4
with:
name: docs
path: |
artifacts/${{ env.ARTIFACT }}
artifacts/report.json
retention-days: 7
test:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: docs
path: artifacts

- name: Test documentation
uses: JetBrains/writerside-checker-action@v1
with:
instance: ${{ env.INSTANCE }}
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: [build, test]
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: docs

- name: Unzip artifact
run: unzip -O UTF-8 -qq '${{ env.ARTIFACT }}' -d dir

- name: Setup Pages
uses: actions/configure-pages@v4

- name: Package and upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: dir

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
10 changes: 0 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +0,0 @@
/build
/.build
/Packages
xcuserdata/
DerivedData/
.swiftpm/configuration/registries.json
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
.netrc
.publish
/Output/*
16 changes: 0 additions & 16 deletions Content/index.md

This file was deleted.

25 changes: 0 additions & 25 deletions Content/ingredients/mung-bean-starch.md

This file was deleted.

Empty file removed Output/.gitkeep
Empty file.
77 changes: 0 additions & 77 deletions Package.resolved

This file was deleted.

25 changes: 0 additions & 25 deletions Package.swift

This file was deleted.

Binary file removed Resources/fonts/crimson-pro-v24-latin-700.woff2
Binary file not shown.
Binary file removed Resources/fonts/crimson-pro-v24-latin-regular.woff2
Binary file not shown.
151 changes: 0 additions & 151 deletions Resources/styles.css

This file was deleted.

Loading

0 comments on commit 7aaf30a

Please sign in to comment.