The minimalistic document archiving platform.
docs(release): enable post v26.6.0 release guides and config (#1305)
Corentin Thomasset5806027eddc0
diff --git a/apps/docs/src/content/navigation.ts b/apps/docs/src/content/navigation.tsindex 61244f38..d883aa4a 100644--- a/apps/docs/src/content/navigation.ts+++ b/apps/docs/src/content/navigation.ts@@ -65,19 +65,18 @@ export const sidebar = [label: 'Storage Key Patterns',slug: 'guides/storage-key-patterns',},- // Uncomment post release- // {- // label: 'Content Extraction',- // slug: 'guides/content-extraction',- // },- // {- // label: 'LLM Configuration',- // slug: 'guides/llm-configuration',- // },- // {- // label: 'Document Auto Tagging',- // slug: 'guides/auto-tagging',- // },+ {+ label: 'Content Extraction',+ slug: 'guides/content-extraction',+ },+ {+ label: 'LLM Configuration',+ slug: 'guides/llm-configuration',+ },+ {+ label: 'Document Auto Tagging',+ slug: 'guides/auto-tagging',+ },],},{diff --git a/apps/papra-server/src/modules/ai/adapters/anthropic/anthropic.ai-adapters.config.ts b/apps/papra-server/src/modules/ai/adapters/anthropic/anthropic.ai-adapters.config.tsindex 32e5c52d..506597a2 100644--- a/apps/papra-server/src/modules/ai/adapters/anthropic/anthropic.ai-adapters.config.ts+++ b/apps/papra-server/src/modules/ai/adapters/anthropic/anthropic.ai-adapters.config.ts@@ -8,13 +8,11 @@ export const anthropicAdaptersConfig = {schema: v.optional(urlSchema),env: `ANTHROPIC_BASE_URL`,default: undefined,- showInDocumentation: false,},apiKey: {doc: 'API key for the Anthropic API.',schema: v.string(),env: `ANTHROPIC_API_KEY`,default: '',- showInDocumentation: false,},} as const satisfies AppConfigDefinition;diff --git a/apps/papra-server/src/modules/ai/adapters/openai-compatible/openai-compatible.config.ts b/apps/papra-server/src/modules/ai/adapters/openai-compatible/openai-compatible.config.tsindex 7b6b12e6..41f5e796 100644--- a/apps/papra-server/src/modules/ai/adapters/openai-compatible/openai-compatible.config.ts+++ b/apps/papra-server/src/modules/ai/adapters/openai-compatible/openai-compatible.config.ts@@ -13,14 +13,12 @@ export const openAiAdaptersConfig = mapValues(schema: urlSchema,env: `${adapter.envPrefix}_BASE_URL`,default: adapter.defaultBaseUrl,- showInDocumentation: false,},apiKey: {doc: `API key for the ${adapter.label} API.`,schema: v.string(),env: `${adapter.envPrefix}_API_KEY`,default: adapter.defaultApiKey ?? '',- showInDocumentation: false,},}) as const,);diff --git a/apps/papra-server/src/modules/ai/ai.config.ts b/apps/papra-server/src/modules/ai/ai.config.tsindex 8e8fe328..ef8874e4 100644--- a/apps/papra-server/src/modules/ai/ai.config.ts+++ b/apps/papra-server/src/modules/ai/ai.config.ts@@ -12,7 +12,6 @@ export const aiConfig = {schema: booleanishSchema,env: 'AI_IS_ENABLED',default: false,- showInDocumentation: false,},adapters: {anthropic: anthropicAdaptersConfig,@@ -23,6 +22,5 @@ export const aiConfig = {schema: v.optional(aiModelIdSchema),env: AI_DEFAULT_MODEL_ENV_KEY,default: undefined,- showInDocumentation: false,},} as const satisfies AppConfigDefinition;diff --git a/apps/papra-server/src/modules/auto-tagging/auto-tagging.config.ts b/apps/papra-server/src/modules/auto-tagging/auto-tagging.config.tsindex 7ffbbe42..fcf9a250 100644--- a/apps/papra-server/src/modules/auto-tagging/auto-tagging.config.ts+++ b/apps/papra-server/src/modules/auto-tagging/auto-tagging.config.ts@@ -11,20 +11,17 @@ export const autoTaggingConfig = {schema: booleanishSchema,env: 'AUTO_TAGGING_ENABLED',default: true,- showInDocumentation: false,},modelId: {doc: 'AI model to use for auto-tagging, the format is <adapterId>://<modelName>, e.g. "ollama://llama3.1:8b", where the <adapterId> is the id of the adapter defined in the AI_ADAPTERS env variable.',schema: v.optional(aiModelIdSchema),env: ['AUTO_TAGGING_MODEL', AI_DEFAULT_MODEL_ENV_KEY],default: undefined,- showInDocumentation: false,},defaultMaxTags: {doc: 'The default maximum number of tags that can be assigned by AI auto-tagging. This can be overridden per organization in the organization settings.',schema: strictlyPositiveIntegerSchema,env: 'AUTO_TAGGING_DEFAULT_MAX_TAGS',default: 5,- showInDocumentation: false,},} as const satisfies AppConfigDefinition;diff --git a/apps/papra-server/src/modules/documents/content-extraction/content-extraction-strategies/azure-di/azure-di.content-extraction-strategy.config.ts b/apps/papra-server/src/modules/documents/content-extraction/content-extraction-strategies/azure-di/azure-di.content-extraction-strategy.config.tsindex 3a4435f0..9536d9c0 100644--- a/apps/papra-server/src/modules/documents/content-extraction/content-extraction-strategies/azure-di/azure-di.content-extraction-strategy.config.ts+++ b/apps/papra-server/src/modules/documents/content-extraction/content-extraction-strategies/azure-di/azure-di.content-extraction-strategy.config.ts@@ -9,14 +9,12 @@ export const azureDiConfig = {env: 'AZURE_DI_ENDPOINT',schema: v.optional(urlSchema),default: undefined,- showInDocumentation: false,},apiKey: {doc: 'The API key for the Azure Document Intelligence service, will be set as `Ocp-Apim-Subscription-Key` header in requests to the Azure Document Intelligence service.',env: 'AZURE_DI_API_KEY',schema: v.string(),default: '',- showInDocumentation: false,},mimeTypesAllowList: {doc: 'The list of mime types that the Azure Document Inteligence strategy will be used for. If the document mime type is not in this list, the strategy will be skipped. Comma separated list. Supports wildcards, e.g. "image/*" matches all image mime types, and "*" matches all formats. Prefix an entry with "!" to negate it, e.g. "*,!image/png" allows everything except PNG. Negations always take precedence over allows, even more specific ones (e.g. "image/png,!image/*" rejects PNG).',@@ -34,20 +32,17 @@ export const azureDiConfig = {),),default: '*',- showInDocumentation: false,},pollingAttempts: {doc: 'The number of attempts to poll the Azure Document Intelligence service for the result of a document processing job.',env: 'AZURE_DI_POLLING_ATTEMPTS',schema: coercedStrictlyPositiveIntegerSchema,default: 10,- showInDocumentation: false,},pollingDelayMs: {doc: 'The delay in milliseconds between polling attempts to the Azure Document Intelligence service for the result of a document processing job.',env: 'AZURE_DI_POLLING_DELAY_MS',schema: coercedStrictlyPositiveIntegerSchema,default: 2000,- showInDocumentation: false,},} as const satisfies AppConfigDefinition;diff --git a/apps/papra-server/src/modules/documents/content-extraction/content-extraction-strategies/custom-http/custom-http.content-extraction-strategy.config.ts b/apps/papra-server/src/modules/documents/content-extraction/content-extraction-strategies/custom-http/custom-http.content-extraction-strategy.config.tsindex 30068a81..2a4d9706 100644--- a/apps/papra-server/src/modules/documents/content-extraction/content-extraction-strategies/custom-http/custom-http.content-extraction-strategy.config.ts+++ b/apps/papra-server/src/modules/documents/content-extraction/content-extraction-strategies/custom-http/custom-http.content-extraction-strategy.config.ts@@ -17,14 +17,12 @@ export const customHttpConfig = {env: 'CONTENT_EXTRACTION_CUSTOM_HTTP_URL',schema: v.optional(urlSchema),default: undefined,- showInDocumentation: false,},headers: {doc: 'Custom headers to include in requests to the Custom HTTP service. Content-type header will be automatically set based on the uploadFormat, so it should not be included in this list. The headers should be specified as a JSON object, e.g. `{"Authorization": "Bearer <token>"}`.',env: 'CONTENT_EXTRACTION_CUSTOM_HTTP_HEADERS',schema: headersDefinitionStringSchema,default: '{}',- showInDocumentation: false,},uploadFormat: {doc: [@@ -35,14 +33,12 @@ export const customHttpConfig = {schema: v.picklist(UPLOAD_FORMATS),default: UPLOAD_FORMAT.FORM_DATA,env: 'CONTENT_EXTRACTION_CUSTOM_HTTP_UPLOAD_FORMAT',- showInDocumentation: false,},requestTimeout: {doc: 'The timeout in milliseconds for requests to the Custom HTTP service.',env: 'CONTENT_EXTRACTION_CUSTOM_HTTP_REQUEST_TIMEOUT_MS',schema: coercedStrictlyPositiveIntegerSchema,default: 30 * IN_MS.SECOND,- showInDocumentation: false,},responseFormat: {doc: [@@ -53,7 +49,6 @@ export const customHttpConfig = {schema: v.picklist(RESPONSE_FORMATS),default: RESPONSE_FORMAT.JSON,env: 'CONTENT_EXTRACTION_CUSTOM_HTTP_RESPONSE_FORMAT',- showInDocumentation: false,},jsonResponseTextPath: {doc: '',@@ -72,7 +67,6 @@ export const customHttpConfig = {),default: 'text',env: 'CONTENT_EXTRACTION_CUSTOM_HTTP_JSON_RESPONSE_TEXT_PATH',- showInDocumentation: false,},mimeTypesAllowList: {doc: 'The list of mime types that the Custom HTTP strategy will be used for. If the document mime type is not in this list, the strategy will be skipped. Comma separated list. Supports wildcards, e.g. "image/*" matches all image mime types, and "*" matches all formats. Prefix an entry with "!" to negate it, e.g. "*,!image/png" allows everything except PNG. Negations always take precedence over allows, even more specific ones (e.g. "image/png,!image/*" rejects PNG).',@@ -90,6 +84,5 @@ export const customHttpConfig = {),),default: '*',- showInDocumentation: false,},} as const satisfies AppConfigDefinition;diff --git a/apps/papra-server/src/modules/documents/content-extraction/content-extraction-strategies/docling/docling.content-extraction-strategy.config.ts b/apps/papra-server/src/modules/documents/content-extraction/content-extraction-strategies/docling/docling.content-extraction-strategy.config.tsindex c3a1fbb5..f7823f88 100644--- a/apps/papra-server/src/modules/documents/content-extraction/content-extraction-strategies/docling/docling.content-extraction-strategy.config.ts+++ b/apps/papra-server/src/modules/documents/content-extraction/content-extraction-strategies/docling/docling.content-extraction-strategy.config.ts@@ -8,14 +8,12 @@ export const doclingConfig = {env: 'DOCLING_BASE_URL',schema: urlSchema,default: 'http://localhost:5001',- showInDocumentation: false,},apiKey: {doc: 'The API key for the Docling service, will be set as `X-API-Key` header in requests to the Docling service, can be configured on docling side using the `DOCLING_SERVE_API_KEY` environment variable.',env: 'DOCLING_API_KEY',schema: v.optional(v.string()),default: undefined,- showInDocumentation: false,},mimeTypesAllowList: {doc: 'The list of mime types that the Docling strategy will be used for. If the document mime type is not in this list, the strategy will be skipped. Comma separated list. Supports wildcards, e.g. "image/*" matches all image mime types, and "*" matches all formats. Prefix an entry with "!" to negate it, e.g. "*,!image/png" allows everything except PNG. Negations always take precedence over allows, even more specific ones (e.g. "image/png,!image/*" rejects PNG).',@@ -33,6 +31,5 @@ export const doclingConfig = {),),default: '*',- showInDocumentation: false,},} as const satisfies AppConfigDefinition;diff --git a/apps/papra-server/src/modules/documents/content-extraction/content-extraction-strategies/mistral-ocr/mistral-ocr.content-extraction-strategy.config.ts b/apps/papra-server/src/modules/documents/content-extraction/content-extraction-strategies/mistral-ocr/mistral-ocr.content-extraction-strategy.config.tsindex e927be0d..a1c75fe2 100644--- a/apps/papra-server/src/modules/documents/content-extraction/content-extraction-strategies/mistral-ocr/mistral-ocr.content-extraction-strategy.config.ts+++ b/apps/papra-server/src/modules/documents/content-extraction/content-extraction-strategies/mistral-ocr/mistral-ocr.content-extraction-strategy.config.ts@@ -7,7 +7,6 @@ export const mistralOcrConfig = {env: 'MISTRAL_OCR_MODEL_NAME',schema: v.string(),default: 'mistral-ocr-latest',- showInDocumentation: false,},mimeTypesAllowList: {doc: 'The list of mime types that the Mistral OCR strategy will be used for. If the document mime type is not in this list, the strategy will be skipped. Comma separated list. Supports wildcards, e.g. "image/*" matches all image mime types, and "*" matches all formats. Prefix an entry with "!" to negate it, e.g. "*,!image/png" allows everything except PNG. Negations always take precedence over allows, even more specific ones (e.g. "image/png,!image/*" rejects PNG).',@@ -25,6 +24,5 @@ export const mistralOcrConfig = {),),default: 'application/pdf,image/*',- showInDocumentation: false,},} as const satisfies AppConfigDefinition;diff --git a/apps/papra-server/src/modules/documents/content-extraction/content-extraction.config.ts b/apps/papra-server/src/modules/documents/content-extraction/content-extraction.config.tsindex c2cf57c5..af408b23 100644--- a/apps/papra-server/src/modules/documents/content-extraction/content-extraction.config.ts+++ b/apps/papra-server/src/modules/documents/content-extraction/content-extraction.config.ts@@ -27,7 +27,6 @@ export const documentContentExtractionConfig = {),env: 'CONTENT_EXTRACTION_STRATEGY',default: CONTENT_EXTRACTION_STRATEGIES.internal,- showInDocumentation: false,},strategy: {mistralOcr: mistralOcrConfig,