Skip to content

Commit

Permalink
Merge pull request #441 from jwetzell/chore/docs
Browse files Browse the repository at this point in the history
add separate docs
  • Loading branch information
jwetzell authored May 25, 2024
2 parents 7ee1154 + 04fdcbe commit 80d23cd
Show file tree
Hide file tree
Showing 24 changed files with 8,972 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ changelog:
- title: Web UI 🌐
labels:
- webui
- title: Docs 📄
labels:
- docs
- title: Other Changes
labels:
- '*'
38 changes: 38 additions & 0 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Publish showbridge docs to docs site
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'docs/**'
jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
cache-dependency-path: 'docs/package-lock.json'

- name: Install Node.js dependencies
run: npm ci
working-directory: ./docs

- run: npm run build
working-directory: ./docs

- name: publish docs
uses: SamKirkland/FTP-Deploy-Action@v4.3.5
with:
server: ${{secrets.FTP_URL}}
username: ${{secrets.DOCS_FTP_USERNAME}}
password: ${{secrets.DOCS_FTP_PASSWORD}}
local-dir: ./docs/dist/
server-dir: docs/
port: 21
protocol: ftps
18 changes: 18 additions & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# build output
dist/
# generated types
.astro/

# dependencies
node_modules/

# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*


# environment variables
.env
.env.production
41 changes: 41 additions & 0 deletions docs/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import starlight from '@astrojs/starlight';
import { defineConfig } from 'astro/config';

// https://astro.build/config
export default defineConfig({
integrations: [
starlight({
title: 'showbridge',
favicon: '/favicon.ico',
social: {
github: 'https://github.com/jwetzell/showbridge',
},
sidebar: [
{
label: 'showbridge',
autogenerate: { directory: '/showbridge' },
},
{
label: 'Guides',
autogenerate: { directory: 'guides' },
},
{
label: 'Reference',
autogenerate: { directory: 'reference' },
},
{ label: 'Demo', link: 'https://demo.showbridge.io/', attrs: { target: '_blank' } },
{
label: 'More Docs',
items: [
{ label: 'Lib JSDocs', link: 'https://docs.showbridge.io/lib/', attrs: { target: '_blank' } },
{
label: 'Config JSON Schema',
link: 'https://docs.showbridge.io/schema/config',
attrs: { target: '_blank' },
},
],
},
],
}),
],
});
Loading

0 comments on commit 80d23cd

Please sign in to comment.