Skip to content

Commit bb6e7e8

Browse files
Apply just-the-docs theme for docs-site
1 parent 6ecd840 commit bb6e7e8

File tree

8 files changed

+131
-24
lines changed

8 files changed

+131
-24
lines changed

.github/workflows/docs-site.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Deploy docs site
2+
3+
on:
4+
push:
5+
branches:
6+
- "main"
7+
paths:
8+
- "docs/**"
9+
10+
workflow_dispatch:
11+
12+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13+
permissions:
14+
contents: read
15+
pages: write
16+
id-token: write
17+
18+
# Allow one concurrent deployment
19+
concurrency:
20+
group: "pages"
21+
cancel-in-progress: true
22+
23+
jobs:
24+
build:
25+
runs-on: ubuntu-latest
26+
defaults:
27+
run:
28+
working-directory: docs
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@v4
32+
- name: Setup Ruby
33+
uses: ruby/setup-ruby@v1
34+
with:
35+
ruby-version: '3.3' # Not needed with a .ruby-version file
36+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
37+
cache-version: 0 # Increment this number if you need to re-download cached gems
38+
working-directory: '${{ github.workspace }}/docs'
39+
- name: Setup Pages
40+
id: pages
41+
uses: actions/configure-pages@v5
42+
- name: Build with Jekyll
43+
# Outputs to the './_site' directory by default
44+
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
45+
env:
46+
JEKYLL_ENV: production
47+
- name: Upload artifact
48+
# Automatically uploads an artifact from the './_site' directory by default
49+
uses: actions/upload-pages-artifact@v3
50+
with:
51+
path: docs/_site/
52+
53+
# Deployment job
54+
deploy:
55+
environment:
56+
name: github-pages
57+
url: ${{ steps.deployment.outputs.page_url }}
58+
runs-on: ubuntu-latest
59+
needs: build
60+
steps:
61+
- name: Deploy to GitHub Pages
62+
id: deployment
63+
uses: actions/deploy-pages@v4

docs/Gemfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
source 'https://rubygems.org'
2+
3+
gem "jekyll", "~> 4.4.1" # installed by `gem jekyll`
4+
# gem "webrick" # required when using Ruby >= 3 and Jekyll <= 4.2.2
5+
6+
gem "just-the-docs", "0.10.1" # pinned to the current release
7+
# gem "just-the-docs" # always download the latest release

docs/_config.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
title: Godot Firebase Android
2+
description: Documentation for the GodotFirebaseAndroid plugin
3+
theme: just-the-docs
4+
color_scheme: dark
5+
6+
url: https://syntaxerror247.github.io
7+
8+
aux_links:
9+
Plugin Repository: https://github.com/syntaxerror247/GodotFirebaseAndroid
10+
11+
# Footer content
12+
back_to_top: true
13+
back_to_top_text: "Back to top"
14+
15+
footer_content: 'Copyright &copy; 2025 Anish Mishra. Distributed by an <a href="https://github.com/syntaxerror247/GodotFirebaseAndroid/blob/main/LICENSE">MIT license.</a>'

docs/authentication.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
---
2+
layout: default
3+
title: Authentication
4+
nav_order: 2
5+
---
6+
17
# Authentication
28

39
The Firebase Authentication module in **GodotFirebaseAndroid** supports anonymous login, email/password login, Google login, and account management. Each method emits signals to indicate success or failure.
@@ -7,7 +13,7 @@ The Firebase Authentication module in **GodotFirebaseAndroid** supports anonymou
713
- `auth_success(current_user_data: Dictionary)`
814
Emitted when a user successfully signs in. The dictionary contains user information such as UID, email, etc.
915

10-
- `auth_failure(error_mplugin.emitGodotSignal("realtime_db_value_changed", path, data)essage: String)`
16+
- `auth_failure(error_message: String)`
1117
Emitted when an authentication operation fails.
1218

1319
- `sign_out_success(success: bool)`

docs/firestore.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,28 @@
1+
---
2+
layout: default
3+
title: Cloud Firestore
4+
nav_order: 3
5+
---
6+
17
# Cloud Firestore
28

39
The Cloud Firestore module in **GodotFirebaseAndroid** supports adding, retrieving, updating, and deleting documents, as well as listening for document changes.
410

511
## Signals
612

7-
-`write_task_completed(result: Dictionary)`
13+
- `write_task_completed(result: Dictionary)`
814
Emitted after adding or setting a document.
915

10-
-`get_task_completed(result: Dictionary)`
16+
- `get_task_completed(result: Dictionary)`
1117
Emitted after retrieving a document or a list of documents.
1218

13-
-`update_task_completed(result: Dictionary)`
19+
- `update_task_completed(result: Dictionary)`
1420
Emitted after updating a document.
1521

16-
-`delete_task_completed(result: Dictionary)`
22+
- `delete_task_completed(result: Dictionary)`
1723
Emitted after deleting a document.
1824

19-
-`document_changed(document_path: String, data: Dictionary)`
25+
- `document_changed(document_path: String, data: Dictionary)`
2026
Emitted when a listened document is changed.
2127

2228
**Note**: All signal result dictionaries contain the following keys:

docs/index.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
---
2+
layout: default
3+
title: Firebase Android
4+
nav_order: 1
5+
---
6+
17
# GodotFirebaseAndroid
28

39
**GodotFirebaseAndroid** is an Android plugin for the Godot Engine that integrates Firebase services in Godot Android games and apps.
@@ -27,14 +33,6 @@
2733
- Open **Project > Export**
2834
- Enable `gradle_build/use_gradle_build` in Android preset.
2935

30-
## Documentation
31-
32-
- [Authentication](authentication.md)
33-
- [Cloud Firestore](firestore.md)
34-
- [Realtime Database](realtime_database.md)
35-
- [Cloud Storage](storage.md)
36-
- [Cloud Messaging](messaging.md)
37-
3836
## License
3937

4038
MIT License

docs/realtime_database.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,28 @@
1+
---
2+
layout: default
3+
title: Realtime Database
4+
nav_order: 4
5+
---
6+
17
# Realtime Database
28

39
The Realtime Database module in **GodotFirebaseAndroid** supports reading, writing, and listening to changes in the Firebase Realtime Database.
410

511
## Signals
612

7-
-`write_task_completed(result: Dictionary)`
13+
- `write_task_completed(result: Dictionary)`
814
Emitted after a write (set) operation completes. The dictionary contains a `success` boolean and optionally a `message`.
915

10-
-`get_task_completed(result: Dictionary)`
16+
- `get_task_completed(result: Dictionary)`
1117
Emitted after a get (read) operation completes. Contains either the fetched data or an error.
1218

13-
-`update_task_completed(result: Dictionary)`
19+
- `update_task_completed(result: Dictionary)`
1420
Emitted after an update operation. Indicates success or failure.
1521

16-
-`delete_task_completed(result: Dictionary)`
22+
- `delete_task_completed(result: Dictionary)`
1723
Emitted after a delete operation. Indicates success or failure.
1824

19-
-`db_value_changed(path: String, data: Dictionary)`
25+
- `db_value_changed(path: String, data: Dictionary)`
2026
Emitted when a value at a listened path changes.
2127

2228
**Note**: All signal result dictionaries contain the following keys:

docs/storage.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
1-
# Storage
1+
---
2+
layout: default
3+
title: Cloud Storage
4+
nav_order: 5
5+
---
6+
7+
# Cloud Storage
28

39
The Cloud Storage module in **GodotFirebaseAndroid** provides methods to upload, download, delete, and list files from Firebase Cloud Storage. Each method emits signals to indicate the outcome of the operation.
410

511
## Signals
612

7-
-`upload_task_completed(result: Dictionary)`
13+
- `upload_task_completed(result: Dictionary)`
814
Emitted when a file upload completes. The result contains metadata or error information.
915

10-
-`download_task_completed(result: Dictionary)`
16+
- `download_task_completed(result: Dictionary)`
1117
Emitted when a file download completes. The result contains file information or error details.
1218

13-
-`delete_task_completed(result: Dictionary)`
19+
- `delete_task_completed(result: Dictionary)`
1420
Emitted when a file is deleted. The result indicates success or failure.
1521

16-
-`list_task_completed(result: Dictionary)`
22+
- `list_task_completed(result: Dictionary)`
1723
Emitted when files are listed in a directory. The result includes a list of files or error information.
1824

1925
## Methods

0 commit comments

Comments
 (0)