Skip to content

Commit ea84c25

Browse files
author
codefl0w
committed
Docusaurus support
1 parent dbc40ea commit ea84c25

12 files changed

Lines changed: 18660 additions & 17 deletions

File tree

.github/workflows/pages.yml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: Build and deploy Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: pages
16+
cancel-in-progress: true
17+
18+
jobs:
19+
build:
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v4
25+
26+
- name: Setup Pages
27+
uses: actions/configure-pages@v5
28+
29+
- name: Setup Ruby
30+
uses: ruby/setup-ruby@v1
31+
with:
32+
ruby-version: "3.3"
33+
bundler-cache: true
34+
35+
- name: Build Jekyll site
36+
run: bundle exec jekyll build --destination _site
37+
38+
- name: Setup Node
39+
uses: actions/setup-node@v4
40+
with:
41+
node-version: "20"
42+
cache: npm
43+
44+
- name: Install docs dependencies
45+
run: npm ci
46+
47+
- name: Build Docusaurus docs
48+
run: npm run build
49+
50+
- name: Merge docs into Pages artifact
51+
shell: bash
52+
run: |
53+
rm -rf _site/docs
54+
mkdir -p _site/docs
55+
cp -R build/. _site/docs/
56+
57+
- name: Upload Pages artifact
58+
uses: actions/upload-pages-artifact@v3
59+
with:
60+
path: _site
61+
62+
deploy:
63+
needs: build
64+
runs-on: ubuntu-latest
65+
environment:
66+
name: github-pages
67+
url: ${{ steps.deployment.outputs.page_url }}
68+
69+
steps:
70+
- name: Deploy to GitHub Pages
71+
id: deployment
72+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ _site/
88
# Ignore folders generated by Bundler
99
.bundle/
1010
vendor/
11+
node_modules/
12+
.docusaurus/
13+
build/

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# fl0w's Archive
22

3-
Personal portfolio / archive consisting of guides, tools, flashables and more. Mainly focused on Android.
3+
Personal portfolio / archive consisting of docs, tools, flashables and more. Mainly focused on Android.

_config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,8 @@ url: "https://codefl0w.xyz"
44
baseurl: ""
55
author: "fl0w"
66
image: "/assets/img/site/favicon.ico"
7+
exclude:
8+
- docs
9+
- node_modules
10+
- .docusaurus
11+
- build

archive/docs/index.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
layout: default
3+
title: Docs
4+
description: "Step-by-step Android notes, tutorials, and troubleshooting docs from fl0w."
5+
---
6+
7+
<p>This page will contain useful resources related to docs.</p>

archive/guides/index.md

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

archive/index.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
---
22
layout: default
33
title: fl0w's Archive
4-
description: "Central archive of Android tooling, guides, projects, downloads, and web utilities by fl0w."
4+
description: "Central archive of Android tooling, docs, projects, downloads, and web utilities by fl0w."
55
---
66

77
<!-- Row 1 -->
88
<div class="dashboard">
99
<a class="card" href="/archive/android-tools">
10-
<h2>🔧 Android Tools</h2>
10+
<h2>Android Tools</h2>
1111
<p>Scripts, tools, and tricks for Android hacking.</p>
1212
</a>
13-
<a class="card" href="/archive/guides">
14-
<h2>📘 Guides</h2>
15-
<p>Notes, tutorials, and step-by-step guides.</p>
13+
<a class="card" href="/archive/docs">
14+
<h2>Docs</h2>
15+
<p>Notes, tutorials, and step-by-step docs.</p>
1616
</a>
1717
<a class="card" href="/archive/projects">
18-
<h2>📂 Projects</h2>
18+
<h2>Projects</h2>
1919
<p>My personal software and dev experiments.</p>
2020
</a>
2121
<a class="card" href="/archive/downloads">
22-
<h2>📌 Downloads</h2>
22+
<h2>Downloads</h2>
2323
<p>Tool dumps, flashables, and firmware images.</p>
2424
</a>
2525
</div>
2626

2727
<!-- Row 2 -->
2828
<div class="dashboard">
2929
<a class="card" href="/archive/web-tools">
30-
<h2>🌐 Web Tools</h2>
30+
<h2>Web Tools</h2>
3131
<p>Web tools to handle simple tasks.</p>
32-
</a>
32+
</a>
3333
</div>

docs/intro.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
sidebar_position: 1
3+
title: Intro
4+
slug: /
5+
---
6+
7+
# fl0w Docs
8+
9+
This directory is prepared for Docusaurus-based documentation.
10+
11+
Use it for Android notes, chipset research, tooling docs, and longer-form technical writeups.
12+
13+
The current Jekyll archive docs page remains available at `/archive/docs`.

docusaurus.config.js

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
const config = {
2+
title: "fl0w Docs",
3+
tagline: "Android notes, docs, and documentation",
4+
favicon: "assets/img/site/favicon.ico",
5+
url: "https://codefl0w.xyz",
6+
baseUrl: "/docs/",
7+
organizationName: "codefl0w",
8+
projectName: "codefl0w.github.io",
9+
onBrokenLinks: "warn",
10+
markdown: {
11+
hooks: {
12+
onBrokenMarkdownLinks: "warn"
13+
}
14+
},
15+
i18n: {
16+
defaultLocale: "en",
17+
locales: ["en"]
18+
},
19+
presets: [
20+
[
21+
"classic",
22+
{
23+
docs: {
24+
path: "docs",
25+
routeBasePath: "/",
26+
sidebarPath: require.resolve("./sidebars.js")
27+
},
28+
blog: false,
29+
theme: {
30+
customCss: require.resolve("./assets/css/style.css")
31+
}
32+
}
33+
]
34+
],
35+
themeConfig: {
36+
navbar: {
37+
title: "fl0w Docs",
38+
items: [
39+
{
40+
to: "/",
41+
label: "Docs",
42+
position: "left"
43+
},
44+
{
45+
href: "https://codefl0w.xyz/archive/docs",
46+
label: "Archive Docs",
47+
position: "left"
48+
},
49+
{
50+
href: "https://github.com/codefl0w",
51+
label: "GitHub",
52+
position: "right"
53+
}
54+
]
55+
},
56+
footer: {
57+
style: "dark",
58+
links: [
59+
{
60+
title: "Docs",
61+
items: [
62+
{
63+
label: "Intro",
64+
to: "/"
65+
}
66+
]
67+
},
68+
{
69+
title: "More",
70+
items: [
71+
{
72+
label: "Archive",
73+
href: "https://codefl0w.xyz/archive"
74+
}
75+
]
76+
}
77+
],
78+
copyright: `Copyright ${new Date().getFullYear()} fl0w`
79+
}
80+
}
81+
};
82+
83+
module.exports = config;

0 commit comments

Comments
 (0)