Skip to content

Commit 5927ca1

Browse files
doc: Add comprehensive documentation for ComputeKit
1 parent db0195e commit 5927ca1

14 files changed

Lines changed: 2142 additions & 42 deletions

File tree

.github/workflows/docs.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Deploy Documentation to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: 'pages'
15+
cancel-in-progress: false
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
24+
- name: Setup Pages
25+
uses: actions/configure-pages@v4
26+
27+
- name: Build with Jekyll
28+
uses: actions/jekyll-build-pages@v1
29+
with:
30+
source: ./docs
31+
destination: ./_site
32+
33+
- name: Upload artifact
34+
uses: actions/upload-pages-artifact@v3
35+
36+
deploy:
37+
runs-on: ubuntu-latest
38+
needs: build
39+
permissions:
40+
pages: write
41+
id-token: write
42+
steps:
43+
- name: Deploy to GitHub Pages
44+
id: deployment
45+
uses: actions/deploy-pages@v4

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
1414
[![TypeScript](https://img.shields.io/badge/TypeScript-5.0-blue)](https://www.typescriptlang.org/)
1515

16-
[Getting Started](#-getting-started)[Examples](#-examples)[API](#-api)[React Hooks](#-react-hooks)[WASM](#-webassembly-support)
16+
[📚 Documentation](https://tapava.github.io/compute-kit)[Getting Started](#-getting-started)[Examples](#-examples)[API](#-api)[React Hooks](#-react-hooks)[WASM](#-webassembly-support)
1717

1818
</div>
1919

@@ -542,8 +542,8 @@ Contributions are welcome! Please read our [Contributing Guide](CONTRIBUTING.md)
542542
543543
```bash
544544
# Clone the repo
545-
git clone https://github.com/your-username/computekit.git
546-
cd computekit
545+
git clone https://github.com/tapava/compute-kit.git
546+
cd compute-kit
547547

548548
# Install dependencies
549549
npm install
@@ -571,6 +571,7 @@ MIT © [Ghassen Lassoued](https://github.com/tapava)
571571
<sub>Built with ❤️ for the web platform</sub>
572572
</p>
573573
<p>
574-
<a href="https://github.com/your-username/computekit">⭐ Star on GitHub</a>
574+
<a href="https://tapava.github.io/compute-kit">📚 Read the Docs</a> •
575+
<a href="https://github.com/tapava/compute-kit">⭐ Star on GitHub</a>
575576
</p>
576577
</div>

docs/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Ignore Jekyll build output
2+
_site/
3+
.sass-cache/
4+
.jekyll-cache/
5+
.jekyll-metadata
6+
vendor/

docs/Gemfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
source "https://rubygems.org"
2+
3+
gem "jekyll", "~> 4.3"
4+
gem "just-the-docs", "~> 0.8"
5+
gem "jekyll-seo-tag"
6+
gem "jekyll-include-cache"

docs/_config.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
title: ComputeKit
2+
description: The React-first toolkit for WASM and Web Workers
3+
url: 'https://tapava.github.io'
4+
baseurl: '/compute-kit'
5+
6+
remote_theme: just-the-docs/just-the-docs@v0.8.2
7+
8+
color_scheme: dark
9+
10+
logo: '/assets/logo.svg'
11+
12+
aux_links:
13+
GitHub: https://github.com/tapava/compute-kit
14+
npm: https://www.npmjs.com/package/@computekit/core
15+
16+
aux_links_new_tab: true
17+
18+
heading_anchors: true
19+
20+
search_enabled: true
21+
search:
22+
heading_level: 2
23+
previews: 3
24+
preview_words_before: 5
25+
preview_words_after: 10
26+
tokenizer_separator: /[\s/]+/
27+
rel_url: true
28+
button: false
29+
30+
nav_enabled: true
31+
nav_sort: case_insensitive
32+
33+
back_to_top: true
34+
back_to_top_text: 'Back to top'
35+
36+
footer_content: 'Copyright &copy; 2024-2025 Ghassen Lassoued. Distributed under the MIT license.'
37+
38+
ga_tracking:
39+
ga_tracking_anonymize_ip: true
40+
41+
callouts:
42+
warning:
43+
title: Warning
44+
color: yellow
45+
note:
46+
title: Note
47+
color: blue
48+
tip:
49+
title: Tip
50+
color: green
51+
52+
plugins:
53+
- jekyll-seo-tag
54+
- jekyll-include-cache
55+
56+
kramdown:
57+
syntax_highlighter_opts:
58+
block:
59+
line_numbers: false
60+
61+
compress_html:
62+
clippings: all
63+
comments: all
64+
endings: all
65+
startings: []
66+
blanklines: false
67+
profile: false

0 commit comments

Comments
 (0)