@lukoweb/apitogo 0.1.76 → 0.1.77
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/dist/cli/cli.js
CHANGED
|
@@ -5644,7 +5644,7 @@ import {
|
|
|
5644
5644
|
// package.json
|
|
5645
5645
|
var package_default = {
|
|
5646
5646
|
name: "@lukoweb/apitogo",
|
|
5647
|
-
version: "0.1.
|
|
5647
|
+
version: "0.1.77",
|
|
5648
5648
|
type: "module",
|
|
5649
5649
|
sideEffects: [
|
|
5650
5650
|
"**/*.css",
|
|
@@ -11580,7 +11580,7 @@ function mergeDocumentationNavigation(navigation, docRoutePaths, options) {
|
|
|
11580
11580
|
label: DOCUMENTATION_NAV_LABEL,
|
|
11581
11581
|
items
|
|
11582
11582
|
};
|
|
11583
|
-
if (generated.length === 0
|
|
11583
|
+
if (generated.length === 0) {
|
|
11584
11584
|
return existing;
|
|
11585
11585
|
}
|
|
11586
11586
|
if (currentDocs) {
|
|
@@ -12030,8 +12030,8 @@ async function makeConfig(argv) {
|
|
|
12030
12030
|
);
|
|
12031
12031
|
const tsxRoutes = tsxFiles.map((file) => toRoutePath(file, pagesDir));
|
|
12032
12032
|
if (markdownRoutes.length === 0 && tsxRoutes.length === 0) {
|
|
12033
|
-
|
|
12034
|
-
`No
|
|
12033
|
+
printDiagnosticsToConsole(
|
|
12034
|
+
`No docs pages under '${pagesDir}/' \u2014 skipping documentation nav scan.`
|
|
12035
12035
|
);
|
|
12036
12036
|
}
|
|
12037
12037
|
config2.navigation = mergeDocumentationNavigation(
|
|
@@ -12061,7 +12061,7 @@ async function makeConfig(argv) {
|
|
|
12061
12061
|
}
|
|
12062
12062
|
const action = createdJson ? "Initialized" : "Updated";
|
|
12063
12063
|
printResultToConsole(
|
|
12064
|
-
`${action} ${APITOGO_JSON_FILENAME}
|
|
12064
|
+
`${action} ${APITOGO_JSON_FILENAME} (site/theme/auth/navigation/OpenAPI as applicable; redirects unchanged).`
|
|
12065
12065
|
);
|
|
12066
12066
|
const createdWorkflow = await ensureApitogoDeployWorkflow(dir);
|
|
12067
12067
|
if (createdWorkflow) {
|
|
@@ -26,8 +26,10 @@ Landing and user panel are **always enabled** on new configs. The command does *
|
|
|
26
26
|
3. **Patches site, theme, and auth** from `--site`, `--theme`, `--authentication`, `--title`, or
|
|
27
27
|
`--interactive`.
|
|
28
28
|
4. **Merges `navigation`** from `.md` / `.mdx` / `.tsx` files under your pages directory into a
|
|
29
|
-
Documentation category
|
|
30
|
-
|
|
29
|
+
Documentation category when those files exist. **Missing or empty `pages/` is fine** (common for
|
|
30
|
+
portal-only sites) — existing navigation is left alone. Other nav items are kept. Use
|
|
31
|
+
**`--force`** to rebuild Documentation items from disk when pages are present (API Reference is
|
|
32
|
+
still kept when OpenAPI is wired).
|
|
31
33
|
5. **Wires OpenAPI** when a spec is found (or confirmed in interactive mode):
|
|
32
34
|
`apis: [{ type: "file", input, path: "api" }]` and a top-level **API Reference** link to `/api` if
|
|
33
35
|
that link is missing.
|