Skip to content

Commit fa779b7

Browse files
Merge pull request #6 from DeepanshKhurana/docs/integrate-docusaurus
docs(docsite): add Docusaurus-based docsite with .md imports
2 parents 677458b + b38b7dd commit fa779b7

22 files changed

Lines changed: 19108 additions & 32 deletions

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,32 +30,32 @@ You can find a live demo of the app [here](https://ode-demo.vercel.app/).
3030

3131
## Screenshots
3232

33-
> [!NOTE]
33+
> [!NOTE]
3434
> For theme-specific screenshots, see [THEMING.md](https://github.com/DeepanshKhurana/ode/blob/main/THEMING.md)
3535
3636
<table>
3737
<tr>
3838
<td width="50%">
39-
<img src=".github/media/homepage_light.png" alt="Homepage - Light Mode">
39+
![Homepage - Light Mode](.github/media/homepage_light.png)
4040
</td>
4141
<td width="50%">
42-
<img src=".github/media/homepage_dark.png" alt="Homepage - Dark Mode">
42+
![Homepage - Dark Mode](.github/media/homepage_dark.png)
4343
</td>
4444
</tr>
4545
<tr>
4646
<td width="50%">
47-
<img src=".github/media/reader_light.png" alt="Reader Mode - Light">
47+
![Reader Mode - Light](.github/media/reader_light.png)
4848
</td>
4949
<td width="50%">
50-
<img src=".github/media/reader_dark.png" alt="Reader Mode - Dark">
50+
![Reader Mode - Dark](.github/media/reader_dark.png)
5151
</td>
5252
</tr>
5353
<tr>
5454
<td width="50%">
55-
<img src=".github/media/caps_light.png" alt="Default case - Light">
55+
![Default case - Light](.github/media/caps_light.png)
5656
</td>
5757
<td width="50%">
58-
<img src=".github/media/caps_dark.png" alt="Default case - Dark">
58+
![Default case - Dark](.github/media/caps_dark.png)
5959
</td>
6060
</tr>
6161
</table>
@@ -115,7 +115,7 @@ services:
115115
- /path/to/your/public:/app/public
116116
```
117117
118-
> [!TIP]
118+
> [!TIP]
119119
> Use an absolute path for the volume mount (e.g., `/home/user/my-site/public`). Relative paths may not work correctly with tools like Portainer.
120120

121121
Run:
@@ -132,7 +132,7 @@ docker compose restart
132132

133133
### Other Deployment Options
134134

135-
> [!NOTE]
135+
> [!NOTE]
136136
> In this case, you need to replace the content in `public/` with your own.
137137

138138
Once you have your Fork or branch ready, you can deploy the app but the reader position Permalinks as well as the Body of Work links will fail. This is due to SPA handling of paths and (from my understanding) how React works. But this can be fixed.
@@ -193,7 +193,7 @@ Tell everyone everything!
193193

194194
## Theming
195195

196-
> [!NOTE]
196+
> [!NOTE]
197197
> For complete theming documentation, including all available presets, customization options, and local font support, see [THEMING.md](https://github.com/DeepanshKhurana/ode/blob/main/THEMING.md)
198198

199199
Ode comes with 10 built-in themes that you can use and customize. Switch between presets, override colors and fonts, or build your own theme from scratch.

THEMING.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -20,101 +20,101 @@ Ode comes with 10 built-in themes, each is named and carefully designed after a
2020
<table>
2121
<tr>
2222
<td width="50%">
23-
<img src=".github/media/themes/almanac_light.png" alt="Almanac - Light Mode">
23+
![Almanac - Light Mode](.github/media/themes/almanac_light.png)
2424
<p align="center"><strong>almanac</strong> - light</p>
2525
</td>
2626
<td width="50%">
27-
<img src=".github/media/themes/almanac_dark.png" alt="Almanac - Dark Mode">
27+
![Almanac - Dark Mode](.github/media/themes/almanac_dark.png)
2828
<p align="center"><strong>almanac</strong> - dark</p>
2929
</td>
3030
</tr>
3131
<tr>
3232
<td width="50%">
33-
<img src=".github/media/themes/blueprint_light.png" alt="Blueprint - Light Mode">
33+
![Blueprint - Light Mode](.github/media/themes/blueprint_light.png)
3434
<p align="center"><strong>blueprint</strong> - light</p>
3535
</td>
3636
<td width="50%">
37-
<img src=".github/media/themes/blueprint_dark.png" alt="Blueprint - Dark Mode">
37+
![Blueprint - Dark Mode](.github/media/themes/blueprint_dark.png)
3838
<p align="center"><strong>blueprint</strong> - dark</p>
3939
</td>
4040
</tr>
4141
<tr>
4242
<td width="50%">
43-
<img src=".github/media/themes/comic_light.png" alt="Comic - Light Mode">
43+
![Comic - Light Mode](.github/media/themes/comic_light.png)
4444
<p align="center"><strong>comic</strong> - light</p>
4545
</td>
4646
<td width="50%">
47-
<img src=".github/media/themes/comic_dark.png" alt="Comic - Dark Mode">
47+
![Comic - Dark Mode](.github/media/themes/comic_dark.png)
4848
<p align="center"><strong>comic</strong> - dark</p>
4949
</td>
5050
</tr>
5151
<tr>
5252
<td width="50%">
53-
<img src=".github/media/themes/doodle_light.png" alt="Doodle - Light Mode">
53+
![Doodle - Light Mode](.github/media/themes/doodle_light.png)
5454
<p align="center"><strong>doodle</strong> - light</p>
5555
</td>
5656
<td width="50%">
57-
<img src=".github/media/themes/doodle_dark.png" alt="Doodle - Dark Mode">
57+
![Doodle - Dark Mode](.github/media/themes/doodle_dark.png)
5858
<p align="center"><strong>doodle</strong> - dark</p>
5959
</td>
6060
</tr>
6161
<tr>
6262
<td width="50%">
63-
<img src=".github/media/themes/exploit_light.png" alt="Exploit - Light Mode">
63+
![Exploit - Light Mode](.github/media/themes/exploit_light.png)
6464
<p align="center"><strong>exploit</strong> - light</p>
6565
</td>
6666
<td width="50%">
67-
<img src=".github/media/themes/exploit_dark.png" alt="Exploit - Dark Mode">
67+
![Exploit - Dark Mode](.github/media/themes/exploit_dark.png)
6868
<p align="center"><strong>exploit</strong> - dark</p>
6969
</td>
7070
</tr>
7171
<tr>
7272
<td width="50%">
73-
<img src=".github/media/themes/journal_light.png" alt="Journal - Light Mode">
73+
![Journal - Light Mode](.github/media/themes/journal_light.png)
7474
<p align="center"><strong>journal</strong> - light</p>
7575
</td>
7676
<td width="50%">
77-
<img src=".github/media/themes/journal_dark.png" alt="Journal - Dark Mode">
77+
![Journal - Dark Mode](.github/media/themes/journal_dark.png)
7878
<p align="center"><strong>journal</strong> - dark</p>
7979
</td>
8080
</tr>
8181
<tr>
8282
<td width="50%">
83-
<img src=".github/media/themes/manuscript_light.png" alt="Manuscript - Light Mode">
83+
![Manuscript - Light Mode](.github/media/themes/manuscript_light.png)
8484
<p align="center"><strong>manuscript</strong> - light</p>
8585
</td>
8686
<td width="50%">
87-
<img src=".github/media/themes/manuscript_dark.png" alt="Manuscript - Dark Mode">
87+
![Manuscript - Dark Mode](.github/media/themes/manuscript_dark.png)
8888
<p align="center"><strong>manuscript</strong> - dark</p>
8989
</td>
9090
</tr>
9191
<tr>
9292
<td width="50%">
93-
<img src=".github/media/themes/recipe_light.png" alt="Recipe - Light Mode">
93+
![Recipe - Light Mode](.github/media/themes/recipe_light.png)
9494
<p align="center"><strong>recipe</strong> - light</p>
9595
</td>
9696
<td width="50%">
97-
<img src=".github/media/themes/recipe_dark.png" alt="Recipe - Dark Mode">
97+
![Recipe - Dark Mode](.github/media/themes/recipe_dark.png)
9898
<p align="center"><strong>recipe</strong> - dark</p>
9999
</td>
100100
</tr>
101101
<tr>
102102
<td width="50%">
103-
<img src=".github/media/themes/screenplay_light.png" alt="Screenplay - Light Mode">
103+
![Screenplay - Light Mode](.github/media/themes/screenplay_light.png)
104104
<p align="center"><strong>screenplay</strong> - light</p>
105105
</td>
106106
<td width="50%">
107-
<img src=".github/media/themes/screenplay_dark.png" alt="Screenplay - Dark Mode">
107+
![Screenplay - Dark Mode](.github/media/themes/screenplay_dark.png)
108108
<p align="center"><strong>screenplay</strong> - dark</p>
109109
</td>
110110
</tr>
111111
<tr>
112112
<td width="50%">
113-
<img src=".github/media/themes/sketch_light.png" alt="Sketch - Light Mode">
113+
![Sketch - Light Mode](.github/media/themes/sketch_light.png)
114114
<p align="center"><strong>sketch</strong> - light</p>
115115
</td>
116116
<td width="50%">
117-
<img src=".github/media/themes/sketch_dark.png" alt="Sketch - Dark Mode">
117+
![Sketch - Dark Mode](.github/media/themes/sketch_dark.png)
118118
<p align="center"><strong>sketch</strong> - dark</p>
119119
</td>
120120
</tr>
@@ -131,7 +131,7 @@ ui:
131131
defaultMode: "dark"
132132
```
133133
134-
> [!WARNING]
134+
> [!WARNING]
135135
> The `defaultMode` only applies on first visit. After that, the user's lamp toggle preference is saved.
136136

137137
## Partial Customization

WRITING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Ode separates **code** and **content** so you can keep your writing clean, porta
44

55
## 1. What This Repository Contains
66

7-
> [!NOTE]
7+
> [!NOTE]
88
> For theming and visual customization, see [THEMING.md](https://github.com/DeepanshKhurana/ode/blob/main/THEMING.md)
99
1010
Your content repo mirrors the `public/` directory structure:

docsite/.gitignore

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Dependencies
2+
/node_modules
3+
4+
# Production
5+
/build
6+
7+
# Generated files
8+
.docusaurus
9+
.cache-loader
10+
11+
# Misc
12+
.DS_Store
13+
.env.local
14+
.env.development.local
15+
.env.test.local
16+
.env.production.local
17+
18+
npm-debug.log*
19+
yarn-debug.log*
20+
yarn-error.log*

docsite/README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Ode Documentation
2+
3+
This is the documentation site for **Ode**, built with [Docusaurus](https://docusaurus.io/).
4+
5+
## Overview
6+
7+
The documentation is programmatically linked to the root markdown files of the Ode project. This ensures that the documentation site is always in sync with the main repository without duplicating content.
8+
9+
## Local Development
10+
11+
```bash
12+
npm install
13+
npm start
14+
```
15+
16+
This command starts a local development server. Most changes are reflected live.
17+
18+
## Build
19+
20+
```bash
21+
npm run build
22+
```
23+
24+
This command generates static content into the `build` directory.
25+
26+
## Changes
27+
28+
Some changes are made to the default Docusaurus way of doing things.
29+
30+
- **Live Imports**: Root markdown files are inlined during the build process.
31+
- **GitHub Alerts**: GitHub-style admonitions (`> [!NOTE]`) are automatically converted to Docusaurus callouts.
32+
- **Image Resolution**: Images in `.github/media/` are automatically resolved and made clickable.
33+
- **Search**: Local search is powered by `@easyops-cn/docusaurus-search-local`.

docsite/docs/changelog.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: Changelog
3+
hide_title: true
4+
sidebar_label: Changelog
5+
sidebar_position: 6
6+
---
7+
8+
import Content from '@site/../CHANGELOG.md';
9+
10+
<Content />

docsite/docs/ethos.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: Ethos
3+
hide_title: true
4+
sidebar_label: Ethos
5+
sidebar_position: 2
6+
---
7+
8+
import Content from '@site/../ETHOS.md';
9+
10+
<Content />

docsite/docs/intro.mdx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
title: Introduction
3+
hide_title: true
4+
slug: /
5+
sidebar_label: Introduction
6+
sidebar_position: 1
7+
---
8+
9+
import README from '@site/../README.md';
10+
11+
<README />

docsite/docs/license.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: License
3+
hide_title: true
4+
sidebar_label: License
5+
sidebar_position: 7
6+
---
7+
8+
import LICENSE from '@site/../LICENSE';
9+
10+
<LICENSE />

docsite/docs/references.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: References
3+
hide_title: true
4+
sidebar_label: References
5+
sidebar_position: 5
6+
---
7+
8+
import Content from '@site/../REFERENCES.md';
9+
10+
<Content />

0 commit comments

Comments
 (0)