Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
da744a5
feat: blog implementation, components and migration
oxlumi Aug 20, 2025
108f6eb
fix: make the blog responsive and improve blog author pages
oxlumi Aug 20, 2025
17d5e63
fix: pnpm lock
oxlumi Aug 20, 2025
44d001b
fix: collateral spelling
oxlumi Aug 20, 2025
74f2bde
fix: add descriptive alt text to images in RIP, Oracles
oxlumi Aug 20, 2025
89784de
fix: syntax of bold text
oxlumi Aug 20, 2025
0634f84
fix: grammar and rephrasing
oxlumi Aug 20, 2025
26a2207
fix: typo in article
oxlumi Aug 20, 2025
bfeaf8e
fix: time syntax
oxlumi Aug 20, 2025
0ade51c
fix: typos, formatting and minor fixes
oxlumi Aug 20, 2025
0819593
fix: semantic heading levels
oxlumi Aug 20, 2025
549665a
fix: make index in blogpostitem cleaner
oxlumi Aug 20, 2025
13b4fa1
fix: make index in blogpostitem cleaner
oxlumi Aug 20, 2025
a0a8d1f
fix: date rendering
oxlumi Aug 21, 2025
486a687
fix: style in code blocks and lists
oxlumi Aug 21, 2025
b496668
docs: readme with how to add a new blog description
oxlumi Aug 21, 2025
8f2efb2
fix: copy base script from dev branch
oxlumi Aug 21, 2025
c59f7c9
fix: show all authors of a blog post
oxlumi Aug 21, 2025
085e310
fix: adjust blog post width and remove table of contents
oxlumi Aug 27, 2025
d173d18
fix: reset scroll position when navigating the blog (#80)
0xShishigami Aug 27, 2025
09b6393
fix: blog styling
oxlumi Aug 28, 2025
04bb252
fix: blog card size on mobile
oxlumi Aug 29, 2025
98bab2a
fix: size on desktop
oxlumi Aug 29, 2025
a637e79
chore: authors syncing from website with gh actions
oxlumi Sep 15, 2025
5de2e42
chore(img): lossless compress allo-explained/allo.png with oxipng -o3…
oxlumi Sep 15, 2025
37e3781
Merge branch 'dev' into feat/blog
oxlumi Sep 15, 2025
e1675b0
fix: local.css conflict
oxlumi Sep 15, 2025
869df55
fix: workflows
oxlumi Sep 15, 2025
e7b6464
fix: fix workflow yaml quoting
oxlumi Sep 15, 2025
8376fb3
fix: use corepack to install pnpm
oxlumi Sep 15, 2025
301363c
fix: install pnpm globally before use
oxlumi Sep 15, 2025
e8d61ed
chore: setup pnpm via action before setup-node cache
oxlumi Sep 15, 2025
75d3459
fix: only commit tracked authors.yml; robust change detection
oxlumi Sep 15, 2025
f9c5919
chore: replace CI script with build process and enhance scroll reset …
th0rOdinson Sep 15, 2025
51b7734
fix: image path in oracle manipulation article
oxlumi Sep 15, 2025
83de452
fix: compress images
oxlumi Sep 15, 2025
d57048d
fix: page per author
oxlumi Sep 15, 2025
b582661
chore: compress images
oxlumi Sep 15, 2025
8afafff
feat: wip blog post to see if fellow animals like it
0xteddybear Sep 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/test-scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ jobs:
- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Run tests
- name: Run scripts tests
working-directory: scripts
run: pnpm test

- name: Run wonderland tests
working-directory: sites/wonderland
run: pnpm test
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ From the root of the monorepo:
```bash
pnpm install # Install all dependencies across packages/sites
pnpm --filter [name]-handbook build:assets # Build common files, and copy them into the specific site
pnpm --filter [name]-handbook start # Start the site locally
pnpm --filter [name]-handbook start # Start the site locally
```

**Example with the Wonderland handbook:**
Expand Down Expand Up @@ -65,16 +65,19 @@ pnpm create-handbook <site-name>
```

This will:

1. Create a new site in `sites/<site-name>` based on the template
2. Update the package.json with the correct site name
3. Set up all necessary configurations

**Example:**

```bash
pnpm create-handbook my-new-handbook
```

After creation, you can build and start the new site:

```bash
cd sites/my-new-handbook
pnpm build:assets
Expand Down
44 changes: 44 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,15 @@
"test:coverage": "jest --coverage",
"copy-static": "ts-node src/copyStaticTo.ts"
},
"dependencies": {
"js-yaml": "4.1.0",
"zod": "3.23.8"
},
"devDependencies": {
"@jest/globals": "29.7.0",
"@types/jest": "29.5.12",
"@types/node": "24.0.3",
"@types/js-yaml": "4.0.9",
"jest": "29.7.0",
"jest-environment-node": "29.7.0",
"ts-jest": "29.1.2",
Expand Down
2 changes: 1 addition & 1 deletion scripts/src/copyStaticTo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ try {
} catch (error) {
console.error(`❌ Failed to copy static assets: ${error}`);
process.exit(1);
}
}
3 changes: 2 additions & 1 deletion sites/wonderland/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# Static assets
/static/common/
/static/common/
blog/authors.yml
48 changes: 47 additions & 1 deletion sites/wonderland/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ The handbook is automatically deployed to Vercel when changes are pushed to the

## Contributing

### To the handbook:
1. Create a new branch for your changes
2. Make your changes in the `docs/` directory
3. If you add new folders or files, you must also update `sidebars.ts`:
Expand All @@ -57,4 +58,49 @@ The handbook is automatically deployed to Vercel when changes are pushed to the
4. Test locally using `pnpm --filter wonderland-handbook start`
5. Submit a pull request

If you have any ideas for improving the handbook, feel free to open an issue (check the templates!) to start a discussion!
If you have any ideas for improving the handbook, feel free to open an issue (check the templates!) to start a discussion!

### To the blog:

Add a new Markdown/MDX file under `sites/wonderland/blog/`.

- Frontmatter (at the top of the file):
```md
---
title: Your post title
description: One-sentence summary shown in previews
authors:
- key: lumi # must exist in `blog/authors.yml`
date: 2024-11-06 # ISO date; time optional
image: /img/blog/slug/cover.png # social/OG image
tags: [topic1, topic2] # optional
---
```
- For multiple authors, use an array of `{ key }` objects. Example: `[{ key: lumi }, { key: shishigami }]`.
- Author profiles live in `sites/wonderland/blog/authors.yml` (keys must match).

- Images:
- Put post-specific images under `sites/wonderland/static/img/blog-posts-img/<slug>/`.
- Reference them with absolute paths: `/img/blog-posts-img/<slug>/image.png`.
- Recommended: a `cover.png` (1200×630) for social sharing via the `image` frontmatter.

- Naming:
- Prefer date-prefixed filenames to keep chronology: `YYYY-MM-DD-<slug>.md(x)`.
- The `<slug>` will become your URL segment. Keep it short, lowercase, and hyphenated.

- Content tips:
- Use standard Markdown. Code blocks get Prism syntax highlighting (e.g. solidity, ts).
- Headings create the right-hand table of contents automatically.
- For math, LaTeX is supported via remark-math/rehype-katex.

- Local preview:
```bash
pnpm --filter wonderland-handbook start
```

- PR checklist:
- Nice to have: in your PR description, add a small thread about your article to share on Wonderland's twitter 🤍 Remember to include a small description about yourself. Reference [here](https://x.com/DeFi_Wonderland/status/1958612299859841473) and [here](https://x.com/DeFi_Wonderland/status/1958249234429575375).
- Frontmatter present and valid.
- Images placed in `static/img/blog-posts-img/<slug>/` and referenced with `/img/blog-posts-img/<slug>/...`.
- Links work and code blocks render.
- Authors exist in `blog/authors.yml` (or add them there).
12 changes: 0 additions & 12 deletions sites/wonderland/blog/2019-05-28-first-blog-post.md

This file was deleted.

44 changes: 0 additions & 44 deletions sites/wonderland/blog/2019-05-29-long-blog-post.md

This file was deleted.

24 changes: 0 additions & 24 deletions sites/wonderland/blog/2021-08-01-mdx-blog-post.mdx

This file was deleted.

Binary file not shown.
29 changes: 0 additions & 29 deletions sites/wonderland/blog/2021-08-26-welcome/index.md

This file was deleted.

Loading