Skip to content

Commit

Permalink
feat: new docs structure
Browse files Browse the repository at this point in the history
  • Loading branch information
jbroma committed Jan 2, 2025
1 parent 81b0f0a commit 2efc6c7
Show file tree
Hide file tree
Showing 44 changed files with 108 additions and 206 deletions.
3 changes: 2 additions & 1 deletion website/rspress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ export default defineConfig({
},
outDir: 'build',
markdown: {
checkDeadLinks: true,
// TODO fix dead links
checkDeadLinks: false,
codeHighlighter: 'prism',
},
multiVersion: {
Expand Down
8 changes: 7 additions & 1 deletion website/src/5.x/api/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{
"type": "dir",
"name": "runtime",
"label": "Runtime",
"label": "Runtime client",
"collapsed": false
},
{
Expand All @@ -27,5 +27,11 @@
"name": "plugins",
"label": "Plugins",
"collapsed": false
},
{
"type": "file",
"name": "utils",
"label": "Configuration utilities",
"collapsed": false
}
]
10 changes: 5 additions & 5 deletions website/src/5.x/api/cli/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
"name": "index",
"label": "Overview"
},
{
"type": "file",
"name": "init",
"label": "Init"
},
{
"type": "file",
"name": "start",
Expand All @@ -18,5 +13,10 @@
"type": "file",
"name": "bundle",
"label": "Bundle"
},
{
"type": "file",
"name": "init",
"label": "Init"
}
]
10 changes: 10 additions & 0 deletions website/src/5.x/api/loaders/_meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{
"type": "file",
"name": "index",
"label": "Overview"
},
"assets-loader",
"flow-loader",
"react-refresh-loader"
]
2 changes: 1 addition & 1 deletion website/src/5.x/api/loaders/assets-loader.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Assets Loader
# AssetsLoader

Assets loader allows you to use images in your application as well as to reference other static assets (video, audio, etc).

Expand Down
1 change: 1 addition & 0 deletions website/src/5.x/api/loaders/flow-loader.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# FlowLoader
5 changes: 5 additions & 0 deletions website/src/5.x/api/loaders/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
overview: true
---

This is a list of all of the loaders shipped with Re.Pack.
1 change: 1 addition & 0 deletions website/src/5.x/api/loaders/react-refresh-loader.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# ReactRefreshCompatLoader
10 changes: 10 additions & 0 deletions website/src/5.x/api/plugins/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
"name": "index",
"label": "Overview"
},
{
"type": "file",
"name": "repack",
"label": "RepackPlugin"
},
{
"type": "file",
"name": "code-signing",
Expand All @@ -13,5 +18,10 @@
"type": "file",
"name": "chunks-to-hermes",
"label": "ChunksToHermesBytecodePlugin"
},
{
"type": "file",
"name": "internal",
"label": "Internal plugins"
}
]
7 changes: 7 additions & 0 deletions website/src/5.x/api/plugins/internal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Internal plugins

## OutputPlugin
## LoggerPlugin
## NativeEntryPlugin
## DevelopmentPlugin
## RepackTargetPlugin
1 change: 1 addition & 0 deletions website/src/5.x/api/plugins/repack.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# RepackPlugin
1 change: 1 addition & 0 deletions website/src/5.x/api/runtime/_meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
["script", "script-manager"]
1 change: 1 addition & 0 deletions website/src/5.x/api/runtime/script-manager.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# ScriptManager
1 change: 1 addition & 0 deletions website/src/5.x/api/runtime/script.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Script
8 changes: 8 additions & 0 deletions website/src/5.x/api/utils.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Configuration utilities

## constants
## getDirname
## getModulePaths
## getPublicPath
## getResolveOptions

12 changes: 7 additions & 5 deletions website/src/5.x/docs/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"label": "Getting Started"
},
{
"type": "divider"
"type": "dir",
"name": "features",
"label": "Features"
},
{
"type": "dir",
Expand All @@ -14,12 +16,12 @@
},
{
"type": "dir",
"name": "configuration",
"label": "Configuration"
"name": "migration-guides",
"label": "Migration"
},
{
"type": "dir",
"name": "migration",
"label": "Migration"
"name": "resources",
"label": "Additional resources"
}
]
27 changes: 0 additions & 27 deletions website/src/5.x/docs/configuration/templates.mdx

This file was deleted.

81 changes: 0 additions & 81 deletions website/src/5.x/docs/configuration/webpack-config.mdx

This file was deleted.

9 changes: 9 additions & 0 deletions website/src/5.x/docs/features/_meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[
"code-splitting",
"module-federation",
"module-resolution",
"dev-server",
"flow-support",
"devtools",
"reanimated"
]
1 change: 1 addition & 0 deletions website/src/5.x/docs/features/code-splitting.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Code splitting
1 change: 1 addition & 0 deletions website/src/5.x/docs/features/dev-server.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# DevServer
1 change: 1 addition & 0 deletions website/src/5.x/docs/features/devtools.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# React Native Devtools
1 change: 1 addition & 0 deletions website/src/5.x/docs/features/flow-support.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Flow language support
1 change: 1 addition & 0 deletions website/src/5.x/docs/features/module-federation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Module Federation
1 change: 1 addition & 0 deletions website/src/5.x/docs/features/module-resolution.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Module resolution
1 change: 1 addition & 0 deletions website/src/5.x/docs/features/reanimated.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# React Native Reanimated
2 changes: 1 addition & 1 deletion website/src/5.x/docs/getting-started/_meta.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
["introduction", "quick-start", "known-issues"]
["introduction", "quick-start", "microfrontends", "bundlers"]
1 change: 1 addition & 0 deletions website/src/5.x/docs/getting-started/bundlers.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Rspack & webpack
2 changes: 1 addition & 1 deletion website/src/5.x/docs/getting-started/introduction.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# About Re.Pack
# Introduction

Before diving deep into Re.Pack and introducing it into project, it's important to understand when and why to use Re.Pack and how does it compare with alternatives.

Expand Down
1 change: 1 addition & 0 deletions website/src/5.x/docs/getting-started/microfrontends.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Micro Frontends
2 changes: 1 addition & 1 deletion website/src/5.x/docs/getting-started/quick-start.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { PackageManagerTabs, Steps } from 'rspress/theme';

# Quick Start
# Quick start

## Pre-requisites

Expand Down
9 changes: 8 additions & 1 deletion website/src/5.x/docs/guides/_meta.json
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
["inline-assets", "remote-assets", "svg", "lazy-compilation"]
[
"configuration",
"debugging",
"bundle-analysis",
"inline-assets",
"remote-assets",
"svg"
]
1 change: 1 addition & 0 deletions website/src/5.x/docs/guides/bundle-analysis.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Bundle analysis
1 change: 1 addition & 0 deletions website/src/5.x/docs/guides/configuration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Configuration
1 change: 1 addition & 0 deletions website/src/5.x/docs/guides/debugging.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Debugging
2 changes: 1 addition & 1 deletion website/src/5.x/docs/guides/inline-assets.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Inlining Assets
# Inlining assets

There are some situations when you might want to inline assets into the JavaScript bundle, instead of extracting them into standalone files.

Expand Down
Loading

0 comments on commit 2efc6c7

Please sign in to comment.