extract-from-sitemap 0.0.14 → 0.0.15

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.
Files changed (2) hide show
  1. package/cli.js +5 -1
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -21,6 +21,7 @@ const { extractFromSitemap } = require("./mod.js");
21
21
  */
22
22
  /**
23
23
  * @typedef {Object} Config
24
+ * @property {string} title - Title of your document
24
25
  * @property {string} description - Description of the documentation collection
25
26
  * @property {string} [details] - Optional additional details about the collection
26
27
  * @property {string} outDir - Top-level output directory for combined llms.txt
@@ -214,6 +215,7 @@ async function loadConfig() {
214
215
  JSON.stringify(
215
216
  {
216
217
  $schema: "https://extract.llmtext.com/llmtext.schema.json",
218
+ title: "Parallel Web Systems",
217
219
  description: "Combined documentation from multiple sources",
218
220
  details:
219
221
  "This collection includes API documentation, guides, and references.",
@@ -493,12 +495,13 @@ function getPathPrefix(topLevelOutDir, sourceOutDir) {
493
495
 
494
496
  /**
495
497
  * Generate combined llms.txt from all sources
498
+ * @param {string} title - Top-level title
496
499
  * @param {string} description - Top-level description
497
500
  * @param {string} [details] - Optional top-level details
498
501
  * @param {Array<{title: string, files: Record<string, any>, keepOriginalUrls?: boolean, pathPrefix: string}>} allSources - All processed sources
499
502
  * @returns {string} Combined llms.txt content
500
503
  */
501
- function generateCombinedLlmsTxt(description, details, allSources) {
504
+ function generateCombinedLlmsTxt(title, description, details, allSources) {
502
505
  let combinedTxt = `# Documentation Collection\n\n> ${description}\n\n`;
503
506
 
504
507
  if (details) {
@@ -683,6 +686,7 @@ async function main() {
683
686
  // Generate and write combined llms.txt to top-level outDir
684
687
  if (allSources.length > 0) {
685
688
  const combinedLlmsTxt = generateCombinedLlmsTxt(
689
+ config.title,
686
690
  config.description,
687
691
  config.details,
688
692
  allSources
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "extract-from-sitemap",
3
3
  "bin": "cli.js",
4
- "version": "0.0.14",
4
+ "version": "0.0.15",
5
5
  "main": "mod.js",
6
6
  "description": "A module and CLI that allows extracting all pages from a sitemap into markdown and a llms.txt, using Parallel.ai APIs.",
7
7
  "files": [