@lexibase/create-rdx 1.1.0 → 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
|
@@ -2,10 +2,12 @@ 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: {
|