Skip to content

try to use pandoc instead of emacs #43

try to use pandoc instead of emacs

try to use pandoc instead of emacs #43

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches: [ main, master ]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Install Clojure tools
uses: DeLaGuardo/[email protected]
with:
cli: latest
- name: Setup Babashka
uses: turtlequeue/[email protected]
with:
babashka-version: 1.3.189
- name: Install dependencies
run: npm install
- name: install pandoc
uses: docker://pandoc/core:3.5
with:
args: "-f org -t gfm --atx-headers <(printf "#+OPTIONS: H:9") -o src/noon/doc/guide.md src/noon/doc/guide.org"
# - name: Install Emacs
# uses: purcell/setup-emacs@master
# with:
# version: 29.3
# - name: Convert Org to Markdown
# run: |
# emacs -Q --batch \
# --eval "(require 'org)" \
# --eval "(require 'ox-md)" \
# --eval "(setq org-export-with-broken-links t org-export-with-toc nil org-md-headline-style 'atx org-export-headline-levels 10)" \
# --find-file src/noon/doc/guide.org \
# --eval '(org-md-export-to-markdown)' \
# --kill
- name: Build noon.client.guide namespace
run: clojure -X:create-client-guide-ns
- name: Build with shadow-cljs
run: npx shadow-cljs release client
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'public'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4