Skip to content
Merged
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
33 changes: 25 additions & 8 deletions .github/workflows/push-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,39 @@ jobs:
repository: nanoforge-dev/docs
token: ${{ secrets.ACTIONS_KEY }}

- name: Install Node.js v24
uses: actions/setup-node@v6
with:
node-version: 24
package-manager-cache: false
registry-url: https://registry.npmjs.org/

- uses: pnpm/action-setup@v4.1.0
name: Install pnpm
with:
run_install: false
version: 10.22.0 # Couldnt find a way to execute this action in the right directory

- name: setup git
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "username@users.noreply.github.com"
- name: setup registry code documentation
uses: mattnotmitt/doxygen-action@v1
with:
doxyfile-path: engine/packages/ecs-lib/docs/Doxyfile
- name: install doxygen
uses: ssciwr/doxygen-install@v1

- name: install deps
run: cd engine && pnpm i

- name: synchronize docs
run: |
cp -r engine/packages/ecs-lib/docs engine/docs/registry/api
cd engine
./scripts/build_docs.sh
cd ..
rm docs/engine -rf
mkdir -p docs/engine
cp -r engine/docs/* docs/engine
cd docs
git add .
git commit -m "chore(engine): updating docs"
git push origin main
git add . || echo "No changes to add"
git commit -m "chore(engine): updating docs" || echo "No changes to commit"
git push origin main || echo "No changes to push"
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -227,3 +227,9 @@ dist
.turbo/

compile_commands.json
docs_markdown
xml
docs_build
docs/conf.py
docs/*/api/index.md
docs/ecs-lib/api/typescript.md
7 changes: 7 additions & 0 deletions docs/asset-manager/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
asset-manager
==================

.. toctree::


api/index.md
7 changes: 7 additions & 0 deletions docs/common/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
common
==================

.. toctree::


api/index.md
7 changes: 7 additions & 0 deletions docs/config/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
config
==================

.. toctree::


api/index.md
7 changes: 7 additions & 0 deletions docs/core/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
core
==================

.. toctree::


api/index.md
7 changes: 7 additions & 0 deletions docs/ecs-client/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ecs-client
==================

.. toctree::


api/index.md
8 changes: 8 additions & 0 deletions docs/ecs-lib/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
ECS Documentation
=================

.. toctree::


wasm.rst
api/typescript.rst
11 changes: 11 additions & 0 deletions docs/ecs-lib/wasm.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
C++ classes
-----------

.. doxygenclass:: nfo::Registry
:members:

.. doxygenclass:: nfo::Entity
:members:

.. doxygenclass:: nfo::SparseArray
:members:
7 changes: 7 additions & 0 deletions docs/ecs-server/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ecs-server
==================

.. toctree::


api/index.md
7 changes: 7 additions & 0 deletions docs/graphics-2d/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
graphics-2d
==================

.. toctree::


api/index.md
17 changes: 15 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,24 @@ Engine
======

.. toctree::
:maxdepth: 2

registry
documentation.rst
how_to_use.rst
registry/index.rst
network/index.rst
asset-manager/index.rst
common/index.rst
config/index.rst
core/index.rst
ecs-client/index.rst
ecs-server/index.rst
ecs-lib/index.rst
graphics-2d/index.rst
input/index.rst
music/index.rst
sound/index.rst
network-client/index.rst
network-server/index.rst

In this doc you will find both the how to use and why use this engine as well as its library.
To understand how to use this engine please refer to :doc:`/how_to_use`
7 changes: 7 additions & 0 deletions docs/input/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
input
==================

.. toctree::


api/index.md
7 changes: 7 additions & 0 deletions docs/music/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
music
==================

.. toctree::


api/index.md
7 changes: 7 additions & 0 deletions docs/network-client/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
network-client
==================

.. toctree::


api/index.md
7 changes: 7 additions & 0 deletions docs/network-server/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
network-server
==================

.. toctree::


api/index.md
8 changes: 8 additions & 0 deletions docs/network/index.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
Network Overview
================

.. toctree::

network-client
network-server
packet-framing
network-server-api
network-client-api

This page describes the global design and rationale for the engine's networking
libraries: the `network-server` and `network-client` TypeScript packages. These
libraries provide a small, pragmatic networking layer used by the example
Expand Down
2 changes: 1 addition & 1 deletion docs/network/network-client.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Client responsibilities in a game are typically:
or sending low-latency updates.

Example
--------------------------------------------------
-------

It works exactly the same with UDP

Expand Down
2 changes: 1 addition & 1 deletion docs/registry/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Registry
========

.. toctree::
:maxdepth: 2


writing_web_assembly.rst

Expand Down
7 changes: 7 additions & 0 deletions docs/sound/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
sound
==================

.. toctree::


api/index.md
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
"prettier": "^3.6.2",
"tsup": "^8.5.1",
"turbo": "^2.6.1",
"typedoc": "^0.28.16",
"typedoc-plugin-markdown": "^4.9.0",
"typescript": "^5.9.3",
"vitest": "^4.0.15"
},
Expand Down
5 changes: 5 additions & 0 deletions packages/asset-manager/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": ["../../typedoc.base.json"],
"entryPoints": ["src/index.ts"],
"skipErrorChecking": true
}
5 changes: 5 additions & 0 deletions packages/common/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": ["../../typedoc.base.json"],
"entryPoints": ["src/index.ts"],
"skipErrorChecking": true
}
5 changes: 5 additions & 0 deletions packages/config/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": ["../../typedoc.base.json"],
"entryPoints": ["src/index.ts"],
"skipErrorChecking": true
}
5 changes: 5 additions & 0 deletions packages/core/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": ["../../typedoc.base.json"],
"entryPoints": ["src/index.ts"],
"skipErrorChecking": true
}
5 changes: 5 additions & 0 deletions packages/ecs-client/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": ["../../typedoc.base.json"],
"entryPoints": ["src/index.ts"],
"skipErrorChecking": true
}
6 changes: 3 additions & 3 deletions packages/ecs-lib/docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ECS Documentation
=================

.. toctree::
:maxdepth: 2

wasm
typescript

wasm.rst
api/typescript.rst
5 changes: 5 additions & 0 deletions packages/ecs-lib/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": ["../../typedoc.base.json"],
"entryPoints": ["src/index.ts"],
"skipErrorChecking": true
}
5 changes: 5 additions & 0 deletions packages/ecs-server/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": ["../../typedoc.base.json"],
"entryPoints": ["src/index.ts"],
"skipErrorChecking": true
}
5 changes: 5 additions & 0 deletions packages/graphics-2d/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": ["../../typedoc.base.json"],
"entryPoints": ["src/index.ts"],
"skipErrorChecking": true
}
5 changes: 5 additions & 0 deletions packages/input/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": ["../../typedoc.base.json"],
"entryPoints": ["src/index.ts"],
"skipErrorChecking": true
}
5 changes: 5 additions & 0 deletions packages/music/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": ["../../typedoc.base.json"],
"entryPoints": ["src/index.ts"],
"skipErrorChecking": true
}
5 changes: 5 additions & 0 deletions packages/network-client/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": ["../../typedoc.base.json"],
"entryPoints": ["src/index.ts"],
"skipErrorChecking": true
}
5 changes: 5 additions & 0 deletions packages/network-server/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": ["../../typedoc.base.json"],
"entryPoints": ["src/index.ts"],
"skipErrorChecking": true
}
5 changes: 5 additions & 0 deletions packages/sound/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": ["../../typedoc.base.json"],
"entryPoints": ["src/index.ts"],
"skipErrorChecking": true
}
Loading
Loading