astro-accelerator-utils 0.0.41 → 0.0.43

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/lib/config.d.mts CHANGED
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * @typedef { import("../types/Site").Site } Site
3
3
  */
4
- /** @type {Site} */
5
- export const SITE: Site;
4
+ /**
5
+ * Gets default configuration
6
+ * @returns {Site}
7
+ */
8
+ export function getDefault(): Site;
6
9
  export type Site = import("../types/Site").Site;
package/lib/config.mjs CHANGED
@@ -2,43 +2,48 @@
2
2
  * @typedef { import("../types/Site").Site } Site
3
3
  */
4
4
 
5
- /** @type {Site} */
6
- export const SITE = {
7
- owner: '',
8
- url: '',
9
- feedUrl: '',
10
- title: '',
11
- description: '',
12
- themeColor: '#222255',
13
- subfolder: '',
14
- defaultLanguage: 'en',
15
- default: {
16
- lang: 'en',
17
- locale: 'en-US',
18
- dir: 'ltr'
19
- },
20
- search: {
21
- fallbackUrl: 'https://www.google.com/search',
22
- fallbackSite: 'q',
23
- fallbackQuery: 'q',
24
- },
25
- pageSize: 12,
26
- pageLinks: 3,
27
- rssLimit: 20,
28
- dateOptions: {
29
- weekday: 'long',
30
- year: 'numeric',
31
- month: 'long',
32
- day: 'numeric',
33
- },
34
- featureFlags: {
35
- codeBlocks: ['copy'],
36
- figures: ['enlarge'],
37
- youTubeLinks: ['embed'],
38
- },
39
- images: {
40
- contentSize: '(max-width: 860px) 100vw, 620px',
41
- listerSize: '(max-width: 860px) 90vw, 350px',
42
- authorSize: '50px',
43
- }
44
- };
5
+ /**
6
+ * Gets default configuration
7
+ * @returns {Site}
8
+ */
9
+ export function getDefault() {
10
+ return {
11
+ owner: '',
12
+ url: '',
13
+ feedUrl: '',
14
+ title: '',
15
+ description: '',
16
+ themeColor: '#222255',
17
+ subfolder: '',
18
+ defaultLanguage: 'en',
19
+ default: {
20
+ lang: 'en',
21
+ locale: 'en-US',
22
+ dir: 'ltr'
23
+ },
24
+ search: {
25
+ fallbackUrl: 'https://www.google.com/search',
26
+ fallbackSite: 'q',
27
+ fallbackQuery: 'q',
28
+ },
29
+ pageSize: 12,
30
+ pageLinks: 3,
31
+ rssLimit: 20,
32
+ dateOptions: {
33
+ weekday: 'long',
34
+ year: 'numeric',
35
+ month: 'long',
36
+ day: 'numeric',
37
+ },
38
+ featureFlags: {
39
+ codeBlocks: ['copy'],
40
+ figures: ['enlarge'],
41
+ youTubeLinks: ['embed'],
42
+ },
43
+ images: {
44
+ contentSize: '(max-width: 860px) 100vw, 620px',
45
+ listerSize: '(max-width: 860px) 90vw, 350px',
46
+ authorSize: '50px',
47
+ }
48
+ };
49
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro-accelerator-utils",
3
- "version": "0.0.41",
3
+ "version": "0.0.43",
4
4
  "description": "Astro utilities for Astro Accelerator.",
5
5
  "main": "index.mjs",
6
6
  "files": [