Skip to content

Commit 2046957

Browse files
authored
Merge pull request #1 from sbonaime/main
Flowchart of options and flags with astro-mermaid
2 parents f832d11 + c15be2f commit 2046957

8 files changed

Lines changed: 1736 additions & 114 deletions

File tree

.github/workflows/build-docs.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,22 @@ jobs:
1212
steps:
1313
- name: Checkout
1414
uses: actions/checkout@v4
15-
15+
1616
- name: Setup Node.js
1717
uses: actions/setup-node@v4
1818
with:
19-
node-version: '18'
19+
node-version: '22'
2020
cache: 'npm'
2121
cache-dependency-path: './package-lock.json'
22-
22+
2323
- name: Install dependencies
2424
run: npm ci
2525
working-directory: .
26-
26+
2727
- name: Build
2828
run: npm run build
2929
working-directory: .
30-
30+
3131
- name: Upload Pages artifact
3232
uses: actions/upload-pages-artifact@v3
3333
with:
@@ -37,15 +37,15 @@ jobs:
3737
needs: build
3838
runs-on: ubuntu-latest
3939
if: github.ref == 'refs/heads/main'
40-
40+
4141
permissions:
4242
pages: write
4343
id-token: write
44-
44+
4545
environment:
4646
name: github-pages
4747
url: ${{ steps.deployment.outputs.page_url }}
48-
48+
4949
steps:
5050
- name: Deploy to GitHub Pages
5151
id: deployment

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# WebODM Docs
22

3+
## Requirements
4+
5+
- Node.js 22+
6+
- npm 10+
7+
38
## 🧞 Commands
49

510
All commands are run from the root of the project, from a terminal:

astro.config.mjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
11
// @ts-check
22
import { defineConfig } from 'astro/config';
33
import starlight from '@astrojs/starlight';
4+
import mermaid from 'astro-mermaid';
5+
6+
7+
8+
// When using with Starlight or other markdown-processing integrations, place mermaid first
49

510
// https://astro.build/config
611
export default defineConfig({
712
integrations: [
13+
mermaid({
14+
theme: 'default',
15+
autoTheme: true
16+
}),
817
starlight({
918
title: 'WebODM',
1019
logo: {

0 commit comments

Comments
 (0)