Skip to content

Commit b3955fc

Browse files
committed
Redesigned website
Signed-off-by: Tharuk Renuja <90763454+TharukRenuja@users.noreply.github.com>
1 parent 471fb97 commit b3955fc

29 files changed

Lines changed: 10594 additions & 94 deletions

‎.github/scripts/build-docs.py‎

Lines changed: 1153 additions & 0 deletions
Large diffs are not rendered by default.

‎.github/workflows/build-docs.yml‎

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Build Docs
2+
3+
on:
4+
repository_dispatch:
5+
types: [docs-updated]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- name: Fetch latest docs from source repo
14+
env:
15+
PAT: ${{ secrets.SOURCE_REPO_PAT }}
16+
run: |
17+
REPO="https://github.com/YOUR_USERNAME/YOUR_SOURCE_REPO.git"
18+
if [ -n "$PAT" ]; then
19+
REPO="https://x-access-token:${PAT}@github.com/YOUR_USERNAME/YOUR_SOURCE_REPO.git"
20+
fi
21+
git clone --depth 1 --branch main "$REPO" /tmp/source
22+
rm -rf docs/content/
23+
cp -r /tmp/source/docs/content docs/content/
24+
25+
- name: Build HTML
26+
run: python3 .github/scripts/build-docs.py
27+
28+
- name: Clean up source markdown
29+
run: rm -rf docs/content/
30+
31+
- name: Commit and push
32+
run: |
33+
SHA="${{ github.event.client_payload.sha }}"
34+
git config user.name "docs-bot"
35+
git config user.email "bot@droidspaces.org"
36+
git add -A
37+
git diff --cached --quiet || \
38+
git commit -m "docs: update from source@${SHA:0:7}" && \
39+
git push

‎.gitignore‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎404.html‎

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width,initial-scale=1">
6+
<meta name="description" content="Page not found - Droidspaces">
7+
<title>404 - Droidspaces</title>
8+
<meta property="og:title" content="404 - Droidspaces">
9+
<meta property="og:description" content="Page not found">
10+
<meta property="og:url" content="https://www.droidspaces.org/404.html">
11+
<meta property="og:type" content="website">
12+
<meta property="og:image" content="https://i.ibb.co/d4PLN7Gg/og-image.png">
13+
<meta name="twitter:card" content="summary_large_image">
14+
<meta name="twitter:title" content="404 - Droidspaces">
15+
<meta name="twitter:description" content="Page not found">
16+
<meta name="twitter:image" content="https://i.ibb.co/d4PLN7Gg/og-image.png">
17+
<link rel="canonical" href="https://www.droidspaces.org/404.html">
18+
<link rel="preconnect" href="https://fonts.googleapis.com">
19+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
20+
<link href="https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=DM+Sans:wght@300;400;500;600&display=swap" rel="stylesheet">
21+
<link rel="icon" href="/favicon.ico">
22+
<link rel="apple-touch-icon" href="/favicon.ico">
23+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css">
24+
<link rel="stylesheet" href="/style.css">
25+
<script>(function(){const t=localStorage.getItem('theme');if(t)document.documentElement.setAttribute('data-theme',t);})();</script>
26+
</head>
27+
<body>
28+
<nav aria-label="Main navigation">
29+
<div class="container" style="display:flex;align-items:center;justify-content:space-between;height:100%;">
30+
<a href="/" class="nav-logo">
31+
<svg class="logo-icon" viewBox="8.25 10.35 31.5 27.3" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
32+
<path d="M36.85 30.16H11.15c-0.82 0-1.48 0.68-1.48 1.52v3.05c0 0.84 0.66 1.52 1.48 1.52h25.69c0.82 0 1.48-0.68 1.48-1.52v-3.05c0-0.84-0.66-1.52-1.48-1.52ZM12.58 34.97c-0.95 0-1.73-0.79-1.73-1.77s0.77-1.77 1.73-1.77 1.73 0.79 1.73 1.77-0.77 1.77-1.73 1.77Z"/>
33+
<path d="M36.85 21.00H11.15c-0.82 0-1.48 0.68-1.48 1.52v3.05c0 0.84 0.66 1.52 1.48 1.52h25.69c0.82 0 1.48-0.68 1.48-1.52v-3.05c0-0.84-0.66-1.52-1.48-1.52ZM12.58 25.82c-0.95 0-1.73-0.79-1.73-1.77s0.77-1.77 1.73-1.77 1.73 0.79 1.73 1.77-0.77 1.77-1.73 1.77Z"/>
34+
<path d="M36.84 11.74H11.15c-0.82 0-1.48 0.68-1.48 1.52v3.05c0 0.84 0.66 1.52 1.48 1.52h25.69c0.82 0 1.48-0.68 1.48-1.52v-3.05c0-0.84-0.66-1.52-1.48-1.52ZM12.58 16.57c-0.95 0-1.73-0.79-1.73-1.77s0.77-1.77 1.73-1.77 1.73 0.79 1.73 1.77-0.77 1.77-1.73 1.77Z"/>
35+
</svg>
36+
<span class="logo-text">Droidspaces</span>
37+
</a>
38+
<div style="display:flex;align-items:center;gap:0.5rem;">
39+
<ul class="nav-links">
40+
<li class="nav-features"><a href="/#features">Features</a></li>
41+
<li><a href="/docs/" ><i class="fas fa-book nav-icon nav-icon-docs"></i><span class="nav-label">Documentation</span></a></li>
42+
<li class="nav-downloads"><a href="/downloads.html"><i class="fas fa-download nav-icon nav-icon-docs"></i><span class="nav-label">Downloads</span></a></li>
43+
<li><a href="https://github.com/ravindu644/Droidspaces-OSS" rel="noopener noreferrer"><i class="fab fa-github nav-icon"></i><span class="nav-label nav-label-gt">GitHub</span></a></li>
44+
<li><a href="https://t.me/Droidspaces" rel="noopener noreferrer"><i class="fab fa-telegram nav-icon"></i><span class="nav-label nav-label-gt">Telegram</span></a></li>
45+
</ul>
46+
<button class="theme-toggle" id="theme-toggle" title="Toggle theme">
47+
<svg class="sun-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" style="display:none">
48+
<circle cx="12" cy="12" r="5"></circle>
49+
<line x1="12" y1="1" x2="12" y2="3"></line>
50+
<line x1="12" y1="21" x2="12" y2="23"></line>
51+
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
52+
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
53+
<line x1="1" y1="12" x2="3" y2="12"></line>
54+
<line x1="21" y1="12" x2="23" y2="12"></line>
55+
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
56+
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
57+
</svg>
58+
<svg class="moon-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
59+
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>
60+
</svg>
61+
</button>
62+
</div>
63+
</div>
64+
</nav>
65+
66+
<main style="display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:calc(100vh - 56px - 80px);padding:2rem;text-align:center">
67+
<h1 style="font-size:4rem;font-family:var(--mono);color:var(--muted);margin-bottom:0.5rem">404</h1>
68+
<p style="color:var(--muted);font-size:1rem;margin-bottom:2rem;max-width:400px">The page you're looking for doesn't exist.</p>
69+
<div style="display:flex;gap:0.75rem;flex-wrap:wrap;justify-content:center">
70+
<a href="/" class="btn btn-primary">Go Home</a>
71+
<a href="/docs/" class="btn btn-ghost">Browse Docs</a>
72+
</div>
73+
</main>
74+
<footer>
75+
<p>&copy; 2026 Droidspaces &nbsp;·&nbsp; <a href="https://github.com/ravindu644/Droidspaces-OSS/blob/main/LICENSE" rel="noopener noreferrer">GPLv3</a> &nbsp;·&nbsp; by <a href="https://github.com/ravindu644" rel="noopener noreferrer">ravindu644</a> and <a href="https://github.com/ravindu644/Droidspaces-OSS/graphs/contributors" rel="noopener noreferrer">contributors</a>
76+
</p>
77+
</footer>
78+
</body>
79+
</html>

‎SOURCE_WORKFLOW_REFERENCE.yml‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Place this file in your SOURCE repo at:
2+
# .github/workflows/docs-updated.yml
3+
#
4+
# Replace USERNAME/REPO with the actual source repo path.
5+
# The WEB_REPO_PAT must be a classic PAT with `repo` scope,
6+
# stored as a secret in the source repo's Settings → Secrets → Actions.
7+
8+
on:
9+
push:
10+
branches: [main]
11+
paths:
12+
- 'docs/content/**'
13+
- 'mkdocs.yml' # optional — trigger on config changes too
14+
15+
jobs:
16+
dispatch:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/github-script@v7
20+
with:
21+
github-token: ${{ secrets.WEB_REPO_PAT }}
22+
script: |
23+
await github.rest.repos.createDispatchEvent({
24+
owner: 'droidspaces',
25+
repo: 'droidspaces.github.io',
26+
event_type: 'docs-updated',
27+
client_payload: {
28+
ref: context.ref,
29+
sha: context.sha
30+
}
31+
});

‎_footer.html‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
&copy; 2026 Droidspaces &nbsp;·&nbsp; <a href="https://github.com/ravindu644/Droidspaces-OSS/blob/main/LICENSE" rel="noopener noreferrer">GPLv3</a> &nbsp;·&nbsp; by <a href="https://github.com/ravindu644" rel="noopener noreferrer">ravindu644</a> and <a href="https://github.com/ravindu644/Droidspaces-OSS/graphs/contributors" rel="noopener noreferrer">contributors</a>

‎_nav.html‎

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<nav aria-label="Main navigation">
2+
<div class="container" style="display:flex;align-items:center;justify-content:space-between;height:100%;">
3+
<a href="/" class="nav-logo">
4+
<svg class="logo-icon" viewBox="8.25 10.35 31.5 27.3" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
5+
<path d="M36.85 30.16H11.15c-0.82 0-1.48 0.68-1.48 1.52v3.05c0 0.84 0.66 1.52 1.48 1.52h25.69c0.82 0 1.48-0.68 1.48-1.52v-3.05c0-0.84-0.66-1.52-1.48-1.52ZM12.58 34.97c-0.95 0-1.73-0.79-1.73-1.77s0.77-1.77 1.73-1.77 1.73 0.79 1.73 1.77-0.77 1.77-1.73 1.77Z"/>
6+
<path d="M36.85 21.00H11.15c-0.82 0-1.48 0.68-1.48 1.52v3.05c0 0.84 0.66 1.52 1.48 1.52h25.69c0.82 0 1.48-0.68 1.48-1.52v-3.05c0-0.84-0.66-1.52-1.48-1.52ZM12.58 25.82c-0.95 0-1.73-0.79-1.73-1.77s0.77-1.77 1.73-1.77 1.73 0.79 1.73 1.77-0.77 1.77-1.73 1.77Z"/>
7+
<path d="M36.84 11.74H11.15c-0.82 0-1.48 0.68-1.48 1.52v3.05c0 0.84 0.66 1.52 1.48 1.52h25.69c0.82 0 1.48-0.68 1.48-1.52v-3.05c0-0.84-0.66-1.52-1.48-1.52ZM12.58 16.57c-0.95 0-1.73-0.79-1.73-1.77s0.77-1.77 1.73-1.77 1.73 0.79 1.73 1.77-0.77 1.77-1.73 1.77Z"/>
8+
</svg>
9+
<span class="logo-text">Droidspaces</span>
10+
</a>
11+
<div style="display:flex;align-items:center;gap:0.5rem;">
12+
<ul class="nav-links">
13+
<li class="nav-features"><a href="{{FEATURES_HREF}}">Features</a></li>
14+
<li><a href="/docs/" {{DOCS_STYLE}}><i class="fas fa-book nav-icon nav-icon-docs"></i><span class="nav-label">Documentation</span></a></li>
15+
<li class="nav-downloads"><a href="/downloads.html"><i class="fas fa-download nav-icon nav-icon-docs"></i><span class="nav-label">Downloads</span></a></li>
16+
<li><a href="https://github.com/ravindu644/Droidspaces-OSS" rel="noopener noreferrer"><i class="fab fa-github nav-icon"></i><span class="nav-label nav-label-gt">GitHub</span></a></li>
17+
<li><a href="https://t.me/Droidspaces" rel="noopener noreferrer"><i class="fab fa-telegram nav-icon"></i><span class="nav-label nav-label-gt">Telegram</span></a></li>
18+
</ul>
19+
<button class="theme-toggle" id="theme-toggle" title="Toggle theme">
20+
<svg class="sun-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" style="display:none">
21+
<circle cx="12" cy="12" r="5"></circle>
22+
<line x1="12" y1="1" x2="12" y2="3"></line>
23+
<line x1="12" y1="21" x2="12" y2="23"></line>
24+
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
25+
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
26+
<line x1="1" y1="12" x2="3" y2="12"></line>
27+
<line x1="21" y1="12" x2="23" y2="12"></line>
28+
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
29+
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
30+
</svg>
31+
<svg class="moon-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
32+
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>
33+
</svg>
34+
</button>
35+
</div>
36+
</div>
37+
</nav>

‎assets/images/og-image.png‎

204 KB
Loading

0 commit comments

Comments
 (0)