diff --git a/build/generateDocumentation.js b/build/generateDocumentation.js
index 2b6c54a..dd785f2 100644
--- a/build/generateDocumentation.js
+++ b/build/generateDocumentation.js
@@ -1,6 +1,7 @@
import fs from "fs";
import path from "path";
import * as config from "../config.caw.js";
+import { publishConfig } from "../buildconfig.js";
import * as chalkUtils from "./chalkUtils.js";
import fromConsole from "./fromConsole.js";
import {
@@ -62,7 +63,7 @@ async function getGithubURL() {
}
export default async function generateDocumentation() {
- if (config.githubConfig && !config.githubConfig.autoGenReadme) return false;
+ if (publishConfig && !publishConfig.autoGenReadme) return false;
chalkUtils.step("Generating README.md");
const readme = [];
@@ -91,7 +92,7 @@ export default async function generateDocumentation() {
) {
readme.push(`Website: ${config.website}
`);
}
- if (config.addonUrl && config.addonUrl !== "") {
+ if (publishConfig && publishConfig.addonUrl !== "") {
readme.push(`Addon Url: ${config.addonUrl}
`);
}
//add link to c3ide2-framework
diff --git a/build/schemas.js b/build/schemas.js
index 26f4260..6c4b118 100644
--- a/build/schemas.js
+++ b/build/schemas.js
@@ -254,10 +254,6 @@ const configSchema = Joi.object({
.required(),
}).required(),
aceCategories: Joi.object().pattern(Joi.string(), Joi.string()).default({}),
- githubConfig: Joi.object({
- addonUrl: Joi.string().required().allow(""),
- autoGenReadme: Joi.boolean().required(),
- }).required(),
info: Joi.object({
icon: Joi.string().optional(),
Set: Joi.object({
diff --git a/buildconfig.js b/buildconfig.js
index e40e15e..78669e6 100644
--- a/buildconfig.js
+++ b/buildconfig.js
@@ -14,3 +14,8 @@ export const failOnUnusedFiles = true;
export const disableTips = false;
export const disableWarnings = false;
+
+export const publishConfig = {
+ addonUrl: "",
+ autoGenReadme: true,
+};
diff --git a/config.caw.js b/config.caw.js
index 4319471..b93a50b 100644
--- a/config.caw.js
+++ b/config.caw.js
@@ -25,11 +25,6 @@ export const files = {
// categories that are not filled will use the folder name
export const aceCategories = {};
-export const githubConfig = {
- addonUrl: "",
- autoGenReadme: true,
-};
-
export const info = {
// icon: "icon.svg",
// PLUGIN world only