Skip to content

Commit c586fb3

Browse files
committed
docs: setup auto push of generated documentation for ecs
1 parent fb1f30e commit c586fb3

7 files changed

Lines changed: 23 additions & 23 deletions

File tree

.github/workflows/push-docs.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ on:
44
push:
55
branches:
66
- main
7+
paths:
8+
- "*.rst"
9+
- "Doxyfile"
10+
- "ecs-lib/"
11+
- "ecs-server/"
12+
- "ecs-client/"
713
workflow_dispatch:
814

915
jobs:
@@ -27,6 +33,14 @@ jobs:
2733
git config --global user.name "github-actions[bot]"
2834
git config --global user.email "username@users.noreply.github.com"
2935
36+
- name: setup registry code documentation
37+
run: |
38+
apt install doxygen -y
39+
cd engine/packages/ecs-lib/docs
40+
doxygen Doxyfile
41+
cd -
42+
cp engine/packages/ecs-lib/docs engine/docs/registry/api
43+
3044
- name: synchronize docs
3145
run: |
3246
mkdir -p docs/engine

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[![Nanoforge Documentation](https://github.com/NanoForge-dev/docs/actions/workflows/deploy.yml/badge.svg)](https://github.com/NanoForge-dev/docs/actions/workflows/deploy.yml)
2+
13
# Engine
24

35
This repository contains the full engine for NanoForge.
@@ -20,6 +22,10 @@ This is the full nanoforge engine including all the default libraries.
2022

2123
In order to manage this project we use (pnpm)[https://pnpm.io/]
2224

25+
## Documentation
26+
27+
The full documentation can be found at: [https://nanoforge-dev.github.io/docs/engine](https://nanoforge-dev.github.io/docs/engine)
28+
2329
## Installing dependencies
2430

2531
To install dependencies run:

docs/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Doxyfile

packages/ecs-lib/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,4 +274,4 @@ lib/index.js
274274
lib/libecs.js
275275
compile_commands.json
276276
emsdk/
277-
doc_out/
277+
docs/xml

packages/ecs-lib/docs/Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ GENERATE_LATEX = NO
44

55
INPUT = ../wasm
66

7-
OUTPUT_DIRECTORY = doc_out
7+
OUTPUT_DIRECTORY = .

packages/ecs-lib/docs/Makefile

Lines changed: 0 additions & 12 deletions
This file was deleted.

packages/ecs-lib/docs/conf.py

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)