portosaurus 1.16.7 → 1.16.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "portosaurus",
3
- "version": "1.16.7",
3
+ "version": "1.16.8",
4
4
  "author": "soymadip",
5
5
  "license": "GPL-3.0-only",
6
6
  "description": "Complete portfolio cum personal website solution for your digital personality.",
@@ -1,4 +1,4 @@
1
1
  export * from "./iconMappings.js";
2
-
3
2
  export * from "./prism.js";
3
+ export * from "./metaTags.js";
4
4
  export { default as sidebars } from "./sidebars.js";
@@ -1,14 +1,17 @@
1
+ // Client
2
+ export { default as HashNavigation } from "./HashNavigation.js";
3
+ export * from "./filterEnabledItems.js";
4
+ export { default as UpdateTitle } from "./updateTitle.js";
5
+
6
+ // Server
1
7
  export * from "./appVersion.js";
2
8
  export * from "./createDocuConf.js";
3
9
  export * from "./logger.js";
4
10
  export * from "./packageManager.js";
5
- export { default as HashNavigation } from "./HashNavigation.js";
6
11
  export * from "./cssUtils.js";
7
- export * from "./filterEnabledItems.js";
8
12
  export * from "./generateFavicon.js";
9
13
  export * from "./generateRobotsTxt.js";
10
14
  export * from "./iconExtractor.js";
11
15
  export * from "./imageDownloader.js";
12
16
  export * from "./imageProcessor.js";
13
17
  export * from "./linkShortner.js";
14
- export { default as UpdateTitle } from "./updateTitle.js";
@@ -111,39 +111,39 @@ export function createDocuConf(userConfig, projectRoot = process.cwd()) {
111
111
  version: projectVersion,
112
112
 
113
113
  heroSection: {
114
- profilePic: usrConf.hero_section.profile_pic || `${iconPicPath}`,
115
- intro: usrConf.hero_section.intro || "Hello there, I'm",
116
- title: usrConf.hero_section.title || "Your Name",
117
- subtitle: usrConf.hero_section.subtitle || "I am a",
118
- profession: usrConf.hero_section.profession || "Your Profession",
114
+ profilePic: usrConf.hero_section?.profile_pic || `${iconPicPath}`,
115
+ intro: usrConf.hero_section?.intro || "Hello there, I'm",
116
+ title: usrConf.hero_section?.title || "Your Name",
117
+ subtitle: usrConf.hero_section?.subtitle || "I am a",
118
+ profession: usrConf.hero_section?.profession || "Your Profession",
119
119
  description:
120
- usrConf.hero_section.description ||
120
+ usrConf.hero_section?.description ||
121
121
  "Short description about your profession, passion, goals.",
122
122
  learnMoreButtonTxt:
123
- usrConf.hero_section.learn__more_button_txt || "Learn More",
123
+ usrConf.hero_section?.learn__more_button_txt || "Learn More",
124
124
  },
125
125
 
126
126
  aboutMe: {
127
- enable: usrConf.about_me.enable || true,
127
+ enable: usrConf.about_me?.enable ?? true,
128
128
 
129
- image: usrConf.about_me.image || `${iconPicPath}`,
130
- description: usrConf.about_me.description || [
129
+ image: usrConf.about_me?.image || `${iconPicPath}`,
130
+ description: usrConf.about_me?.description || [
131
131
  "I'm a passionate FOSS developer with expertise in designing and building solutions for real-world problems.",
132
132
  "My journey in software development started with a simple desire to automate repetitive tasks, specially in my PC.",
133
133
  ],
134
- skills: usrConf.about_me.skills || ["skill 1", "Skill 2"],
134
+ skills: usrConf.about_me?.skills || ["skill 1", "Skill 2"],
135
135
  resumeLink:
136
- usrConf.about_me.resume_link || "https://example.com/resume",
136
+ usrConf.about_me?.resume_link || "https://example.com/resume",
137
137
  },
138
138
 
139
- projects: usrConf.project_shelf,
139
+ projects: usrConf.project_shelf || { enable: true, projects: [] },
140
140
 
141
- experience: usrConf.experience,
141
+ experience: usrConf.experience || { enable: false, list: [] },
142
142
 
143
143
  socialLinks: {
144
- enable: usrConf.social_links.enable || true,
144
+ enable: usrConf.social_links?.enable ?? true,
145
145
 
146
- links: usrConf.social_links.links || [
146
+ links: usrConf.social_links?.links || [
147
147
  {
148
148
  name: "Your Instagram",
149
149
  icon: "instagram",
@@ -154,7 +154,7 @@ export function createDocuConf(userConfig, projectRoot = process.cwd()) {
154
154
  },
155
155
 
156
156
  robotsTxt: {
157
- enable: usrConf.robots_txt || true,
157
+ enable: usrConf.robots_txt ?? true,
158
158
  rules: [
159
159
  {
160
160
  disallow: ["/notes/", "/tasks/"],
@@ -164,12 +164,12 @@ export function createDocuConf(userConfig, projectRoot = process.cwd()) {
164
164
  },
165
165
 
166
166
  tasksPage: {
167
- enable: usrConf.tasks_page.enable || true,
168
- title: usrConf.tasks_page.title || "Tasks",
167
+ enable: usrConf.tasks_page?.enable ?? true,
168
+ title: usrConf.tasks_page?.title || "Tasks",
169
169
  description:
170
- usrConf.tasks_page.description ||
170
+ usrConf.tasks_page?.description ||
171
171
  "Track your tasks and projects here.",
172
- taskList: usrConf.tasks_page.tasks || [
172
+ taskList: usrConf.tasks_page?.tasks || [
173
173
  {
174
174
  title: "Example Tasks",
175
175
  description: "Description of the task",