@mdfriday/foundry 26.4.20 → 26.5.1
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/cjs/index.js +1 -1
- package/dist/cjs/obsidian/mobile.js +1 -1
- package/dist/cjs/worker/pool-manager.js +2 -2
- package/dist/cjs/worker/worker-node.js +2 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/obsidian/mobile.js +1 -1
- package/dist/types/internal/application/batch-task-queue.d.ts +17 -0
- package/dist/types/internal/application/container.d.ts +66 -0
- package/dist/types/internal/application/identity.d.ts +173 -0
- package/dist/types/internal/application/incremental-build-coordinator.d.ts +28 -0
- package/dist/types/internal/application/incremental-ssg.d.ts +4 -0
- package/dist/types/internal/application/index.d.ts +5 -4
- package/dist/types/internal/application/publish.d.ts +37 -0
- package/dist/types/internal/application/ssg-parallel.d.ts +6 -0
- package/dist/types/internal/application/ssg.d.ts +15 -0
- package/dist/types/internal/application/wiki-service-config.d.ts +65 -0
- package/dist/types/internal/application/wiki-service.d.ts +199 -0
- package/dist/types/internal/application/worker/pool-manager.d.ts +43 -0
- package/dist/types/internal/application/worker/worker-browser.d.ts +6 -0
- package/dist/types/internal/application/worker/worker-main.d.ts +12 -0
- package/dist/types/internal/application/worker/worker-state.d.ts +23 -0
- package/dist/types/internal/application/workspace.d.ts +98 -0
- package/dist/types/internal/domain/config/entity/config.d.ts +40 -0
- package/dist/types/internal/domain/config/entity/language.d.ts +51 -0
- package/dist/types/internal/domain/config/entity/markdown.d.ts +36 -0
- package/dist/types/internal/domain/config/entity/module.d.ts +36 -0
- package/dist/types/internal/domain/config/entity/root.d.ts +39 -0
- package/dist/types/internal/domain/config/entity/service.d.ts +36 -0
- package/dist/types/internal/domain/config/entity/social.d.ts +43 -0
- package/dist/types/internal/domain/config/entity/taxonomy.d.ts +39 -0
- package/dist/types/internal/domain/config/factory/config.d.ts +3 -0
- package/dist/types/internal/domain/config/factory/loader.d.ts +24 -0
- package/dist/types/internal/domain/config/factory/provider.d.ts +10 -0
- package/dist/types/internal/domain/config/factory/sourcedescriptor.d.ts +12 -0
- package/dist/types/internal/domain/config/type.d.ts +56 -0
- package/dist/types/internal/domain/config/vo/language.d.ts +6 -0
- package/dist/types/internal/domain/config/vo/markdown.d.ts +13 -0
- package/dist/types/internal/domain/config/vo/module.d.ts +9 -0
- package/dist/types/internal/domain/config/vo/root.d.ts +6 -0
- package/dist/types/internal/domain/config/vo/service.d.ts +6 -0
- package/dist/types/internal/domain/config/vo/social.d.ts +16 -0
- package/dist/types/internal/domain/config/vo/taxonomy.d.ts +12 -0
- package/dist/types/internal/domain/content/entity/content.d.ts +36 -0
- package/dist/types/internal/domain/content/entity/page.d.ts +23 -0
- package/dist/types/internal/domain/content/entity/pagebuilder.d.ts +83 -0
- package/dist/types/internal/domain/content/entity/pagecollector.d.ts +3 -0
- package/dist/types/internal/domain/content/entity/pagecontent.d.ts +14 -0
- package/dist/types/internal/domain/content/entity/pagemap.d.ts +69 -0
- package/dist/types/internal/domain/content/entity/pagesource.d.ts +52 -0
- package/dist/types/internal/domain/content/entity/pagetrees.d.ts +12 -0
- package/dist/types/internal/domain/content/entity/paginator.d.ts +19 -0
- package/dist/types/internal/domain/content/entity/section.d.ts +15 -0
- package/dist/types/internal/domain/content/entity/shortcode.d.ts +39 -0
- package/dist/types/internal/domain/content/entity/standalone.d.ts +9 -0
- package/dist/types/internal/domain/content/entity/taxonomy.d.ts +15 -0
- package/dist/types/internal/domain/content/entity/term.d.ts +6 -0
- package/dist/types/internal/domain/content/entity/translator.d.ts +22 -0
- package/dist/types/internal/domain/content/type.d.ts +6 -0
- package/dist/types/internal/domain/content/vo/classifier.d.ts +24 -0
- package/dist/types/internal/domain/content/vo/frontmatter.d.ts +65 -0
- package/dist/types/internal/domain/content/vo/kind.d.ts +10 -0
- package/dist/types/internal/domain/fs/entity/basefs.d.ts +23 -0
- package/dist/types/internal/domain/fs/entity/fs.d.ts +13 -0
- package/dist/types/internal/domain/fs/entity/originfs.d.ts +6 -0
- package/dist/types/internal/domain/fs/entity/overlaydir.d.ts +44 -0
- package/dist/types/internal/domain/fs/entity/overlayfs.d.ts +79 -0
- package/dist/types/internal/domain/fs/entity/service.d.ts +15 -0
- package/dist/types/internal/domain/fs/factory/fs.d.ts +4 -0
- package/dist/types/internal/domain/fs/type.d.ts +95 -0
- package/dist/types/internal/domain/fs/vo/dir.d.ts +41 -0
- package/dist/types/internal/domain/fs/vo/file.d.ts +28 -0
- package/dist/types/internal/domain/fs/vo/fileinfo.d.ts +23 -0
- package/dist/types/internal/domain/fs/vo/filemeta.d.ts +45 -0
- package/dist/types/internal/domain/fs/vo/filesystemscollector.d.ts +17 -0
- package/dist/types/internal/domain/fs/vo/filevitural.d.ts +8 -0
- package/dist/types/internal/domain/fs/vo/osfs.d.ts +12 -0
- package/dist/types/internal/domain/fs/vo/overlay-factory.d.ts +4 -0
- package/dist/types/internal/domain/fs/vo/overlayfs-factory.d.ts +42 -0
- package/dist/types/internal/domain/fs/vo/overlayoptions.d.ts +44 -0
- package/dist/types/internal/domain/fs/vo/static-copier.d.ts +22 -0
- package/dist/types/internal/domain/fs/vo/walkway.d.ts +22 -0
- package/dist/types/internal/domain/identity/entity/user.d.ts +100 -0
- package/dist/types/internal/domain/identity/factory/user-factory.d.ts +183 -0
- package/dist/types/internal/domain/identity/repository/index.d.ts +30 -0
- package/dist/types/internal/domain/identity/type.d.ts +17 -0
- package/dist/types/internal/domain/identity/value-object/device.d.ts +26 -0
- package/dist/types/internal/domain/identity/value-object/email.d.ts +29 -0
- package/dist/types/internal/domain/identity/value-object/license.d.ts +91 -0
- package/dist/types/internal/domain/identity/value-object/server-config.d.ts +37 -0
- package/dist/types/internal/domain/identity/value-object/sync-config.d.ts +47 -0
- package/dist/types/internal/domain/identity/value-object/token.d.ts +35 -0
- package/dist/types/internal/domain/markdown/entity/markdown.d.ts +41 -0
- package/dist/types/internal/domain/markdown/factory/it/config.d.ts +60 -0
- package/dist/types/internal/domain/markdown/factory/it/index.d.ts +21 -1
- package/dist/types/internal/domain/markdown/factory/it/parserresult.d.ts +3 -0
- package/dist/types/internal/domain/markdown/factory/it/plugins/callout-plugin.d.ts +40 -0
- package/dist/types/internal/domain/markdown/factory/it/plugins/latex-plugin.d.ts +23 -0
- package/dist/types/internal/domain/markdown/factory/it/plugins/mermaid-plugin.d.ts +24 -0
- package/dist/types/internal/domain/markdown/factory/it/plugins/tag-plugin.d.ts +71 -0
- package/dist/types/internal/domain/markdown/factory/it/plugins/wikilink-plugin.d.ts +28 -0
- package/dist/types/internal/domain/markdown/factory/it/plugins/wikilink.d.ts +31 -0
- package/dist/types/internal/domain/markdown/factory/it/tableofcontents.d.ts +21 -0
- package/dist/types/internal/domain/markdown/factory/it/util/path.d.ts +11 -0
- package/dist/types/internal/domain/markdown/factory/it/util/slugger-fallback.d.ts +6 -0
- package/dist/types/internal/domain/markdown/type.d.ts +159 -0
- package/dist/types/internal/domain/markdown/vo/config.d.ts +48 -0
- package/dist/types/internal/domain/markdown/vo/content.d.ts +92 -0
- package/dist/types/internal/domain/markdown/vo/context.d.ts +9 -0
- package/dist/types/internal/domain/markdown/vo/highlight.d.ts +15 -0
- package/dist/types/internal/domain/markdown/vo/pageparser.d.ts +9 -0
- package/dist/types/internal/domain/markdown/vo/parseinfo.d.ts +36 -0
- package/dist/types/internal/domain/markdown/vo/parserresult.d.ts +6 -0
- package/dist/types/internal/domain/markdown/vo/shortcode.d.ts +31 -1
- package/dist/types/internal/domain/markdown/vo/tableofcontents.d.ts +21 -0
- package/dist/types/internal/domain/module/entity/lang.d.ts +12 -0
- package/dist/types/internal/domain/module/entity/module.d.ts +73 -0
- package/dist/types/internal/domain/module/factory/module.d.ts +6 -0
- package/dist/types/internal/domain/module/type.d.ts +58 -0
- package/dist/types/internal/domain/module/vo/cache.d.ts +48 -0
- package/dist/types/internal/domain/module/vo/httpclient.d.ts +14 -0
- package/dist/types/internal/domain/module/vo/module.d.ts +76 -0
- package/dist/types/internal/domain/module/vo/mount.d.ts +39 -0
- package/dist/types/internal/domain/module/vo/themes.d.ts +38 -0
- package/dist/types/internal/domain/module/vo/zipextractor.d.ts +31 -0
- package/dist/types/internal/domain/paths/entity/path.d.ts +28 -0
- package/dist/types/internal/domain/paths/factory/pathfactory.d.ts +82 -0
- package/dist/types/internal/domain/paths/type.d.ts +132 -0
- package/dist/types/internal/domain/paths/vo/pathcomponents.d.ts +94 -0
- package/dist/types/internal/domain/paths/vo/pathparser.d.ts +77 -0
- package/dist/types/internal/domain/publish/entity/publisher.d.ts +26 -0
- package/dist/types/internal/domain/publish/factory/publisher-factory.d.ts +17 -0
- package/dist/types/internal/domain/publish/repository/http-client.d.ts +21 -0
- package/dist/types/internal/domain/publish/repository/manifest-repository.d.ts +27 -0
- package/dist/types/internal/domain/publish/type.d.ts +49 -0
- package/dist/types/internal/domain/publish/value-object/ftp-publisher.d.ts +30 -0
- package/dist/types/internal/domain/publish/value-object/mdfriday-publisher.d.ts +57 -0
- package/dist/types/internal/domain/publish/value-object/netlify-publisher.d.ts +55 -0
- package/dist/types/internal/domain/publish/value-object/publish-config.d.ts +38 -0
- package/dist/types/internal/domain/publish/value-object/publish-manifest.d.ts +50 -0
- package/dist/types/internal/domain/resources/entity/http.d.ts +11 -0
- package/dist/types/internal/domain/resources/entity/integrity.d.ts +4 -0
- package/dist/types/internal/domain/resources/entity/minifier.d.ts +4 -0
- package/dist/types/internal/domain/resources/entity/publisher.d.ts +24 -0
- package/dist/types/internal/domain/resources/entity/resource.d.ts +4 -0
- package/dist/types/internal/domain/resources/entity/resources.d.ts +40 -0
- package/dist/types/internal/domain/resources/entity/template.d.ts +4 -0
- package/dist/types/internal/domain/resources/factory/resource.d.ts +4 -0
- package/dist/types/internal/domain/site/entity/language.d.ts +55 -0
- package/dist/types/internal/domain/site/entity/menu-builder.d.ts +50 -0
- package/dist/types/internal/domain/site/entity/navigation.d.ts +8 -0
- package/dist/types/internal/domain/site/entity/page.d.ts +88 -0
- package/dist/types/internal/domain/site/entity/pagegraph.d.ts +85 -0
- package/dist/types/internal/domain/site/entity/pager.d.ts +6 -0
- package/dist/types/internal/domain/site/entity/publisher.d.ts +26 -0
- package/dist/types/internal/domain/site/entity/ref.d.ts +27 -0
- package/dist/types/internal/domain/site/entity/site.d.ts +178 -0
- package/dist/types/internal/domain/site/factory/navigation-factory.d.ts +6 -0
- package/dist/types/internal/domain/site/factory/site.d.ts +4 -0
- package/dist/types/internal/domain/site/service/html-link-processor.d.ts +44 -0
- package/dist/types/internal/domain/site/type.d.ts +100 -0
- package/dist/types/internal/domain/site/valueobject/author.d.ts +16 -0
- package/dist/types/internal/domain/site/valueobject/baseurl.d.ts +39 -0
- package/dist/types/internal/domain/site/valueobject/menu.d.ts +49 -0
- package/dist/types/internal/domain/site/valueobject/organization.d.ts +37 -0
- package/dist/types/internal/domain/site/valueobject/path.d.ts +50 -0
- package/dist/types/internal/domain/site/valueobject/version.d.ts +14 -0
- package/dist/types/internal/domain/template/entity/executor.d.ts +22 -0
- package/dist/types/internal/domain/template/entity/lookup.d.ts +55 -0
- package/dist/types/internal/domain/template/entity/parser.d.ts +40 -0
- package/dist/types/internal/domain/template/entity/template.d.ts +87 -0
- package/dist/types/internal/domain/template/factory/template.d.ts +61 -0
- package/dist/types/internal/domain/template/type.d.ts +109 -0
- package/dist/types/internal/domain/template/vo/baseof.d.ts +47 -0
- package/dist/types/internal/domain/template/vo/info.d.ts +28 -0
- package/dist/types/internal/domain/template/vo/namespace.d.ts +91 -0
- package/dist/types/internal/domain/template/vo/registry.d.ts +160 -0
- package/dist/types/internal/domain/wiki/entity/concept.d.ts +31 -0
- package/dist/types/internal/domain/wiki/entity/connection.d.ts +29 -0
- package/dist/types/internal/domain/wiki/entity/conversation.d.ts +65 -0
- package/dist/types/internal/domain/wiki/entity/embedding-index.d.ts +60 -0
- package/dist/types/internal/domain/wiki/entity/entity.d.ts +32 -0
- package/dist/types/internal/domain/wiki/entity/knowledge-base.d.ts +292 -0
- package/dist/types/internal/domain/wiki/entity/operation-log.d.ts +82 -0
- package/dist/types/internal/domain/wiki/factory/wiki-factory.d.ts +41 -0
- package/dist/types/internal/domain/wiki/index.d.ts +22 -0
- package/dist/types/internal/domain/wiki/repository/conversation-repository.interface.d.ts +29 -0
- package/dist/types/internal/domain/wiki/repository/crypto-service.d.ts +16 -0
- package/dist/types/internal/domain/wiki/repository/embedding-provider.d.ts +12 -0
- package/dist/types/internal/domain/wiki/repository/file-system.d.ts +43 -0
- package/dist/types/internal/domain/wiki/repository/index.d.ts +14 -0
- package/dist/types/internal/domain/wiki/repository/kb-repository.interface.d.ts +30 -0
- package/dist/types/internal/domain/wiki/repository/llm-http-client.d.ts +40 -0
- package/dist/types/internal/domain/wiki/repository/llm-provider.d.ts +34 -0
- package/dist/types/internal/domain/wiki/repository/path-service.d.ts +32 -0
- package/dist/types/internal/domain/wiki/repository/wiki-page-repository.interface.d.ts +49 -0
- package/dist/types/internal/domain/wiki/value-object/connection-type.d.ts +24 -0
- package/dist/types/internal/domain/wiki/value-object/content-annotator.d.ts +61 -0
- package/dist/types/internal/domain/wiki/value-object/entity-id.d.ts +17 -0
- package/dist/types/internal/domain/wiki/value-object/entity-type.d.ts +24 -0
- package/dist/types/internal/domain/wiki/value-object/extraction-parser.d.ts +27 -0
- package/dist/types/internal/domain/wiki/value-object/extraction-result.d.ts +32 -0
- package/dist/types/internal/domain/wiki/value-object/retrieval.d.ts +228 -0
- package/dist/types/internal/domain/wiki/value-object/source-record.d.ts +17 -0
- package/dist/types/internal/domain/wiki/value-object/wiki-config.d.ts +40 -0
- package/dist/types/internal/domain/wiki/value-object/wiki-index-generator.d.ts +31 -0
- package/dist/types/internal/domain/wiki/value-object/wiki-page-renderer.d.ts +42 -0
- package/dist/types/internal/domain/workspace/entity/authentication.d.ts +29 -0
- package/dist/types/internal/domain/workspace/entity/project.d.ts +173 -0
- package/dist/types/internal/domain/workspace/entity/workspace.d.ts +85 -0
- package/dist/types/internal/domain/workspace/factory/workspace-factory.d.ts +107 -0
- package/dist/types/internal/domain/workspace/repository/file-system.d.ts +241 -0
- package/dist/types/internal/domain/workspace/repository/index.d.ts +6 -0
- package/dist/types/internal/domain/workspace/repository.d.ts +72 -0
- package/dist/types/internal/domain/workspace/type.d.ts +18 -0
- package/dist/types/internal/domain/workspace/value-object/folder-structure.d.ts +41 -0
- package/dist/types/internal/domain/workspace/value-object/project-metadata.d.ts +36 -0
- package/dist/types/internal/domain/workspace/value-object/workspace-metadata.d.ts +7 -0
- package/dist/types/internal/infrastructure/embedding/embedding-provider.interface.d.ts +33 -0
- package/dist/types/internal/infrastructure/embedding/index.d.ts +5 -0
- package/dist/types/internal/infrastructure/embedding/ollama-embedding-provider.d.ts +24 -0
- package/dist/types/internal/infrastructure/http/netlify-http-client.d.ts +20 -0
- package/dist/types/internal/infrastructure/http/node-http-client.d.ts +3 -0
- package/dist/types/internal/infrastructure/index.d.ts +8 -0
- package/dist/types/internal/infrastructure/llm/fetch-http-client.d.ts +24 -0
- package/dist/types/internal/infrastructure/llm/index.d.ts +6 -0
- package/dist/types/internal/infrastructure/llm/llm-config.d.ts +80 -0
- package/dist/types/internal/infrastructure/llm/lmstudio-provider.d.ts +55 -0
- package/dist/types/internal/infrastructure/llm/node-llm-http-client.d.ts +21 -0
- package/dist/types/internal/infrastructure/llm/ollama-provider.d.ts +17 -0
- package/dist/types/internal/infrastructure/llm/openai-compatible-provider.d.ts +70 -0
- package/dist/types/internal/infrastructure/llm/provider-factory.d.ts +36 -0
- package/dist/types/internal/infrastructure/llm/provider.d.ts +77 -0
- package/dist/types/internal/infrastructure/node/index.d.ts +11 -0
- package/dist/types/internal/infrastructure/node/node-conversation-repository.d.ts +21 -0
- package/dist/types/internal/infrastructure/node/node-crypto-service.d.ts +10 -0
- package/dist/types/internal/infrastructure/node/node-file-system.d.ts +29 -0
- package/dist/types/internal/infrastructure/node/node-kb-repository.d.ts +18 -0
- package/dist/types/internal/infrastructure/node/node-path-service.d.ts +14 -0
- package/dist/types/internal/infrastructure/node/node-wiki-page-repository.d.ts +25 -0
- package/dist/types/internal/infrastructure/persistence/node-file-system.d.ts +8 -0
- package/dist/types/internal/infrastructure/persistence/node-manifest-repository.d.ts +31 -0
- package/dist/types/internal/infrastructure/persistence/node-snapshot-repository.d.ts +28 -0
- package/dist/types/internal/infrastructure/persistence/node-workspace-repository.d.ts +9 -0
- package/dist/types/pkg/cahce/cache.d.ts +56 -0
- package/dist/types/pkg/lang/data.d.ts +21 -0
- package/dist/types/pkg/lang/index.d.ts +46 -0
- package/dist/types/pkg/lang/service.d.ts +49 -0
- package/dist/types/pkg/lang/types.d.ts +29 -0
- package/dist/types/pkg/log/http.d.ts +16 -0
- package/dist/types/pkg/log/manager.d.ts +57 -0
- package/dist/types/pkg/maps/scratch.d.ts +25 -0
- package/dist/types/pkg/md/parser/item.d.ts +3 -3
- package/dist/types/pkg/media/type.d.ts +19 -0
- package/dist/types/pkg/page-filter/index.d.ts +29 -0
- package/dist/types/pkg/paths/index.d.ts +9 -0
- package/dist/types/pkg/text/index.d.ts +4 -0
- package/dist/types/pkg/web/server/livereload-server.d.ts +7 -0
- package/dist/types/pkg/web/watcher/content-file-watcher.d.ts +3 -0
- package/package.json +21 -15
- package/dist/types/index.d.ts +0 -20
- package/dist/types/internal/interfaces/obsidian/adapters/identity-adapter.d.ts +0 -5
- package/dist/types/internal/interfaces/obsidian/adapters/index.d.ts +0 -2
- package/dist/types/internal/interfaces/obsidian/adapters/workspace-adapter.d.ts +0 -8
- package/dist/types/internal/interfaces/obsidian/desktop/adapters/identity-adapter.d.ts +0 -6
- package/dist/types/internal/interfaces/obsidian/desktop/adapters/index.d.ts +0 -2
- package/dist/types/internal/interfaces/obsidian/desktop/adapters/workspace-adapter.d.ts +0 -12
- package/dist/types/internal/interfaces/obsidian/desktop/container.d.ts +0 -7
- package/dist/types/internal/interfaces/obsidian/desktop/index.d.ts +0 -22
- package/dist/types/internal/interfaces/obsidian/index.d.ts +0 -7
- package/dist/types/internal/interfaces/obsidian/mobile/adapters/identity-adapter.d.ts +0 -9
- package/dist/types/internal/interfaces/obsidian/mobile/adapters/index.d.ts +0 -2
- package/dist/types/internal/interfaces/obsidian/mobile/adapters/workspace-adapter.d.ts +0 -13
- package/dist/types/internal/interfaces/obsidian/mobile/config-types.d.ts +0 -13
- package/dist/types/internal/interfaces/obsidian/mobile/container.d.ts +0 -6
- package/dist/types/internal/interfaces/obsidian/mobile/index.d.ts +0 -16
- package/dist/types/internal/interfaces/obsidian/mobile.d.ts +0 -2
- package/dist/types/internal/interfaces/obsidian/services/auth.service.d.ts +0 -11
- package/dist/types/internal/interfaces/obsidian/services/build.service.d.ts +0 -9
- package/dist/types/internal/interfaces/obsidian/services/config.service.d.ts +0 -31
- package/dist/types/internal/interfaces/obsidian/services/domain.service.d.ts +0 -15
- package/dist/types/internal/interfaces/obsidian/services/license.service.d.ts +0 -22
- package/dist/types/internal/interfaces/obsidian/services/project.service.d.ts +0 -17
- package/dist/types/internal/interfaces/obsidian/services/publish.service.d.ts +0 -11
- package/dist/types/internal/interfaces/obsidian/services/serve.service.d.ts +0 -18
- package/dist/types/internal/interfaces/obsidian/services/workspace.service.d.ts +0 -10
- package/dist/types/internal/interfaces/obsidian/types/auth.d.ts +0 -27
- package/dist/types/internal/interfaces/obsidian/types/build.d.ts +0 -23
- package/dist/types/internal/interfaces/obsidian/types/config.d.ts +0 -16
- package/dist/types/internal/interfaces/obsidian/types/domain.d.ts +0 -46
- package/dist/types/internal/interfaces/obsidian/types/index.d.ts +0 -9
- package/dist/types/internal/interfaces/obsidian/types/license.d.ts +0 -87
- package/dist/types/internal/interfaces/obsidian/types/project.d.ts +0 -56
- package/dist/types/internal/interfaces/obsidian/types/publish.d.ts +0 -33
- package/dist/types/internal/interfaces/obsidian/types/serve.d.ts +0 -46
- package/dist/types/internal/interfaces/obsidian/types/workspace.d.ts +0 -27
- package/dist/types/pkg/log/browser-manager.d.ts +0 -20
- package/dist/types/pkg/log/browser.d.ts +0 -25
- package/dist/types/pkg/media/buildin.d.ts +0 -3
|
@@ -1,22 +1,65 @@
|
|
|
1
1
|
import { SocialConfig, SocialPlatformTemplate, SocialUserConfig } from '../type';
|
|
2
|
+
/**
|
|
3
|
+
* Processed social link with complete information
|
|
4
|
+
*/
|
|
2
5
|
export interface ProcessedSocialLink {
|
|
3
6
|
id: string;
|
|
4
7
|
title: string;
|
|
5
8
|
url: string;
|
|
6
9
|
}
|
|
10
|
+
/**
|
|
11
|
+
* Social entity holds social configuration and provides business logic
|
|
12
|
+
*/
|
|
7
13
|
export declare class Social {
|
|
8
14
|
private socialConfig;
|
|
9
15
|
constructor(socialConfig: SocialConfig);
|
|
16
|
+
/**
|
|
17
|
+
* Get user social configuration
|
|
18
|
+
*/
|
|
10
19
|
getUserConfig(): SocialUserConfig;
|
|
20
|
+
/**
|
|
21
|
+
* Get all available social platform templates
|
|
22
|
+
*/
|
|
11
23
|
getPlatformTemplates(): SocialPlatformTemplate[];
|
|
24
|
+
/**
|
|
25
|
+
* Get social platform template by platform ID
|
|
26
|
+
*/
|
|
12
27
|
getPlatformTemplate(platformId: string): SocialPlatformTemplate | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Check if a social platform is configured by user
|
|
30
|
+
*/
|
|
13
31
|
isPlatformConfigured(platformId: string): boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Get configured social platforms
|
|
34
|
+
*/
|
|
14
35
|
getConfiguredPlatforms(): string[];
|
|
36
|
+
/**
|
|
37
|
+
* Get processed social links ready for template rendering
|
|
38
|
+
* This combines user configuration with icon templates
|
|
39
|
+
*/
|
|
15
40
|
getProcessedSocialLinks(): ProcessedSocialLink[];
|
|
41
|
+
/**
|
|
42
|
+
* Get social link for a specific platform
|
|
43
|
+
*/
|
|
16
44
|
getSocialLink(platformId: string): ProcessedSocialLink | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* Check if any social platforms are configured
|
|
47
|
+
*/
|
|
17
48
|
hasSocialLinks(): boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Get the number of configured social platforms
|
|
51
|
+
*/
|
|
18
52
|
getSocialLinkCount(): number;
|
|
53
|
+
/**
|
|
54
|
+
* Get available social platforms (from templates)
|
|
55
|
+
*/
|
|
19
56
|
getAvailablePlatforms(): string[];
|
|
57
|
+
/**
|
|
58
|
+
* Get social configuration
|
|
59
|
+
*/
|
|
20
60
|
getSocialConfig(): SocialConfig;
|
|
21
61
|
}
|
|
62
|
+
/**
|
|
63
|
+
* Create a new Social instance from provider data
|
|
64
|
+
*/
|
|
22
65
|
export declare function newSocial(data: any): Social;
|
|
@@ -1,19 +1,58 @@
|
|
|
1
1
|
import { ViewName } from '../type';
|
|
2
|
+
/**
|
|
3
|
+
* Taxonomy entity holds taxonomy configuration
|
|
4
|
+
*/
|
|
2
5
|
export declare class Taxonomy {
|
|
3
6
|
private taxonomies;
|
|
4
7
|
private views;
|
|
5
8
|
private viewsByTreeKey;
|
|
6
9
|
constructor(taxonomies: Record<string, string>);
|
|
10
|
+
/**
|
|
11
|
+
* Get taxonomy views
|
|
12
|
+
*/
|
|
7
13
|
getViews(): ViewName[];
|
|
14
|
+
/**
|
|
15
|
+
* Get taxonomies configuration
|
|
16
|
+
*/
|
|
8
17
|
getTaxonomies(): Record<string, string>;
|
|
18
|
+
/**
|
|
19
|
+
* Get view by tree key
|
|
20
|
+
*/
|
|
9
21
|
getViewByTreeKey(treeKey: string): ViewName | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Check if taxonomy exists
|
|
24
|
+
*/
|
|
10
25
|
hasTaxonomy(singular: string): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Get plural form of taxonomy
|
|
28
|
+
*/
|
|
11
29
|
getPluralForm(singular: string): string | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Get singular form from plural
|
|
32
|
+
*/
|
|
12
33
|
getSingularForm(plural: string): string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Get all singular forms
|
|
36
|
+
*/
|
|
13
37
|
getSingularForms(): string[];
|
|
38
|
+
/**
|
|
39
|
+
* Get all plural forms
|
|
40
|
+
*/
|
|
14
41
|
getPluralForms(): string[];
|
|
42
|
+
/**
|
|
43
|
+
* Setup taxonomy views
|
|
44
|
+
*/
|
|
15
45
|
private setupViews;
|
|
46
|
+
/**
|
|
47
|
+
* Get view count
|
|
48
|
+
*/
|
|
16
49
|
getViewCount(): number;
|
|
50
|
+
/**
|
|
51
|
+
* Check if taxonomies are empty
|
|
52
|
+
*/
|
|
17
53
|
isEmpty(): boolean;
|
|
18
54
|
}
|
|
55
|
+
/**
|
|
56
|
+
* Create a new Taxonomy instance from provider data
|
|
57
|
+
*/
|
|
19
58
|
export declare function newTaxonomy(data: any): Taxonomy;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import { Config } from '../entity/config';
|
|
2
2
|
import { Fs } from '@internal/domain/fs/type';
|
|
3
|
+
/**
|
|
4
|
+
* Load configuration with custom parameters
|
|
5
|
+
*/
|
|
3
6
|
export declare function loadConfigWithParams(fs: Fs, configFilename: string, workingDir: string, modulesDir: string, params?: Record<string, any>): Promise<Config>;
|
|
@@ -1,20 +1,44 @@
|
|
|
1
1
|
import { Provider } from '../type';
|
|
2
2
|
import { SourceDescriptor } from './sourcedescriptor';
|
|
3
|
+
/**
|
|
4
|
+
* BaseDirs holds the base directories for the configuration
|
|
5
|
+
*/
|
|
3
6
|
export interface BaseDirs {
|
|
4
7
|
workingDir: string;
|
|
5
8
|
modulesDir: string;
|
|
6
9
|
publishDir: string;
|
|
7
10
|
cacheDir: string;
|
|
8
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* ConfigLoader loads and assembles configuration
|
|
14
|
+
*/
|
|
9
15
|
export declare class ConfigLoader {
|
|
10
16
|
private cfg;
|
|
11
17
|
private sourceDescriptor;
|
|
12
18
|
private baseDirs;
|
|
13
19
|
constructor(sourceDescriptor: SourceDescriptor, baseDirs: BaseDirs);
|
|
20
|
+
/**
|
|
21
|
+
* Load configuration by default
|
|
22
|
+
*/
|
|
14
23
|
loadConfigByDefault(): Promise<Provider>;
|
|
24
|
+
/**
|
|
25
|
+
* Delete merge strategies
|
|
26
|
+
*/
|
|
15
27
|
deleteMergeStrategies(): void;
|
|
28
|
+
/**
|
|
29
|
+
* Load provider from config file
|
|
30
|
+
*/
|
|
16
31
|
private loadProvider;
|
|
32
|
+
/**
|
|
33
|
+
* Apply default configuration settings
|
|
34
|
+
*/
|
|
17
35
|
private applyDefaultConfig;
|
|
36
|
+
/**
|
|
37
|
+
* Check if file exists
|
|
38
|
+
*/
|
|
18
39
|
private fileExists;
|
|
40
|
+
/**
|
|
41
|
+
* Load configuration from file
|
|
42
|
+
*/
|
|
19
43
|
private loadConfigFromFile;
|
|
20
44
|
}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { Provider } from '../type';
|
|
2
|
+
/**
|
|
3
|
+
* DefaultConfigProvider is a Provider backed by a map where all keys are lower case
|
|
4
|
+
* All methods are thread safe (in single-threaded JS environment)
|
|
5
|
+
*/
|
|
2
6
|
export declare class DefaultConfigProvider implements Provider {
|
|
3
7
|
private root;
|
|
4
8
|
private keyCache;
|
|
@@ -21,5 +25,11 @@ export declare class DefaultConfigProvider implements Provider {
|
|
|
21
25
|
walkParams(walkFn: (params: Record<string, any>) => boolean): void;
|
|
22
26
|
isSet(key: string): boolean;
|
|
23
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* Create a Provider backed by params
|
|
30
|
+
*/
|
|
24
31
|
export declare function newFromParams(params: Record<string, any>): Provider;
|
|
32
|
+
/**
|
|
33
|
+
* Create a Provider backed by an empty params object
|
|
34
|
+
*/
|
|
25
35
|
export declare function newDefaultProvider(): Provider;
|
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
import { Fs } from '@internal/domain/fs/type';
|
|
2
|
+
/**
|
|
3
|
+
* SourceDescriptor describes where to find the config (e.g. config.toml etc.)
|
|
4
|
+
*/
|
|
2
5
|
export interface SourceDescriptor {
|
|
6
|
+
/**
|
|
7
|
+
* Get the filesystem
|
|
8
|
+
*/
|
|
3
9
|
fs(): Fs;
|
|
10
|
+
/**
|
|
11
|
+
* Get the filename - RelPath to the config file to use, e.g. /my/project/config.toml
|
|
12
|
+
*/
|
|
4
13
|
filename(): string;
|
|
5
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* Create a new SourceDescriptor
|
|
17
|
+
*/
|
|
6
18
|
export declare function newSourceDescriptor(fs: Fs, filename: string): SourceDescriptor;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Provider provides the configuration settings interface
|
|
3
|
+
*/
|
|
1
4
|
export interface Provider {
|
|
2
5
|
getString(key: string): string;
|
|
3
6
|
getInt(key: string): number;
|
|
@@ -15,21 +18,33 @@ export interface Provider {
|
|
|
15
18
|
walkParams(walkFn: (params: Record<string, any>) => boolean): void;
|
|
16
19
|
isSet(key: string): boolean;
|
|
17
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* Mount configuration for modules
|
|
23
|
+
*/
|
|
18
24
|
export interface Mount {
|
|
19
25
|
source: string;
|
|
20
26
|
target: string;
|
|
21
27
|
lang?: string;
|
|
22
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* Import represents a module import configuration
|
|
31
|
+
*/
|
|
23
32
|
export interface Import {
|
|
24
33
|
path: string;
|
|
25
34
|
url?: string;
|
|
26
35
|
version?: string;
|
|
27
36
|
mounts?: Mount[];
|
|
28
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* ModuleConfig represents module configuration with imports
|
|
40
|
+
*/
|
|
29
41
|
export interface ModuleConfig {
|
|
30
42
|
mounts: Mount[];
|
|
31
43
|
imports: Import[];
|
|
32
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* RootConfig holds all the top-level configuration options
|
|
47
|
+
*/
|
|
33
48
|
export interface RootConfig {
|
|
34
49
|
baseURL: string;
|
|
35
50
|
title: string;
|
|
@@ -63,6 +78,9 @@ export interface BaseDir {
|
|
|
63
78
|
publishDir: string;
|
|
64
79
|
cacheDir: string;
|
|
65
80
|
}
|
|
81
|
+
/**
|
|
82
|
+
* LanguageConfig represents a single language configuration
|
|
83
|
+
*/
|
|
66
84
|
export interface LanguageConfig {
|
|
67
85
|
languageCode: string;
|
|
68
86
|
languageName: string;
|
|
@@ -72,6 +90,9 @@ export interface LanguageConfig {
|
|
|
72
90
|
disabled: boolean;
|
|
73
91
|
params: Record<string, any>;
|
|
74
92
|
}
|
|
93
|
+
/**
|
|
94
|
+
* GoogleAnalytics service configuration
|
|
95
|
+
*/
|
|
75
96
|
export interface GoogleAnalytics {
|
|
76
97
|
disable: boolean;
|
|
77
98
|
respectDoNotTrack: boolean;
|
|
@@ -81,37 +102,61 @@ export interface X {
|
|
|
81
102
|
respectDoNotTrack: boolean;
|
|
82
103
|
disableInlineCSS: boolean;
|
|
83
104
|
}
|
|
105
|
+
/**
|
|
106
|
+
* Disqus service configuration
|
|
107
|
+
*/
|
|
84
108
|
export interface Disqus {
|
|
85
109
|
disable: boolean;
|
|
86
110
|
shortname: string;
|
|
87
111
|
}
|
|
112
|
+
/**
|
|
113
|
+
* RSS service configuration
|
|
114
|
+
*/
|
|
88
115
|
export interface RSS {
|
|
89
116
|
limit: number;
|
|
90
117
|
}
|
|
118
|
+
/**
|
|
119
|
+
* ServiceConfig holds service-related configurations
|
|
120
|
+
*/
|
|
91
121
|
export interface ServiceConfig {
|
|
92
122
|
disqus: Disqus;
|
|
93
123
|
googleAnalytics: GoogleAnalytics;
|
|
94
124
|
rss: RSS;
|
|
95
125
|
x: X;
|
|
96
126
|
}
|
|
127
|
+
/**
|
|
128
|
+
* Social platform template configuration
|
|
129
|
+
*/
|
|
97
130
|
export interface SocialPlatformTemplate {
|
|
98
131
|
id: string;
|
|
99
132
|
title: string;
|
|
100
133
|
}
|
|
134
|
+
/**
|
|
135
|
+
* User social configuration
|
|
136
|
+
*/
|
|
101
137
|
export interface SocialUserConfig {
|
|
102
138
|
[key: string]: {
|
|
103
139
|
link: string;
|
|
104
140
|
};
|
|
105
141
|
}
|
|
142
|
+
/**
|
|
143
|
+
* Social configuration
|
|
144
|
+
*/
|
|
106
145
|
export interface SocialConfig {
|
|
107
146
|
userConfig: SocialUserConfig;
|
|
108
147
|
platformTemplates: SocialPlatformTemplate[];
|
|
109
148
|
}
|
|
149
|
+
/**
|
|
150
|
+
* ViewName represents a taxonomy view
|
|
151
|
+
*/
|
|
110
152
|
export interface ViewName {
|
|
111
153
|
singular: string;
|
|
112
154
|
plural: string;
|
|
113
155
|
pluralTreeKey: string;
|
|
114
156
|
}
|
|
157
|
+
/**
|
|
158
|
+
* Markdown plugin configuration
|
|
159
|
+
*/
|
|
115
160
|
export interface MarkdownPlugins {
|
|
116
161
|
wikilink: boolean;
|
|
117
162
|
tag: boolean;
|
|
@@ -119,14 +164,25 @@ export interface MarkdownPlugins {
|
|
|
119
164
|
latex: boolean;
|
|
120
165
|
mermaid: boolean;
|
|
121
166
|
}
|
|
167
|
+
/**
|
|
168
|
+
* Markdown configuration
|
|
169
|
+
*/
|
|
122
170
|
export interface MarkdownConfig {
|
|
171
|
+
/** Use internal markdown renderer */
|
|
123
172
|
useInternalRenderer: boolean;
|
|
173
|
+
/** Plugin configuration */
|
|
124
174
|
plugins: MarkdownPlugins;
|
|
125
175
|
}
|
|
176
|
+
/**
|
|
177
|
+
* ConfigError represents configuration related errors
|
|
178
|
+
*/
|
|
126
179
|
export declare class ConfigError extends Error {
|
|
127
180
|
code?: string | undefined;
|
|
128
181
|
constructor(message: string, code?: string | undefined);
|
|
129
182
|
}
|
|
183
|
+
/**
|
|
184
|
+
* Predefined configuration errors
|
|
185
|
+
*/
|
|
130
186
|
export declare const ErrConfigNotFound: ConfigError;
|
|
131
187
|
export declare const ErrInvalidConfig: ConfigError;
|
|
132
188
|
export declare const ErrWorkspaceNotFound: ConfigError;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { LanguageConfig } from '../type';
|
|
2
|
+
/**
|
|
3
|
+
* Default language configuration
|
|
4
|
+
*/
|
|
2
5
|
export declare const DefaultLanguageConfig: Partial<LanguageConfig>;
|
|
3
6
|
export declare function decodeLanguageConfig(data: any): Record<string, LanguageConfig>;
|
|
7
|
+
/**
|
|
8
|
+
* Validates language configuration
|
|
9
|
+
*/
|
|
4
10
|
export declare function validateLanguageConfig(configs: Record<string, LanguageConfig>, defaultLang: string): boolean;
|
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
import { MarkdownConfig, MarkdownPlugins } from '../type';
|
|
2
|
+
/**
|
|
3
|
+
* Default markdown plugin configuration
|
|
4
|
+
* All plugins are enabled by default
|
|
5
|
+
*/
|
|
2
6
|
export declare const DefaultMarkdownPlugins: MarkdownPlugins;
|
|
7
|
+
/**
|
|
8
|
+
* Default markdown configuration
|
|
9
|
+
*/
|
|
3
10
|
export declare const DefaultMarkdownConfig: MarkdownConfig;
|
|
11
|
+
/**
|
|
12
|
+
* Creates a markdown configuration from provider data
|
|
13
|
+
*/
|
|
4
14
|
export declare function decodeMarkdownConfig(data: any): MarkdownConfig;
|
|
15
|
+
/**
|
|
16
|
+
* Checks if markdown configuration uses default settings
|
|
17
|
+
*/
|
|
5
18
|
export declare function isDefaultMarkdownConfig(config: MarkdownConfig): boolean;
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import { ModuleConfig } from '../type';
|
|
2
|
+
/**
|
|
3
|
+
* Empty module configuration
|
|
4
|
+
*/
|
|
2
5
|
export declare const EmptyModuleConfig: ModuleConfig;
|
|
6
|
+
/**
|
|
7
|
+
* Creates a module configuration from provider data
|
|
8
|
+
*/
|
|
3
9
|
export declare function decodeModuleConfig(data: any): ModuleConfig;
|
|
10
|
+
/**
|
|
11
|
+
* Checks if a module configuration is empty
|
|
12
|
+
*/
|
|
4
13
|
export declare function isEmptyModuleConfig(config: ModuleConfig): boolean;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
import { RootConfig } from '../type';
|
|
2
|
+
/**
|
|
3
|
+
* Default root configuration
|
|
4
|
+
*/
|
|
2
5
|
export declare const DefaultRootConfig: Partial<RootConfig>;
|
|
6
|
+
/**
|
|
7
|
+
* Creates a root configuration from provider data
|
|
8
|
+
*/
|
|
3
9
|
export declare function decodeRootConfig(data: any): RootConfig;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
import { ServiceConfig } from '../type';
|
|
2
|
+
/**
|
|
3
|
+
* Default service configuration
|
|
4
|
+
*/
|
|
2
5
|
export declare const DefaultServiceConfig: ServiceConfig;
|
|
6
|
+
/**
|
|
7
|
+
* Creates a service configuration from provider data
|
|
8
|
+
*/
|
|
3
9
|
export declare function decodeServiceConfig(services: any): ServiceConfig;
|
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
import { SocialConfig, SocialPlatformTemplate } from '../type';
|
|
2
|
+
/**
|
|
3
|
+
* Predefined social platform templates
|
|
4
|
+
* Based on popular social platforms with their titles
|
|
5
|
+
*/
|
|
2
6
|
export declare const DefaultSocialPlatformTemplates: SocialPlatformTemplate[];
|
|
7
|
+
/**
|
|
8
|
+
* Default social configuration
|
|
9
|
+
*/
|
|
3
10
|
export declare const DefaultSocialConfig: SocialConfig;
|
|
11
|
+
/**
|
|
12
|
+
* Creates a social configuration from provider data
|
|
13
|
+
*/
|
|
4
14
|
export declare function decodeSocialConfig(social: any): SocialConfig;
|
|
15
|
+
/**
|
|
16
|
+
* Get social platform template by ID
|
|
17
|
+
*/
|
|
5
18
|
export declare function getSocialPlatformTemplate(id: string): SocialPlatformTemplate | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Get all available social platform IDs
|
|
21
|
+
*/
|
|
6
22
|
export declare function getAvailableSocialPlatforms(): string[];
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
import { ViewName } from '../type';
|
|
2
|
+
/**
|
|
3
|
+
* Default taxonomies
|
|
4
|
+
*/
|
|
2
5
|
export declare const DefaultTaxonomies: Record<string, string>;
|
|
6
|
+
/**
|
|
7
|
+
* Creates a clean tree key for taxonomy
|
|
8
|
+
*/
|
|
3
9
|
export declare function cleanTreeKey(...elems: string[]): string;
|
|
10
|
+
/**
|
|
11
|
+
* Creates taxonomy views from taxonomies configuration
|
|
12
|
+
*/
|
|
4
13
|
export declare function setupTaxonomyViews(taxonomies: Record<string, string>): ViewName[];
|
|
14
|
+
/**
|
|
15
|
+
* Creates taxonomy configuration from provider data
|
|
16
|
+
*/
|
|
5
17
|
export declare function decodeTaxonomyConfig(data: any): Record<string, string>;
|
|
@@ -15,16 +15,52 @@ export declare class Content {
|
|
|
15
15
|
collectPages(): Promise<void>;
|
|
16
16
|
private process;
|
|
17
17
|
private assemble;
|
|
18
|
+
/**
|
|
19
|
+
* GetPageSources - exact replica of Go's GetPageSources method
|
|
20
|
+
*/
|
|
18
21
|
getPageSources(page: Page): Promise<PageSource[]>;
|
|
22
|
+
/**
|
|
23
|
+
* GlobalPages - exact replica of Go's GlobalPages method
|
|
24
|
+
*/
|
|
19
25
|
globalPages(langIndex: number): Promise<Pages>;
|
|
20
26
|
globalRegularPages(): Promise<Pages>;
|
|
27
|
+
/**
|
|
28
|
+
* WalkPages - exact replica of Go's WalkPages method
|
|
29
|
+
* TypeScript equivalent of golang/internal/domain/contenthub/entity/walk.go:WalkPages
|
|
30
|
+
*/
|
|
21
31
|
walkPages(langIndex: number, walker: (page: Page) => Promise<void>): Promise<void>;
|
|
32
|
+
/**
|
|
33
|
+
* WalkTaxonomies - exact replica of Go's WalkTaxonomies method
|
|
34
|
+
* TypeScript equivalent of golang/internal/domain/contenthub/entity/walk.go:WalkTaxonomies
|
|
35
|
+
*/
|
|
22
36
|
walkTaxonomies(langIndex: number, walker: WalkTaxonomyFunc): Promise<void>;
|
|
37
|
+
/**
|
|
38
|
+
* GetPageFromPath - TypeScript equivalent of Go's PageFinder.GetPageFromPath
|
|
39
|
+
* This is the core content domain business logic for finding pages by path
|
|
40
|
+
*/
|
|
23
41
|
getPageFromPath(langIndex: number, path: string): Page | null;
|
|
24
42
|
getPageFromFile(langIndex: number, file: FileInfo): Page | null;
|
|
25
43
|
handleChangeFiles(fileMetaInfos: Map<string, FileMetaInfo>): Promise<string[]>;
|
|
44
|
+
/**
|
|
45
|
+
* 添加或更新文件到 PageMap,参考 collectDir 中的实现
|
|
46
|
+
*/
|
|
26
47
|
private addOrUpdateFile;
|
|
48
|
+
/**
|
|
49
|
+
* Translate a message for a specific language
|
|
50
|
+
* @param lang Language code
|
|
51
|
+
* @param translationID Translation identifier
|
|
52
|
+
* @returns Translated string
|
|
53
|
+
*/
|
|
27
54
|
translate(lang: string, translationID: string): string;
|
|
55
|
+
/**
|
|
56
|
+
* Get available translation languages
|
|
57
|
+
* @returns Array of language codes
|
|
58
|
+
*/
|
|
28
59
|
getAvailableLanguages(): string[];
|
|
60
|
+
/**
|
|
61
|
+
* Check if a language has translation support
|
|
62
|
+
* @param lang Language code
|
|
63
|
+
* @returns True if language is supported
|
|
64
|
+
*/
|
|
29
65
|
hasLanguageSupport(lang: string): boolean;
|
|
30
66
|
}
|
|
@@ -26,13 +26,36 @@ export declare class PageImpl implements Page {
|
|
|
26
26
|
section(): string;
|
|
27
27
|
paths(): Path;
|
|
28
28
|
path(): string;
|
|
29
|
+
/**
|
|
30
|
+
* Get page slug for PageGraph (Quartz-compatible format)
|
|
31
|
+
* Slug format: "posts/my-post" (no leading slash, no extension)
|
|
32
|
+
*
|
|
33
|
+
* Examples:
|
|
34
|
+
* - "/posts/my-post.md" → "posts/my-post"
|
|
35
|
+
* - "/posts/index.md" → "posts"
|
|
36
|
+
* - "/about.md" → "about"
|
|
37
|
+
* - "/index.md" → "index"
|
|
38
|
+
*/
|
|
29
39
|
slug(): string;
|
|
40
|
+
/**
|
|
41
|
+
* Convert path to slug (Quartz-compatible)
|
|
42
|
+
*
|
|
43
|
+
* Rules:
|
|
44
|
+
* 1. Remove leading slash
|
|
45
|
+
* 2. Remove file extension
|
|
46
|
+
* 3. Handle index files (index → parent folder)
|
|
47
|
+
* 4. Handle _index files (Hugo-style section index)
|
|
48
|
+
*/
|
|
30
49
|
private pathToSlug;
|
|
31
50
|
posOffset(offset: number): Promise<Position>;
|
|
32
51
|
description(): string;
|
|
33
52
|
get Description(): string;
|
|
34
53
|
StaticURL(src: string): string;
|
|
35
54
|
params(): Record<string, any>;
|
|
55
|
+
/**
|
|
56
|
+
* Template-friendly Params property getter
|
|
57
|
+
* Allows templates to access .Params instead of .params()
|
|
58
|
+
*/
|
|
36
59
|
get Params(): Record<string, any>;
|
|
37
60
|
store(): Scratch;
|
|
38
61
|
get Store(): Scratch;
|
|
@@ -28,35 +28,118 @@ export declare class PageBuilder {
|
|
|
28
28
|
private renderableDocument;
|
|
29
29
|
constructor(urlSvc: URLService, langSvc: LangService, taxonomySvc: TaxonomyService, templateSvc: Template | null, pageMapper: PageMap | null, taxonomy: Taxonomy, term: Term, section: Section, standalone: Standalone, converter: Converter, contentHub: ContentHub | null);
|
|
30
30
|
withSource(source: Source): PageBuilder;
|
|
31
|
+
/**
|
|
32
|
+
* WithLangIdx - exact replica of Go's WithLangIdx method
|
|
33
|
+
*/
|
|
31
34
|
withLangIdx(idx: number): PageBuilder;
|
|
35
|
+
/**
|
|
36
|
+
* Reset - exact replica of Go's reset method
|
|
37
|
+
*/
|
|
32
38
|
private reset;
|
|
39
|
+
/**
|
|
40
|
+
* Build - exact replica of Go's Build method
|
|
41
|
+
*/
|
|
33
42
|
build(): Promise<Page>;
|
|
43
|
+
/**
|
|
44
|
+
* KindBuild - exact replica of Go's KindBuild method
|
|
45
|
+
*/
|
|
34
46
|
kindBuild(): Promise<Page>;
|
|
47
|
+
/**
|
|
48
|
+
* Build internal - exact replica of Go's build method
|
|
49
|
+
*/
|
|
35
50
|
private buildInternal;
|
|
51
|
+
/**
|
|
52
|
+
* Build page - exact replica of Go's buildPage method
|
|
53
|
+
*/
|
|
36
54
|
private buildPage;
|
|
55
|
+
/**
|
|
56
|
+
* Build page with kind - exact replica of Go's buildPageWithKind method
|
|
57
|
+
*/
|
|
37
58
|
private buildPageWithKind;
|
|
59
|
+
/**
|
|
60
|
+
* Apply front matter - exact replica of Go's applyFrontMatter method
|
|
61
|
+
*/
|
|
38
62
|
private applyFrontMatter;
|
|
63
|
+
/**
|
|
64
|
+
* Build home - exact replica of Go's buildHome method
|
|
65
|
+
*/
|
|
39
66
|
private buildHome;
|
|
67
|
+
/**
|
|
68
|
+
* Build section - exact replica of Go's buildSection method
|
|
69
|
+
*/
|
|
40
70
|
private buildSection;
|
|
71
|
+
/**
|
|
72
|
+
* Build 404 - exact replica of Go's build404 method
|
|
73
|
+
*/
|
|
41
74
|
private build404;
|
|
75
|
+
/**
|
|
76
|
+
* Build sitemap - exact replica of Go's buildSitemap method
|
|
77
|
+
*/
|
|
42
78
|
private buildSitemap;
|
|
79
|
+
/**
|
|
80
|
+
* Build taxonomy - exact replica of Go's buildTaxonomy method
|
|
81
|
+
*/
|
|
43
82
|
private buildTaxonomy;
|
|
83
|
+
/**
|
|
84
|
+
* Build term - exact replica of Go's buildTerm method
|
|
85
|
+
*/
|
|
44
86
|
private buildTerm;
|
|
45
87
|
private render;
|
|
46
88
|
private parse;
|
|
89
|
+
/**
|
|
90
|
+
* Parse terms - exact replica of Go's parseTerms method
|
|
91
|
+
*/
|
|
47
92
|
private parseTerms;
|
|
93
|
+
/**
|
|
94
|
+
* Parse kind - exact replica of Go's parseKind method
|
|
95
|
+
*/
|
|
48
96
|
private parseKind;
|
|
97
|
+
/**
|
|
98
|
+
* Parse language by default - exact replica of Go's parseLanguageByDefault method
|
|
99
|
+
*/
|
|
49
100
|
private parseLanguageByDefault;
|
|
101
|
+
/**
|
|
102
|
+
* Parse language by index - exact replica of Go's parseLanguageByIdx method
|
|
103
|
+
*/
|
|
50
104
|
private parseLanguageByIdx;
|
|
105
|
+
/**
|
|
106
|
+
* Parse language - exact replica of Go's parseLanguage method
|
|
107
|
+
*/
|
|
51
108
|
private parseLanguage;
|
|
109
|
+
/**
|
|
110
|
+
* Parse front matter - exact replica of Go's parseFrontMatter method
|
|
111
|
+
*/
|
|
52
112
|
private parseFrontMatter;
|
|
113
|
+
/**
|
|
114
|
+
* Create shortcode renderer - returns a simple renderer for shortcodes
|
|
115
|
+
*/
|
|
53
116
|
private createShortcodeRenderer;
|
|
54
117
|
private doRenderShortcode;
|
|
55
118
|
private renderShortcodeMarkdown;
|
|
119
|
+
/**
|
|
120
|
+
* Build pagination - creates pagination for page
|
|
121
|
+
* TypeScript equivalent of Go's buildPagination method
|
|
122
|
+
*/
|
|
56
123
|
private buildPagination;
|
|
124
|
+
/**
|
|
125
|
+
* Adapt pagination - creates empty pagination for pages that don't support it
|
|
126
|
+
* TypeScript equivalent of Go's adaptPagination method
|
|
127
|
+
*/
|
|
57
128
|
private adaptPagination;
|
|
129
|
+
/**
|
|
130
|
+
* Build output - builds page output
|
|
131
|
+
*/
|
|
58
132
|
private buildOutput;
|
|
133
|
+
/**
|
|
134
|
+
* New page - creates a new page instance based on Go version
|
|
135
|
+
*/
|
|
59
136
|
private newPage;
|
|
137
|
+
/**
|
|
138
|
+
* New taxonomy - creates a new taxonomy page
|
|
139
|
+
*/
|
|
60
140
|
private newTaxonomy;
|
|
141
|
+
/**
|
|
142
|
+
* New term - creates a new term page
|
|
143
|
+
*/
|
|
61
144
|
private newTerm;
|
|
62
145
|
}
|