@lexibase/create-rdx 1.0.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/index.js
CHANGED
|
@@ -113,6 +113,16 @@ async function main() {
|
|
|
113
113
|
})
|
|
114
114
|
await fs.ensureDir(path.join(targetDir, 'public'))
|
|
115
115
|
|
|
116
|
+
const configPath = path.join(targetDir, 'rdx.config.ts')
|
|
117
|
+
const config = await fs.readFile(configPath, 'utf8')
|
|
118
|
+
await fs.writeFile(
|
|
119
|
+
configPath,
|
|
120
|
+
config.replace(
|
|
121
|
+
'since: new Date().getFullYear(),',
|
|
122
|
+
`since: ${new Date().getFullYear()},`
|
|
123
|
+
)
|
|
124
|
+
)
|
|
125
|
+
|
|
116
126
|
const gitignoreTemplatePath = path.join(targetDir, 'gitignore.template')
|
|
117
127
|
await fs.move(gitignoreTemplatePath, path.join(targetDir, '.gitignore'), {
|
|
118
128
|
overwrite: true,
|
package/package.json
CHANGED
|
@@ -19,6 +19,12 @@ its internal runtime in `.rdx/`.
|
|
|
19
19
|
If installation failed during creation, keep these files, fix the reported error
|
|
20
20
|
and retry `pnpm install` (or `npm install` / `yarn install`) before starting.
|
|
21
21
|
|
|
22
|
+
## Updating RDX
|
|
23
|
+
|
|
24
|
+
Update the framework with `pnpm add @lexibase/rdx@latest` (or `npm install`
|
|
25
|
+
/ `yarn add` with the same package). Review release notes for migrations, restart
|
|
26
|
+
development, and rebuild production. Optional plugins are updated separately.
|
|
27
|
+
|
|
22
28
|
## Optional versioning
|
|
23
29
|
|
|
24
30
|
```bash
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import { defineConfig } from '@lexibase/rdx
|
|
1
|
+
import { defineConfig } from '@lexibase/rdx'
|
|
2
2
|
|
|
3
3
|
export default defineConfig({
|
|
4
4
|
description: 'Documentation built with RDX.',
|
|
5
|
-
// SEO and link previews.
|
|
5
|
+
// Site identity, SEO and link previews. '/' paths refer to files in public/.
|
|
6
6
|
metadata: {
|
|
7
7
|
// The single site name: browser titles, social previews and default branding.
|
|
8
8
|
applicationName: 'My documentation',
|
|
9
|
+
// Footer starting year. Change it to an earlier founding year if needed.
|
|
10
|
+
since: new Date().getFullYear(),
|
|
9
11
|
// Set metadataBase to your public site URL to resolve relative share images.
|
|
10
12
|
// Optional examples below: uncomment only after adding the referenced files.
|
|
11
13
|
// icons: {
|