Skip to content

Add prettier

Add prettier #64

Workflow file for this run

name: CI
'on':
push:
branches:
- master
workflow_dispatch:
jobs:
build-dita:
name: Build DITA
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v4
- name: Build Bootstrap ⚙️
uses: dita-ot/dita-ot-action@master
with:
install: |
apt-get update -q
export DEBIAN_FRONTEND=noninteractive
apt-get install -qy --no-install-recommends nodejs
nodejs -v
plugins: |
fox.jason.extend.css
https://github.com/dita-bootstrap/dita-bootstrap.html/archive/develop.zip
https://github.com/dita-bootstrap/dita-bootstrap.lunr/archive/develop.zip
fox.jason.prismjs
fox.jason.favicon
fox.jason.open-graph
project: .github/dita-ot/html.xml
- name: Deploy HTML 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: out/html # The folder the action should deploy.
- name: Build PDF 🖨️
uses: dita-ot/dita-ot-action@master
with:
install: |
apt-get update -q
export DEBIAN_FRONTEND=noninteractive
apt-get install -qy --no-install-recommends nodejs
nodejs -v
plugins: |
fox.jason.extend.css
fox.jason.prismjs
project: .github/dita-ot/pdf.xml
- name: Upload PDF 📚
uses: actions/upload-artifact@v4
with:
name: dita-artifact
path: 'out/pdf'