egoist / egoist/docup

Support spa route.

Open
#202 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
701
Forks
27
PR merge metrics
No merged PRs in 30d

Description

GitHub Pages doesn't support `rewrites` like something in vercel
```json
{
"rewrites": [
{
"source": "/(.*)",
"destination": "/index.html"
}
]
}
```

Maybe docup can support spa route?
It means for the following config:

```js
{
text: "中文",
link: "zh",
}
```

Docup will fetch `zh.md` directly instead of jump to `/zh`

Contributor guide

Open the contributing guide

Research direction

Start by tracing how the configured link `{ text: "中文", link: "zh" }` is handled and how document routes are resolved. Check the existing navigation and document-loading tests, if present. Done means the `zh` link fetches `zh.md` directly instead of navigating to `/zh`, without breaking existing routes.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.