@farming-labs/next 0.1.88 → 0.1.90
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/config.mjs +11 -2
- package/package.json +3 -3
package/dist/config.mjs
CHANGED
|
@@ -869,7 +869,8 @@ function buildAgentSpecRewrites() {
|
|
|
869
869
|
}
|
|
870
870
|
];
|
|
871
871
|
}
|
|
872
|
-
function buildLlmsTxtRewrites() {
|
|
872
|
+
function buildLlmsTxtRewrites(entry) {
|
|
873
|
+
const normalizedEntry = entry.replace(/^\/+|\/+$/g, "") || "docs";
|
|
873
874
|
return [
|
|
874
875
|
{
|
|
875
876
|
source: DEFAULT_LLMS_TXT_ROUTE,
|
|
@@ -886,6 +887,14 @@ function buildLlmsTxtRewrites() {
|
|
|
886
887
|
{
|
|
887
888
|
source: DEFAULT_LLMS_FULL_TXT_WELL_KNOWN_ROUTE,
|
|
888
889
|
destination: "/api/docs?format=llms-full"
|
|
890
|
+
},
|
|
891
|
+
{
|
|
892
|
+
source: `/${normalizedEntry}/:section*/llms.txt`,
|
|
893
|
+
destination: `/api/docs?format=llms§ion=/${normalizedEntry}/:section*/llms.txt`
|
|
894
|
+
},
|
|
895
|
+
{
|
|
896
|
+
source: `/${normalizedEntry}/:section*/llms-full.txt`,
|
|
897
|
+
destination: `/api/docs?format=llms-full§ion=/${normalizedEntry}/:section*/llms-full.txt`
|
|
889
898
|
}
|
|
890
899
|
];
|
|
891
900
|
}
|
|
@@ -1053,7 +1062,7 @@ function mergeDocsMarkdownRewrites(entry, mcp, sitemap, agentFeedback, result) {
|
|
|
1053
1062
|
const autoRewrites = [
|
|
1054
1063
|
...buildAgentSpecRewrites(),
|
|
1055
1064
|
...buildMcpRewrites(mcp),
|
|
1056
|
-
...buildLlmsTxtRewrites(),
|
|
1065
|
+
...buildLlmsTxtRewrites(entry),
|
|
1057
1066
|
...buildSkillMdRewrites(),
|
|
1058
1067
|
...buildSitemapRewrites(sitemap),
|
|
1059
1068
|
...buildDocsMarkdownRewrites(entry),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@farming-labs/next",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.90",
|
|
4
4
|
"description": "Next.js adapter for @farming-labs/docs — MDX config wrapper",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"docs",
|
|
@@ -100,8 +100,8 @@
|
|
|
100
100
|
"tsdown": "^0.20.3",
|
|
101
101
|
"typescript": "^5.9.3",
|
|
102
102
|
"vitest": "^3.2.4",
|
|
103
|
-
"@farming-labs/
|
|
104
|
-
"@farming-labs/
|
|
103
|
+
"@farming-labs/docs": "0.1.90",
|
|
104
|
+
"@farming-labs/theme": "0.1.90"
|
|
105
105
|
},
|
|
106
106
|
"peerDependencies": {
|
|
107
107
|
"@farming-labs/docs": ">=0.0.1",
|