Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ jobs:
with:
fetch-depth: 0

- name: Checkout pinned libamtrack source
uses: actions/checkout@v7
with:
repository: libamtrack/library
ref: ef78da9ac3342dadbc1854df9534d45ccaeeb3c9
path: .sourcey/library

- name: Set up Node.js
uses: actions/setup-node@v7
with:
Expand All @@ -31,6 +38,20 @@ jobs:
- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Install Doxygen
run: sudo apt-get update && sudo apt-get install --yes doxygen

- name: Prepare the C API source
run: yarn prepare:api

- name: Generate Doxygen XML
working-directory: .sourcey/library
run: |
(cat Doxyfile; printf '\nOUTPUT_DIRECTORY = doxygen-sourcey\nCREATE_SUBDIRS = NO\nGENERATE_XML = YES\nGENERATE_HTML = NO\nWARN_AS_ERROR = NO\nINPUT = include sourcey-groups.dox\n') | doxygen -

- name: Build the Sourcey C API reference
run: yarn build:api

- name: Build the site
run: yarn build

Expand Down
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -240,4 +240,8 @@ dist

# End of https://www.toptal.com/developers/gitignore/api/node,visualstudiocode,docusaurus

venv
venv

# Sourcey build inputs and generated API reference
.sourcey/
/static/api/
5 changes: 5 additions & 0 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ const config: Config = {
position: 'left',
label: 'C Library',
},
{
href: 'https://libamtrack.github.io/api/',
label: 'C API Reference',
position: 'left',
},
{
type: 'docSidebar',
sidebarId: 'pythonSidebar',
Expand Down
Loading