enya-agent 0.1.0
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/.env.example +20 -0
- package/.github/workflows/ci.yml +70 -0
- package/.github/workflows/publish.yml +250 -0
- package/.gitmodules +3 -0
- package/Cargo.lock +3584 -0
- package/Cargo.toml +97 -0
- package/crates/enact/Cargo.toml +27 -0
- package/crates/enact/src/lib.rs +60 -0
- package/crates/enact-a2a/Cargo.toml +25 -0
- package/crates/enact-a2a/src/lib.rs +411 -0
- package/crates/enact-channels/Cargo.toml +64 -0
- package/crates/enact-channels/examples/README.md +80 -0
- package/crates/enact-channels/examples/channel_bot.rs +169 -0
- package/crates/enact-channels/examples/telegram-echo.rs +34 -0
- package/crates/enact-channels/examples/whatsapp-echo.rs +142 -0
- package/crates/enact-channels/src/config.rs +213 -0
- package/crates/enact-channels/src/lib.rs +25 -0
- package/crates/enact-channels/src/runtime.rs +237 -0
- package/crates/enact-channels/src/security/mod.rs +5 -0
- package/crates/enact-channels/src/security/pairing.rs +205 -0
- package/crates/enact-channels/src/teams.rs +601 -0
- package/crates/enact-channels/src/telegram.rs +2833 -0
- package/crates/enact-channels/src/traits.rs +200 -0
- package/crates/enact-channels/src/webhook.rs +262 -0
- package/crates/enact-channels/src/whatsapp.rs +310 -0
- package/crates/enact-cli/Cargo.toml +40 -0
- package/crates/enact-cli/src/commands/doctor.rs +62 -0
- package/crates/enact-cli/src/commands/mod.rs +3 -0
- package/crates/enact-cli/src/commands/run.rs +69 -0
- package/crates/enact-cli/src/commands/serve.rs +81 -0
- package/crates/enact-cli/src/config.rs +2 -0
- package/crates/enact-cli/src/main.rs +79 -0
- package/crates/enact-config/Cargo.toml +36 -0
- package/crates/enact-config/ENV_VAR_MAPPING.md +135 -0
- package/crates/enact-config/QUICK_REFERENCE.md +92 -0
- package/crates/enact-config/README.md +107 -0
- package/crates/enact-config/TESTING.md +161 -0
- package/crates/enact-config/examples/test-env-vars.rs +100 -0
- package/crates/enact-config/src/config.rs +399 -0
- package/crates/enact-config/src/encrypted_store.rs +211 -0
- package/crates/enact-config/src/lib.rs +298 -0
- package/crates/enact-config/src/secrets.rs +149 -0
- package/crates/enact-config/src/sync.rs +260 -0
- package/crates/enact-config/test-env-vars.sh +34 -0
- package/crates/enact-config/tests/README.md +99 -0
- package/crates/enact-config/tests/config_integration_test.rs +202 -0
- package/crates/enact-config/tests/security_test.rs +140 -0
- package/crates/enact-context/Cargo.toml +41 -0
- package/crates/enact-context/src/budget.rs +314 -0
- package/crates/enact-context/src/calibrator.rs +535 -0
- package/crates/enact-context/src/compactor.rs +392 -0
- package/crates/enact-context/src/condenser.rs +826 -0
- package/crates/enact-context/src/lib.rs +94 -0
- package/crates/enact-context/src/segment.rs +238 -0
- package/crates/enact-context/src/step_context.rs +645 -0
- package/crates/enact-context/src/token_counter.rs +148 -0
- package/crates/enact-context/src/window.rs +372 -0
- package/crates/enact-core/Cargo.toml +42 -0
- package/crates/enact-core/README.md +98 -0
- package/crates/enact-core/src/background/executor.rs +524 -0
- package/crates/enact-core/src/background/mod.rs +48 -0
- package/crates/enact-core/src/background/target_binding.rs +390 -0
- package/crates/enact-core/src/background/trigger.rs +511 -0
- package/crates/enact-core/src/callable/callable.rs +152 -0
- package/crates/enact-core/src/callable/composite.rs +817 -0
- package/crates/enact-core/src/callable/graph.rs +104 -0
- package/crates/enact-core/src/callable/llm.rs +211 -0
- package/crates/enact-core/src/callable/mod.rs +64 -0
- package/crates/enact-core/src/callable/registry.rs +206 -0
- package/crates/enact-core/src/context/execution_context.rs +757 -0
- package/crates/enact-core/src/context/invocation.rs +99 -0
- package/crates/enact-core/src/context/mod.rs +50 -0
- package/crates/enact-core/src/context/tenant.rs +175 -0
- package/crates/enact-core/src/context/trace.rs +127 -0
- package/crates/enact-core/src/flow/conditional.rs +293 -0
- package/crates/enact-core/src/flow/mod.rs +43 -0
- package/crates/enact-core/src/flow/parallel.rs +437 -0
- package/crates/enact-core/src/flow/repeat.rs +534 -0
- package/crates/enact-core/src/flow/sequential.rs +248 -0
- package/crates/enact-core/src/graph/checkpoint.rs +79 -0
- package/crates/enact-core/src/graph/checkpoint_store.rs +76 -0
- package/crates/enact-core/src/graph/compiled.rs +189 -0
- package/crates/enact-core/src/graph/edge.rs +59 -0
- package/crates/enact-core/src/graph/graph_schema.rs +218 -0
- package/crates/enact-core/src/graph/loader.rs +155 -0
- package/crates/enact-core/src/graph/mod.rs +18 -0
- package/crates/enact-core/src/graph/node/function.rs +49 -0
- package/crates/enact-core/src/graph/node/mod.rs +48 -0
- package/crates/enact-core/src/graph/schema.rs +62 -0
- package/crates/enact-core/src/inbox/message.rs +405 -0
- package/crates/enact-core/src/inbox/mod.rs +31 -0
- package/crates/enact-core/src/inbox/store.rs +355 -0
- package/crates/enact-core/src/kernel/artifact/filesystem.rs +546 -0
- package/crates/enact-core/src/kernel/artifact/metadata.rs +283 -0
- package/crates/enact-core/src/kernel/artifact/mod.rs +27 -0
- package/crates/enact-core/src/kernel/artifact/store.rs +427 -0
- package/crates/enact-core/src/kernel/enforcement.rs +1315 -0
- package/crates/enact-core/src/kernel/error.rs +1200 -0
- package/crates/enact-core/src/kernel/event.rs +1394 -0
- package/crates/enact-core/src/kernel/execution_model.rs +831 -0
- package/crates/enact-core/src/kernel/execution_state.rs +189 -0
- package/crates/enact-core/src/kernel/execution_strategy.rs +117 -0
- package/crates/enact-core/src/kernel/ids.rs +2086 -0
- package/crates/enact-core/src/kernel/interrupt.rs +125 -0
- package/crates/enact-core/src/kernel/kernel.rs +1283 -0
- package/crates/enact-core/src/kernel/mod.rs +205 -0
- package/crates/enact-core/src/kernel/persistence/event_store.rs +270 -0
- package/crates/enact-core/src/kernel/persistence/message_store.rs +908 -0
- package/crates/enact-core/src/kernel/persistence/mod.rs +102 -0
- package/crates/enact-core/src/kernel/persistence/state_store.rs +228 -0
- package/crates/enact-core/src/kernel/persistence/vector_store.rs +299 -0
- package/crates/enact-core/src/kernel/reducer.rs +808 -0
- package/crates/enact-core/src/kernel/replay.rs +153 -0
- package/crates/enact-core/src/lib.rs +413 -0
- package/crates/enact-core/src/memory/episodic.rs +0 -0
- package/crates/enact-core/src/memory/mod.rs +6 -0
- package/crates/enact-core/src/memory/semantic.rs +0 -0
- package/crates/enact-core/src/memory/trait.rs +0 -0
- package/crates/enact-core/src/memory/vector_db.rs +0 -0
- package/crates/enact-core/src/memory/working.rs +0 -0
- package/crates/enact-core/src/policy/execution_policy.rs +292 -0
- package/crates/enact-core/src/policy/filters.rs +458 -0
- package/crates/enact-core/src/policy/input_processor.rs +407 -0
- package/crates/enact-core/src/policy/long_running.rs +134 -0
- package/crates/enact-core/src/policy/mod.rs +193 -0
- package/crates/enact-core/src/policy/pii_input.rs +274 -0
- package/crates/enact-core/src/policy/tenant_policy.rs +453 -0
- package/crates/enact-core/src/policy/tool_policy.rs +407 -0
- package/crates/enact-core/src/providers/mod.rs +63 -0
- package/crates/enact-core/src/providers/trait.rs +292 -0
- package/crates/enact-core/src/runner/callbacks.rs +6 -0
- package/crates/enact-core/src/runner/execution_runner.rs +476 -0
- package/crates/enact-core/src/runner/loop.rs +117 -0
- package/crates/enact-core/src/runner/mod.rs +58 -0
- package/crates/enact-core/src/runner/protected_runner.rs +280 -0
- package/crates/enact-core/src/signal/inmemory.rs +231 -0
- package/crates/enact-core/src/signal/mod.rs +108 -0
- package/crates/enact-core/src/streaming/event_logger.rs +195 -0
- package/crates/enact-core/src/streaming/event_stream.rs +1423 -0
- package/crates/enact-core/src/streaming/mod.rs +108 -0
- package/crates/enact-core/src/streaming/pause_cancel.rs +0 -0
- package/crates/enact-core/src/streaming/protected_emitter.rs +173 -0
- package/crates/enact-core/src/streaming/protection/context.rs +136 -0
- package/crates/enact-core/src/streaming/protection/encryption.rs +289 -0
- package/crates/enact-core/src/streaming/protection/mod.rs +43 -0
- package/crates/enact-core/src/streaming/protection/pii_protection.rs +243 -0
- package/crates/enact-core/src/streaming/protection/processor.rs +166 -0
- package/crates/enact-core/src/streaming/sse.rs +0 -0
- package/crates/enact-core/src/telemetry/exporter.rs +0 -0
- package/crates/enact-core/src/telemetry/init.rs +0 -0
- package/crates/enact-core/src/telemetry/mod.rs +49 -0
- package/crates/enact-core/src/telemetry/spans.rs +245 -0
- package/crates/enact-core/src/tool/agent_tool.rs +177 -0
- package/crates/enact-core/src/tool/browser/mod.rs +0 -0
- package/crates/enact-core/src/tool/browser/webdriver.rs +0 -0
- package/crates/enact-core/src/tool/cost.rs +247 -0
- package/crates/enact-core/src/tool/discovery.rs +0 -0
- package/crates/enact-core/src/tool/dispatcher.rs +347 -0
- package/crates/enact-core/src/tool/filesystem.rs +231 -0
- package/crates/enact-core/src/tool/function.rs +99 -0
- package/crates/enact-core/src/tool/git.rs +162 -0
- package/crates/enact-core/src/tool/http.rs +214 -0
- package/crates/enact-core/src/tool/mcp/client.rs +0 -0
- package/crates/enact-core/src/tool/mcp/mod.rs +0 -0
- package/crates/enact-core/src/tool/mod.rs +51 -0
- package/crates/enact-core/src/tool/reasoning/debugging.rs +0 -0
- package/crates/enact-core/src/tool/reasoning/mcts.rs +0 -0
- package/crates/enact-core/src/tool/reasoning/mod.rs +0 -0
- package/crates/enact-core/src/tool/reasoning/sequential.rs +0 -0
- package/crates/enact-core/src/tool/sandbox/dagger.rs +0 -0
- package/crates/enact-core/src/tool/sandbox/mod.rs +0 -0
- package/crates/enact-core/src/tool/shell.rs +147 -0
- package/crates/enact-core/src/tool/trait.rs +33 -0
- package/crates/enact-core/src/tool/web_search.rs +277 -0
- package/crates/enact-core/src/util/config.rs +0 -0
- package/crates/enact-core/src/util/errors.rs +0 -0
- package/crates/enact-core/src/util/mod.rs +6 -0
- package/crates/enact-core/tests/airgapped_e2e_test.rs +291 -0
- package/crates/enact-core/tests/e2e_agentic_loop.rs +119 -0
- package/crates/enact-core/tests/e2e_test.rs +259 -0
- package/crates/enact-core/tests/graph_test.rs +130 -0
- package/crates/enact-core/tests/stream_event_id_validation.rs +435 -0
- package/crates/enact-cron/Cargo.toml +28 -0
- package/crates/enact-cron/src/lib.rs +44 -0
- package/crates/enact-cron/src/schedule.rs +156 -0
- package/crates/enact-cron/src/store.rs +589 -0
- package/crates/enact-cron/src/types.rs +148 -0
- package/crates/enact-gateway/Cargo.toml +31 -0
- package/crates/enact-gateway/README.md +30 -0
- package/crates/enact-gateway/examples/whatsapp-gateway-runner-mock.rs +59 -0
- package/crates/enact-gateway/examples/whatsapp-gateway.rs +42 -0
- package/crates/enact-gateway/src/lib.rs +582 -0
- package/crates/enact-mcp/Cargo.toml +24 -0
- package/crates/enact-mcp/src/lib.rs +178 -0
- package/crates/enact-memory/Cargo.toml +25 -0
- package/crates/enact-memory/src/backend.rs +20 -0
- package/crates/enact-memory/src/chunker.rs +230 -0
- package/crates/enact-memory/src/embeddings.rs +221 -0
- package/crates/enact-memory/src/lib.rs +67 -0
- package/crates/enact-memory/src/markdown.rs +127 -0
- package/crates/enact-memory/src/none.rs +61 -0
- package/crates/enact-memory/src/sqlite.rs +276 -0
- package/crates/enact-memory/src/traits.rs +65 -0
- package/crates/enact-memory/src/vector.rs +198 -0
- package/crates/enact-oauth/Cargo.toml +27 -0
- package/crates/enact-oauth/src/lib.rs +584 -0
- package/crates/enact-observability/Cargo.toml +22 -0
- package/crates/enact-observability/src/lib.rs +197 -0
- package/crates/enact-providers/Cargo.toml +33 -0
- package/crates/enact-providers/examples/hello-agent.rs +33 -0
- package/crates/enact-providers/src/anthropic.rs +182 -0
- package/crates/enact-providers/src/azure.rs +96 -0
- package/crates/enact-providers/src/bridge.rs +221 -0
- package/crates/enact-providers/src/gemini.rs +227 -0
- package/crates/enact-providers/src/http.rs +78 -0
- package/crates/enact-providers/src/lib.rs +53 -0
- package/crates/enact-providers/src/openai_compatible.rs +167 -0
- package/crates/enact-providers/src/openrouter.rs +33 -0
- package/crates/enact-runner/Cargo.toml +24 -0
- package/crates/enact-runner/README.md +76 -0
- package/crates/enact-runner/src/compaction.rs +225 -0
- package/crates/enact-runner/src/config.rs +118 -0
- package/crates/enact-runner/src/lib.rs +63 -0
- package/crates/enact-runner/src/loop_driver.rs +414 -0
- package/crates/enact-runner/src/parser.rs +421 -0
- package/crates/enact-runner/src/retry.rs +262 -0
- package/crates/enact-runner/tests/integration.rs +278 -0
- package/crates/enact-security/Cargo.toml +22 -0
- package/crates/enact-security/src/audit.rs +375 -0
- package/crates/enact-security/src/lib.rs +37 -0
- package/crates/enact-security/src/policy.rs +406 -0
- package/crates/enact-skills/Cargo.toml +25 -0
- package/crates/enact-skills/src/lib.rs +506 -0
- package/crates/enact-tools/Cargo.toml +22 -0
- package/crates/enact-tools/src/file_read.rs +166 -0
- package/crates/enact-tools/src/file_write.rs +216 -0
- package/crates/enact-tools/src/git_operations.rs +513 -0
- package/crates/enact-tools/src/http_request.rs +417 -0
- package/crates/enact-tools/src/lib.rs +104 -0
- package/crates/enact-tools/src/security.rs +227 -0
- package/crates/enact-tools/src/shell.rs +191 -0
- package/crates/enact-tools/src/traits.rs +159 -0
- package/docs/Makefile +74 -0
- package/docs/config.toml +62 -0
- package/docs/content/_index.md +174 -0
- package/docs/content/a2a/_index.md +431 -0
- package/docs/content/api/_index.md +323 -0
- package/docs/content/channels/_index.md +160 -0
- package/docs/content/channels/teams.md +205 -0
- package/docs/content/channels/telegram.md +182 -0
- package/docs/content/channels/webhook.md +423 -0
- package/docs/content/channels/whatsapp.md +240 -0
- package/docs/content/cli/_index.md +261 -0
- package/docs/content/concepts/_index.md +273 -0
- package/docs/content/configuration/_index.md +241 -0
- package/docs/content/cron/_index.md +248 -0
- package/docs/content/developers/_index.md +278 -0
- package/docs/content/getting-started/_index.md +180 -0
- package/docs/content/installation/_index.md +186 -0
- package/docs/content/installation/uninstall.md +101 -0
- package/docs/content/installation/updating.md +120 -0
- package/docs/content/mcp/_index.md +215 -0
- package/docs/content/memory/_index.md +163 -0
- package/docs/content/oauth/_index.md +515 -0
- package/docs/content/providers/_index.md +206 -0
- package/docs/content/roadmap/_index.md +199 -0
- package/docs/content/security/_index.md +219 -0
- package/docs/content/skills/_index.md +228 -0
- package/docs/content/tools/_index.md +485 -0
- package/docs/content/troubleshooting/_index.md +259 -0
- package/docs/content/yaml-schema/_index.md +294 -0
- package/docs/static/giallo-dark.css +91 -0
- package/docs/static/giallo-light.css +91 -0
- package/docs/themes/tanuki/.github/workflows/deploy.yml +44 -0
- package/docs/themes/tanuki/LICENSE +21 -0
- package/docs/themes/tanuki/README.md +166 -0
- package/docs/themes/tanuki/examples/blog/config.toml +58 -0
- package/docs/themes/tanuki/examples/blog/content/_index.md +4 -0
- package/docs/themes/tanuki/examples/blog/content/about.md +33 -0
- package/docs/themes/tanuki/examples/blog/content/blog/_index.md +7 -0
- package/docs/themes/tanuki/examples/blog/content/blog/api-design-best-practices.md +245 -0
- package/docs/themes/tanuki/examples/blog/content/blog/building-accessible-websites.md +147 -0
- package/docs/themes/tanuki/examples/blog/content/blog/css-grid-vs-flexbox.md +165 -0
- package/docs/themes/tanuki/examples/blog/content/blog/customizing-catppuccin-colors.md +137 -0
- package/docs/themes/tanuki/examples/blog/content/blog/dark-mode-best-practices.md +82 -0
- package/docs/themes/tanuki/examples/blog/content/blog/docker-essentials.md +301 -0
- package/docs/themes/tanuki/examples/blog/content/blog/getting-started-with-zola.md +129 -0
- package/docs/themes/tanuki/examples/blog/content/blog/git-workflow-for-content.md +112 -0
- package/docs/themes/tanuki/examples/blog/content/blog/introduction-to-webassembly.md +183 -0
- package/docs/themes/tanuki/examples/blog/content/blog/modern-javascript-features.md +234 -0
- package/docs/themes/tanuki/examples/blog/content/blog/testing-strategies.md +311 -0
- package/docs/themes/tanuki/examples/blog/content/blog/typography-for-developers.md +104 -0
- package/docs/themes/tanuki/examples/blog/content/blog/welcome-to-tanuki.md +67 -0
- package/docs/themes/tanuki/examples/blog/content/blog/why-static-sites.md +85 -0
- package/docs/themes/tanuki/examples/blog/content/projects.md +64 -0
- package/docs/themes/tanuki/examples/book/config.toml +17 -0
- package/docs/themes/tanuki/examples/book/content/_index.md +12 -0
- package/docs/themes/tanuki/examples/book/content/chapter-1.md +90 -0
- package/docs/themes/tanuki/examples/book/content/chapter-2.md +143 -0
- package/docs/themes/tanuki/examples/book/content/chapter-3.md +217 -0
- package/docs/themes/tanuki/examples/book/content/chapter-4.md +224 -0
- package/docs/themes/tanuki/examples/book/content/chapter-5.md +297 -0
- package/docs/themes/tanuki/examples/book/content/print.md +6 -0
- package/docs/themes/tanuki/examples/docs/config.toml +28 -0
- package/docs/themes/tanuki/examples/docs/content/_index.md +20 -0
- package/docs/themes/tanuki/examples/docs/content/components.md +156 -0
- package/docs/themes/tanuki/examples/docs/content/configuration.md +94 -0
- package/docs/themes/tanuki/examples/docs/content/customization.md +202 -0
- package/docs/themes/tanuki/examples/docs/content/deployment.md +204 -0
- package/docs/themes/tanuki/examples/docs/content/installation.md +59 -0
- package/docs/themes/tanuki/examples/docs/content/print.md +6 -0
- package/docs/themes/tanuki/examples/docs/static/img/tanuki-icon.avif +0 -0
- package/docs/themes/tanuki/examples/index.html +2104 -0
- package/docs/themes/tanuki/mise.toml +108 -0
- package/docs/themes/tanuki/sass/base/_catppuccin.scss +164 -0
- package/docs/themes/tanuki/sass/base/_fonts.scss +64 -0
- package/docs/themes/tanuki/sass/base/_reset.scss +152 -0
- package/docs/themes/tanuki/sass/base/_typography.scss +523 -0
- package/docs/themes/tanuki/sass/components/_buttons.scss +209 -0
- package/docs/themes/tanuki/sass/components/_code.scss +457 -0
- package/docs/themes/tanuki/sass/components/_landing.scss +633 -0
- package/docs/themes/tanuki/sass/components/_layout.scss +294 -0
- package/docs/themes/tanuki/sass/components/_navigation.scss +1200 -0
- package/docs/themes/tanuki/sass/components/_print.scss +237 -0
- package/docs/themes/tanuki/sass/components/_search.scss +224 -0
- package/docs/themes/tanuki/sass/components/_sidebar.scss +473 -0
- package/docs/themes/tanuki/sass/components/_theme-toggle.scss +186 -0
- package/docs/themes/tanuki/sass/modes/_blog.scss +366 -0
- package/docs/themes/tanuki/sass/modes/_product.scss +875 -0
- package/docs/themes/tanuki/sass/modes/_raskell.scss +1696 -0
- package/docs/themes/tanuki/sass/patterns/_buttons.scss +183 -0
- package/docs/themes/tanuki/sass/patterns/_cards.scss +144 -0
- package/docs/themes/tanuki/sass/patterns/_index.scss +9 -0
- package/docs/themes/tanuki/sass/patterns/_lists.scss +259 -0
- package/docs/themes/tanuki/sass/patterns/_sections.scss +243 -0
- package/docs/themes/tanuki/sass/style.scss +47 -0
- package/docs/themes/tanuki/sass/tokens/_colors.scss +139 -0
- package/docs/themes/tanuki/sass/tokens/_spacing.scss +100 -0
- package/docs/themes/tanuki/sass/tokens/_typography.scss +186 -0
- package/docs/themes/tanuki/screenshot.png +0 -0
- package/docs/themes/tanuki/sentinel.kdl +59 -0
- package/docs/themes/tanuki/static/elasticlunr.min.js +10 -0
- package/docs/themes/tanuki/static/fonts/GEIST-LICENSE.txt +92 -0
- package/docs/themes/tanuki/static/fonts/Geist-Variable.woff2 +0 -0
- package/docs/themes/tanuki/static/fonts/GeistMono-Variable.woff2 +0 -0
- package/docs/themes/tanuki/static/img/tanuki-icon.avif +0 -0
- package/docs/themes/tanuki/static/img/tanuki-icon.png +0 -0
- package/docs/themes/tanuki/static/js/anchors.js +18 -0
- package/docs/themes/tanuki/static/js/app.js +274 -0
- package/docs/themes/tanuki/static/js/code.js +394 -0
- package/docs/themes/tanuki/static/js/navigation.js +778 -0
- package/docs/themes/tanuki/static/js/scroll-to-top.js +33 -0
- package/docs/themes/tanuki/static/js/search-raskell.js +240 -0
- package/docs/themes/tanuki/static/js/search.js +215 -0
- package/docs/themes/tanuki/static/js/theme.js +169 -0
- package/docs/themes/tanuki/static/syntax-dark.css +151 -0
- package/docs/themes/tanuki/static/syntax-light.css +151 -0
- package/docs/themes/tanuki/static/wasm/sentinel_playground_wasm.js +486 -0
- package/docs/themes/tanuki/static/wasm/sentinel_playground_wasm_bg.wasm +0 -0
- package/docs/themes/tanuki/templates/404.html +52 -0
- package/docs/themes/tanuki/templates/base.html +428 -0
- package/docs/themes/tanuki/templates/blog.html +66 -0
- package/docs/themes/tanuki/templates/home.html +108 -0
- package/docs/themes/tanuki/templates/index.html +178 -0
- package/docs/themes/tanuki/templates/landing.html +168 -0
- package/docs/themes/tanuki/templates/macros/nav.html +128 -0
- package/docs/themes/tanuki/templates/macros/posts.html +101 -0
- package/docs/themes/tanuki/templates/macros/ui.html +159 -0
- package/docs/themes/tanuki/templates/page.html +135 -0
- package/docs/themes/tanuki/templates/partials/footer.html +38 -0
- package/docs/themes/tanuki/templates/partials/header.html +366 -0
- package/docs/themes/tanuki/templates/partials/nav-buttons.html +55 -0
- package/docs/themes/tanuki/templates/partials/nav-overlay.html +81 -0
- package/docs/themes/tanuki/templates/partials/page-toc-panel.html +43 -0
- package/docs/themes/tanuki/templates/partials/search.html +52 -0
- package/docs/themes/tanuki/templates/partials/sidebar.html +107 -0
- package/docs/themes/tanuki/templates/partials/theme-toggle.html +35 -0
- package/docs/themes/tanuki/templates/partials/toc-overlay.html +146 -0
- package/docs/themes/tanuki/templates/partials/version-picker.html +38 -0
- package/docs/themes/tanuki/templates/print.html +244 -0
- package/docs/themes/tanuki/templates/section.html +186 -0
- package/docs/themes/tanuki/templates/taxonomy_list.html +18 -0
- package/docs/themes/tanuki/templates/taxonomy_single.html +31 -0
- package/docs/themes/tanuki/theme.toml +58 -0
- package/examples/hello-agent.rs +55 -0
- package/package.json +36 -0
- package/proto/config.proto +60 -0
- package/proto/events.proto +0 -0
- package/proto/runtime.proto +215 -0
|
@@ -0,0 +1,428 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="{{ lang | default(value='en') }}" data-theme="dark" prefix="og: https://ogp.me/ns#">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<meta name="color-scheme" content="dark light">
|
|
7
|
+
|
|
8
|
+
{# ===== Primary Meta Tags ===== #}
|
|
9
|
+
<title>{% block title %}{{ page.title | default(value=section.title) | default(value=config.title) }}{% endblock %} | {{ config.title }}</title>
|
|
10
|
+
|
|
11
|
+
{# Description #}
|
|
12
|
+
{% if page.description %}
|
|
13
|
+
<meta name="description" content="{{ page.description }}">
|
|
14
|
+
{% elif section.description is defined and section.description %}
|
|
15
|
+
<meta name="description" content="{{ section.description }}">
|
|
16
|
+
{% else %}
|
|
17
|
+
<meta name="description" content="{{ config.description }}">
|
|
18
|
+
{% endif %}
|
|
19
|
+
|
|
20
|
+
{# Keywords from tags #}
|
|
21
|
+
{% if page.taxonomies.tags is defined and page.taxonomies.tags %}
|
|
22
|
+
<meta name="keywords" content="{{ page.taxonomies.tags | join(sep=', ') }}">
|
|
23
|
+
{% elif config.extra.keywords is defined %}
|
|
24
|
+
<meta name="keywords" content="{{ config.extra.keywords }}">
|
|
25
|
+
{% endif %}
|
|
26
|
+
|
|
27
|
+
{# Author #}
|
|
28
|
+
{% if config.extra.author is defined %}
|
|
29
|
+
<meta name="author" content="{{ config.extra.author }}">
|
|
30
|
+
{% endif %}
|
|
31
|
+
|
|
32
|
+
{# Robots #}
|
|
33
|
+
<meta name="robots" content="index, follow">
|
|
34
|
+
<meta name="googlebot" content="index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1">
|
|
35
|
+
|
|
36
|
+
{# Canonical URL #}
|
|
37
|
+
{% if current_url is defined %}
|
|
38
|
+
<link rel="canonical" href="{{ current_url | safe }}">
|
|
39
|
+
<link rel="alternate" hreflang="en" href="{{ current_url | safe }}">
|
|
40
|
+
<link rel="alternate" hreflang="x-default" href="{{ current_url | safe }}">
|
|
41
|
+
{% endif %}
|
|
42
|
+
|
|
43
|
+
{# ===== Open Graph / Facebook ===== #}
|
|
44
|
+
<meta property="og:type" content="{% if page %}article{% else %}website{% endif %}">
|
|
45
|
+
{% if current_url is defined %}
|
|
46
|
+
<meta property="og:url" content="{{ current_url | safe }}">
|
|
47
|
+
{% endif %}
|
|
48
|
+
{% if page.title is defined %}
|
|
49
|
+
<meta property="og:title" content="{{ page.title }}">
|
|
50
|
+
{% elif section.title is defined %}
|
|
51
|
+
<meta property="og:title" content="{{ section.title }}">
|
|
52
|
+
{% else %}
|
|
53
|
+
<meta property="og:title" content="{{ config.title }}">
|
|
54
|
+
{% endif %}
|
|
55
|
+
{% if page.description is defined %}
|
|
56
|
+
<meta property="og:description" content="{{ page.description }}">
|
|
57
|
+
{% elif section.description is defined %}
|
|
58
|
+
<meta property="og:description" content="{{ section.description }}">
|
|
59
|
+
{% else %}
|
|
60
|
+
<meta property="og:description" content="{{ config.description }}">
|
|
61
|
+
{% endif %}
|
|
62
|
+
{% if config.extra.og_image is defined %}
|
|
63
|
+
<meta property="og:image" content="{{ get_url(path=config.extra.og_image) | safe }}">
|
|
64
|
+
<meta property="og:image:width" content="{{ config.extra.og_image_width | default(value=1200) }}">
|
|
65
|
+
<meta property="og:image:height" content="{{ config.extra.og_image_height | default(value=630) }}">
|
|
66
|
+
<meta property="og:image:alt" content="{{ config.extra.og_image_alt | default(value=config.title) }}">
|
|
67
|
+
{% endif %}
|
|
68
|
+
<meta property="og:site_name" content="{{ config.title }}">
|
|
69
|
+
<meta property="og:locale" content="{{ lang | default(value='en') | replace(from='-', to='_') }}">
|
|
70
|
+
|
|
71
|
+
{# Article-specific OG tags #}
|
|
72
|
+
{% if page %}
|
|
73
|
+
{% if page.date is defined and page.date %}
|
|
74
|
+
<meta property="article:published_time" content="{{ page.date | date(format='%Y-%m-%dT%H:%M:%S') }}">
|
|
75
|
+
{% endif %}
|
|
76
|
+
{% if page.updated is defined and page.updated %}
|
|
77
|
+
<meta property="article:modified_time" content="{{ page.updated | date(format='%Y-%m-%dT%H:%M:%S') }}">
|
|
78
|
+
{% endif %}
|
|
79
|
+
{% if page.taxonomies.tags is defined %}
|
|
80
|
+
{% for tag in page.taxonomies.tags %}
|
|
81
|
+
<meta property="article:tag" content="{{ tag }}">
|
|
82
|
+
{% endfor %}
|
|
83
|
+
{% endif %}
|
|
84
|
+
{% endif %}
|
|
85
|
+
|
|
86
|
+
{# ===== Twitter Card ===== #}
|
|
87
|
+
<meta name="twitter:card" content="summary_large_image">
|
|
88
|
+
{% if current_url is defined %}
|
|
89
|
+
<meta name="twitter:url" content="{{ current_url | safe }}">
|
|
90
|
+
{% endif %}
|
|
91
|
+
{% if page.title is defined %}
|
|
92
|
+
<meta name="twitter:title" content="{{ page.title }}">
|
|
93
|
+
{% elif section.title is defined %}
|
|
94
|
+
<meta name="twitter:title" content="{{ section.title }}">
|
|
95
|
+
{% else %}
|
|
96
|
+
<meta name="twitter:title" content="{{ config.title }}">
|
|
97
|
+
{% endif %}
|
|
98
|
+
{% if page.description is defined %}
|
|
99
|
+
<meta name="twitter:description" content="{{ page.description }}">
|
|
100
|
+
{% elif section.description is defined %}
|
|
101
|
+
<meta name="twitter:description" content="{{ section.description }}">
|
|
102
|
+
{% else %}
|
|
103
|
+
<meta name="twitter:description" content="{{ config.description }}">
|
|
104
|
+
{% endif %}
|
|
105
|
+
{% if config.extra.og_image is defined %}
|
|
106
|
+
<meta name="twitter:image" content="{{ get_url(path=config.extra.og_image) | safe }}">
|
|
107
|
+
<meta name="twitter:image:alt" content="{{ config.extra.og_image_alt | default(value=config.title) }}">
|
|
108
|
+
{% endif %}
|
|
109
|
+
{% if config.extra.twitter_site is defined %}
|
|
110
|
+
<meta name="twitter:site" content="{{ config.extra.twitter_site }}">
|
|
111
|
+
{% endif %}
|
|
112
|
+
|
|
113
|
+
{# ===== JSON-LD Structured Data for AEO ===== #}
|
|
114
|
+
<script type="application/ld+json">
|
|
115
|
+
{
|
|
116
|
+
"@context": "https://schema.org",
|
|
117
|
+
"@graph": [
|
|
118
|
+
{
|
|
119
|
+
"@type": "WebSite",
|
|
120
|
+
"@id": "{{ config.base_url | safe }}#website",
|
|
121
|
+
"url": "{{ config.base_url | safe }}",
|
|
122
|
+
"name": "{{ config.title }}",
|
|
123
|
+
"description": "{{ config.description }}",
|
|
124
|
+
"publisher": {
|
|
125
|
+
"@id": "https://zentinelproxy.io/#organization"
|
|
126
|
+
},
|
|
127
|
+
"inLanguage": "{{ lang | default(value='en') }}",
|
|
128
|
+
"potentialAction": {
|
|
129
|
+
"@type": "SearchAction",
|
|
130
|
+
"target": {
|
|
131
|
+
"@type": "EntryPoint",
|
|
132
|
+
"urlTemplate": "{{ config.base_url | safe }}?q={search_term_string}"
|
|
133
|
+
},
|
|
134
|
+
"query-input": "required name=search_term_string"
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"@type": "Organization",
|
|
139
|
+
"@id": "https://zentinelproxy.io/#organization",
|
|
140
|
+
"name": "{{ config.extra.author | default(value='raskell.io') }}",
|
|
141
|
+
"url": "https://zentinelproxy.io",
|
|
142
|
+
"logo": {
|
|
143
|
+
"@type": "ImageObject",
|
|
144
|
+
"url": "https://zentinelproxy.io/img/og-image.png",
|
|
145
|
+
"width": 1200,
|
|
146
|
+
"height": 630
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"@type": "WebPage",
|
|
151
|
+
"@id": "{% if current_url is defined %}{{ current_url | safe }}{% else %}{{ config.base_url | safe }}{% endif %}#webpage",
|
|
152
|
+
"url": "{% if current_url is defined %}{{ current_url | safe }}{% else %}{{ config.base_url | safe }}{% endif %}",
|
|
153
|
+
"name": "{% if page.title is defined %}{{ page.title }}{% elif section.title is defined %}{{ section.title }}{% else %}{{ config.title }}{% endif %}",
|
|
154
|
+
"isPartOf": {
|
|
155
|
+
"@id": "{{ config.base_url | safe }}#website"
|
|
156
|
+
},
|
|
157
|
+
"description": "{% if page.description is defined %}{{ page.description }}{% elif section.description is defined %}{{ section.description }}{% else %}{{ config.description }}{% endif %}",
|
|
158
|
+
"inLanguage": "{{ lang | default(value='en') }}"
|
|
159
|
+
{% if page.date is defined and page.date %},
|
|
160
|
+
"datePublished": "{{ page.date | date(format='%Y-%m-%d') }}"
|
|
161
|
+
{% endif %}
|
|
162
|
+
{% if page.updated is defined and page.updated %},
|
|
163
|
+
"dateModified": "{{ page.updated | date(format='%Y-%m-%d') }}"
|
|
164
|
+
{% endif %}
|
|
165
|
+
}
|
|
166
|
+
{% if page %}
|
|
167
|
+
,{
|
|
168
|
+
"@type": "Article",
|
|
169
|
+
"@id": "{{ current_url | safe }}#article",
|
|
170
|
+
"isPartOf": {
|
|
171
|
+
"@id": "{{ current_url | safe }}#webpage"
|
|
172
|
+
},
|
|
173
|
+
"headline": "{{ page.title }}",
|
|
174
|
+
{% if page.description is defined and page.description %}
|
|
175
|
+
"description": "{{ page.description }}",
|
|
176
|
+
{% endif %}
|
|
177
|
+
{% if page.date is defined and page.date %}
|
|
178
|
+
"datePublished": "{{ page.date | date(format='%Y-%m-%dT%H:%M:%S') }}",
|
|
179
|
+
{% endif %}
|
|
180
|
+
{% if page.updated is defined and page.updated %}
|
|
181
|
+
"dateModified": "{{ page.updated | date(format='%Y-%m-%dT%H:%M:%S') }}",
|
|
182
|
+
{% endif %}
|
|
183
|
+
"author": {
|
|
184
|
+
"@id": "https://zentinelproxy.io/#organization"
|
|
185
|
+
},
|
|
186
|
+
"publisher": {
|
|
187
|
+
"@id": "https://zentinelproxy.io/#organization"
|
|
188
|
+
},
|
|
189
|
+
{% if page.taxonomies.tags is defined %}
|
|
190
|
+
"keywords": "{{ page.taxonomies.tags | join(sep=', ') }}",
|
|
191
|
+
{% endif %}
|
|
192
|
+
{% if page.word_count is defined %}
|
|
193
|
+
"wordCount": {{ page.word_count }},
|
|
194
|
+
{% endif %}
|
|
195
|
+
"inLanguage": "{{ lang | default(value='en') }}"
|
|
196
|
+
}
|
|
197
|
+
{% endif %}
|
|
198
|
+
]
|
|
199
|
+
}
|
|
200
|
+
</script>
|
|
201
|
+
|
|
202
|
+
{# ===== Breadcrumb JSON-LD ===== #}
|
|
203
|
+
{% if page.ancestors is defined and page.ancestors | length > 0 %}
|
|
204
|
+
<script type="application/ld+json">
|
|
205
|
+
{
|
|
206
|
+
"@context": "https://schema.org",
|
|
207
|
+
"@type": "BreadcrumbList",
|
|
208
|
+
"itemListElement": [
|
|
209
|
+
{
|
|
210
|
+
"@type": "ListItem",
|
|
211
|
+
"position": 1,
|
|
212
|
+
"name": "{{ config.title }}",
|
|
213
|
+
"item": "{{ config.base_url | safe }}"
|
|
214
|
+
}
|
|
215
|
+
{% set position = 2 %}
|
|
216
|
+
{% for ancestor in page.ancestors %}
|
|
217
|
+
{% set ancestor_section = get_section(path=ancestor) %}
|
|
218
|
+
,{
|
|
219
|
+
"@type": "ListItem",
|
|
220
|
+
"position": {{ position }},
|
|
221
|
+
"name": "{{ ancestor_section.title }}",
|
|
222
|
+
"item": "{{ ancestor_section.permalink | safe }}"
|
|
223
|
+
}
|
|
224
|
+
{% set position = position + 1 %}
|
|
225
|
+
{% endfor %}
|
|
226
|
+
,{
|
|
227
|
+
"@type": "ListItem",
|
|
228
|
+
"position": {{ page.ancestors | length + 2 }},
|
|
229
|
+
"name": "{{ page.title }}",
|
|
230
|
+
"item": "{{ page.permalink | safe }}"
|
|
231
|
+
}
|
|
232
|
+
]
|
|
233
|
+
}
|
|
234
|
+
</script>
|
|
235
|
+
{% endif %}
|
|
236
|
+
|
|
237
|
+
{# ===== Stylesheets ===== #}
|
|
238
|
+
<link rel="stylesheet" href="{{ get_url(path='style.css') | safe }}">
|
|
239
|
+
|
|
240
|
+
{# Syntax highlighting #}
|
|
241
|
+
{% if config.markdown.highlight_code is defined and config.markdown.highlight_code %}
|
|
242
|
+
<link rel="stylesheet" href="{{ get_url(path='syntax-light.css') | safe }}" media="(prefers-color-scheme: light)">
|
|
243
|
+
<link rel="stylesheet" href="{{ get_url(path='syntax-dark.css') | safe }}" media="(prefers-color-scheme: dark)">
|
|
244
|
+
{% endif %}
|
|
245
|
+
|
|
246
|
+
{# ===== Preload fonts ===== #}
|
|
247
|
+
<link rel="preload" href="{{ get_url(path='fonts/Geist-Variable.woff2') | safe }}" as="font" type="font/woff2" crossorigin>
|
|
248
|
+
<link rel="preload" href="{{ get_url(path='fonts/GeistMono-Variable.woff2') | safe }}" as="font" type="font/woff2" crossorigin>
|
|
249
|
+
|
|
250
|
+
{# ===== Favicon ===== #}
|
|
251
|
+
{% if config.extra.favicon %}
|
|
252
|
+
<link rel="icon" href="{{ get_url(path=config.extra.favicon) | safe }}">
|
|
253
|
+
{% endif %}
|
|
254
|
+
{% if config.extra.apple_touch_icon is defined %}
|
|
255
|
+
<link rel="apple-touch-icon" href="{{ get_url(path=config.extra.apple_touch_icon) | safe }}">
|
|
256
|
+
{% endif %}
|
|
257
|
+
|
|
258
|
+
{# ===== RSS Feed ===== #}
|
|
259
|
+
{% if config.generate_feeds %}
|
|
260
|
+
<link rel="alternate" type="application/rss+xml" title="{{ config.title }}" href="{{ get_url(path='rss.xml') | safe }}">
|
|
261
|
+
{% endif %}
|
|
262
|
+
|
|
263
|
+
{# ===== Theme script (inline to prevent flash) ===== #}
|
|
264
|
+
{% set mode = config.extra.mode | default(value="site") %}
|
|
265
|
+
{% if mode == "site" or mode == "blog" %}
|
|
266
|
+
{# raskell.io style 3-way theme toggle for site/blog mode #}
|
|
267
|
+
<script>
|
|
268
|
+
(function() {
|
|
269
|
+
var colorSchemeKey = 'ThemeColorScheme';
|
|
270
|
+
var colorSchemeItem = localStorage.getItem(colorSchemeKey) || 'auto';
|
|
271
|
+
var supportDarkMode = window.matchMedia('(prefers-color-scheme: dark)').matches === true;
|
|
272
|
+
|
|
273
|
+
// Set theme setting (light/dark/auto)
|
|
274
|
+
document.documentElement.dataset.themeSetting = colorSchemeItem;
|
|
275
|
+
|
|
276
|
+
// Set effective theme (light/dark)
|
|
277
|
+
if (colorSchemeItem == 'dark' || colorSchemeItem === 'auto' && supportDarkMode) {
|
|
278
|
+
document.documentElement.dataset.userColorScheme = 'dark';
|
|
279
|
+
document.documentElement.setAttribute('data-theme', 'dark');
|
|
280
|
+
} else {
|
|
281
|
+
document.documentElement.dataset.userColorScheme = 'light';
|
|
282
|
+
document.documentElement.setAttribute('data-theme', 'light');
|
|
283
|
+
}
|
|
284
|
+
})();
|
|
285
|
+
</script>
|
|
286
|
+
{% else %}
|
|
287
|
+
{# Original tanuki theme toggle for docs/book/product modes #}
|
|
288
|
+
<script>
|
|
289
|
+
(function() {
|
|
290
|
+
try {
|
|
291
|
+
var stored = localStorage.getItem('tanuki-theme') || 'auto';
|
|
292
|
+
var theme = stored === 'auto'
|
|
293
|
+
? (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light')
|
|
294
|
+
: stored;
|
|
295
|
+
document.documentElement.setAttribute('data-theme', theme);
|
|
296
|
+
document.documentElement.setAttribute('data-theme-setting', stored);
|
|
297
|
+
} catch(e) {}
|
|
298
|
+
})();
|
|
299
|
+
</script>
|
|
300
|
+
{% endif %}
|
|
301
|
+
|
|
302
|
+
{% block head %}{% endblock %}
|
|
303
|
+
</head>
|
|
304
|
+
<body class="{% block body_class %}{% endblock %}">
|
|
305
|
+
{# ===== Skip Link for Accessibility ===== #}
|
|
306
|
+
<a href="#main-content" class="skip-link">Skip to main content</a>
|
|
307
|
+
|
|
308
|
+
{# Get mode from config #}
|
|
309
|
+
{% set mode = config.extra.mode | default(value="site") %}
|
|
310
|
+
|
|
311
|
+
{# Determine if header should be fixed (default: for docs and product modes) #}
|
|
312
|
+
{% if config.extra.fixed_header is defined %}
|
|
313
|
+
{% set fixed_header = config.extra.fixed_header %}
|
|
314
|
+
{% else %}
|
|
315
|
+
{% set fixed_header = mode == "docs" or mode == "product" %}
|
|
316
|
+
{% endif %}
|
|
317
|
+
|
|
318
|
+
{# Layout wrapper #}
|
|
319
|
+
<div class="layout layout--{{ mode }}{% if fixed_header %} layout--fixed-header{% endif %}" data-mode="{{ mode }}">
|
|
320
|
+
{% block sidebar %}{% endblock %}
|
|
321
|
+
|
|
322
|
+
<div class="layout__main">
|
|
323
|
+
{% block header %}
|
|
324
|
+
{% include "partials/header.html" %}
|
|
325
|
+
{% endblock %}
|
|
326
|
+
|
|
327
|
+
{# Scroll Progress Indicator - docs mode only #}
|
|
328
|
+
{% if mode == "docs" %}
|
|
329
|
+
<div class="scroll-progress" aria-hidden="true">
|
|
330
|
+
<div class="scroll-progress__bar"></div>
|
|
331
|
+
<span class="scroll-progress__percent">0%</span>
|
|
332
|
+
</div>
|
|
333
|
+
{% endif %}
|
|
334
|
+
|
|
335
|
+
{% block nav_buttons %}{% endblock %}
|
|
336
|
+
|
|
337
|
+
<div class="layout__content-area">
|
|
338
|
+
<main id="main-content" class="main-content" role="main" aria-label="Main content">
|
|
339
|
+
{% block content %}{% endblock %}
|
|
340
|
+
</main>
|
|
341
|
+
|
|
342
|
+
{# Page ToC panel for docs mode - right sidebar #}
|
|
343
|
+
{% if mode == "docs" %}
|
|
344
|
+
{% include "partials/page-toc-panel.html" %}
|
|
345
|
+
{% endif %}
|
|
346
|
+
</div>
|
|
347
|
+
|
|
348
|
+
{% block footer %}
|
|
349
|
+
{% if mode != "docs" and mode != "book" and mode != "product" %}
|
|
350
|
+
{% include "partials/footer.html" %}
|
|
351
|
+
{% endif %}
|
|
352
|
+
{% endblock %}
|
|
353
|
+
</div>
|
|
354
|
+
</div>
|
|
355
|
+
|
|
356
|
+
{# Sidebar overlay for mobile #}
|
|
357
|
+
<div class="sidebar-overlay" aria-hidden="true"></div>
|
|
358
|
+
|
|
359
|
+
{# Search overlay - only for docs/book/product modes (site/blog has it in header) #}
|
|
360
|
+
{% if config.build_search_index and mode != "site" and mode != "blog" %}
|
|
361
|
+
{% include "partials/search.html" %}
|
|
362
|
+
{% endif %}
|
|
363
|
+
|
|
364
|
+
{# ToC overlay for book mode only #}
|
|
365
|
+
{% if mode == "book" %}
|
|
366
|
+
{% include "partials/toc-overlay.html" %}
|
|
367
|
+
{% endif %}
|
|
368
|
+
|
|
369
|
+
{# Nav overlay for mobile menu - only for product mode (site/blog has it in header, docs/book use sidebar) #}
|
|
370
|
+
{% if mode == "product" %}
|
|
371
|
+
{% include "partials/nav-overlay.html" %}
|
|
372
|
+
{% endif %}
|
|
373
|
+
|
|
374
|
+
{# Page ToC toggle button - docs mode only, fixed position #}
|
|
375
|
+
{% set has_toc = (page and page.toc) or (section and section.toc) %}
|
|
376
|
+
{% if mode == "docs" and has_toc %}
|
|
377
|
+
<button class="page-toc-toggle" type="button" aria-label="Toggle table of contents" aria-expanded="false" aria-controls="page-toc-panel" title="On this page">
|
|
378
|
+
<svg class="page-toc-toggle__icon page-toc-toggle__icon--list" xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
379
|
+
<path d="M16 5H3"/>
|
|
380
|
+
<path d="M16 12H3"/>
|
|
381
|
+
<path d="M16 19H3"/>
|
|
382
|
+
<path d="M21 5h.01"/>
|
|
383
|
+
<path d="M21 12h.01"/>
|
|
384
|
+
<path d="M21 19h.01"/>
|
|
385
|
+
</svg>
|
|
386
|
+
<svg class="page-toc-toggle__icon page-toc-toggle__icon--close" xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
387
|
+
<path d="M18 6 6 18"/>
|
|
388
|
+
<path d="m6 6 12 12"/>
|
|
389
|
+
</svg>
|
|
390
|
+
</button>
|
|
391
|
+
{% endif %}
|
|
392
|
+
|
|
393
|
+
{# Scroll to top button (not for book mode) #}
|
|
394
|
+
{% if mode != "book" %}
|
|
395
|
+
<button class="fab scroll-to-top" aria-label="Scroll to top" title="Scroll to top">
|
|
396
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
397
|
+
<path d="m18 15-6-6-6 6"/>
|
|
398
|
+
</svg>
|
|
399
|
+
</button>
|
|
400
|
+
{% endif %}
|
|
401
|
+
|
|
402
|
+
{# Scripts #}
|
|
403
|
+
{% if mode == "site" or mode == "blog" %}
|
|
404
|
+
{# raskell.io style scripts for site/blog mode #}
|
|
405
|
+
<script src="{{ get_url(path='js/anchors.js') | safe }}"></script>
|
|
406
|
+
<script src="{{ get_url(path='js/scroll-to-top.js') | safe }}"></script>
|
|
407
|
+
|
|
408
|
+
{% if config.build_search_index %}
|
|
409
|
+
<script src="{{ get_url(path='elasticlunr.min.js') | safe }}"></script>
|
|
410
|
+
<script src="{{ get_url(path='search_index.en.js') | safe }}"></script>
|
|
411
|
+
<script src="{{ get_url(path='js/search-raskell.js') | safe }}"></script>
|
|
412
|
+
{% endif %}
|
|
413
|
+
{% else %}
|
|
414
|
+
{# Original tanuki scripts for docs/book/product modes #}
|
|
415
|
+
<script src="{{ get_url(path='js/theme.js') | safe }}" defer></script>
|
|
416
|
+
<script src="{{ get_url(path='js/navigation.js') | safe }}" defer></script>
|
|
417
|
+
<script src="{{ get_url(path='js/code.js') | safe }}" defer></script>
|
|
418
|
+
|
|
419
|
+
{% if config.build_search_index %}
|
|
420
|
+
<script src="{{ get_url(path='elasticlunr.min.js') | safe }}"></script>
|
|
421
|
+
<script src="{{ get_url(path='search_index.en.js') | safe }}"></script>
|
|
422
|
+
<script src="{{ get_url(path='js/search.js') | safe }}" defer></script>
|
|
423
|
+
{% endif %}
|
|
424
|
+
{% endif %}
|
|
425
|
+
|
|
426
|
+
{% block scripts %}{% endblock %}
|
|
427
|
+
</body>
|
|
428
|
+
</html>
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{% extends "base.html" %}
|
|
2
|
+
|
|
3
|
+
{% block title %}{{ section.title }}{% endblock %}
|
|
4
|
+
|
|
5
|
+
{% block content %}
|
|
6
|
+
<div class="blog-header">
|
|
7
|
+
<h1 class="blog-header__title">{{ section.title }}</h1>
|
|
8
|
+
{% if section.description %}
|
|
9
|
+
<p class="blog-header__description">{{ section.description }}</p>
|
|
10
|
+
{% endif %}
|
|
11
|
+
</div>
|
|
12
|
+
|
|
13
|
+
<div class="blog-posts">
|
|
14
|
+
{% set pages = paginator.pages | default(value=section.pages) %}
|
|
15
|
+
{% for page in pages %}
|
|
16
|
+
<article class="blog-card">
|
|
17
|
+
<div class="blog-card__content">
|
|
18
|
+
<h2 class="blog-card__title">
|
|
19
|
+
<a href="{{ page.permalink | safe }}">{{ page.title }}</a>
|
|
20
|
+
</h2>
|
|
21
|
+
{% if page.description %}
|
|
22
|
+
<p class="blog-card__description">{{ page.description }}</p>
|
|
23
|
+
{% endif %}
|
|
24
|
+
<div class="blog-card__meta">
|
|
25
|
+
{% if page.date %}
|
|
26
|
+
<time datetime="{{ page.date }}">{{ page.date | date(format="%B %d, %Y") }}</time>
|
|
27
|
+
{% endif %}
|
|
28
|
+
{% if page.taxonomies.tags %}
|
|
29
|
+
<div class="blog-card__tags">
|
|
30
|
+
{% for tag in page.taxonomies.tags | slice(end=3) %}
|
|
31
|
+
<a href="{{ get_taxonomy_url(kind='tags', name=tag) | safe }}" class="tag">{{ tag }}</a>
|
|
32
|
+
{% endfor %}
|
|
33
|
+
</div>
|
|
34
|
+
{% endif %}
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
</article>
|
|
38
|
+
{% endfor %}
|
|
39
|
+
</div>
|
|
40
|
+
|
|
41
|
+
{% if paginator %}
|
|
42
|
+
<nav class="pagination" aria-label="Pagination">
|
|
43
|
+
{% if paginator.previous %}
|
|
44
|
+
<a href="{{ paginator.previous }}" class="pagination__link pagination__link--prev">
|
|
45
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
46
|
+
<path d="m15 18-6-6 6-6"/>
|
|
47
|
+
</svg>
|
|
48
|
+
Newer
|
|
49
|
+
</a>
|
|
50
|
+
{% endif %}
|
|
51
|
+
|
|
52
|
+
<span class="pagination__info">
|
|
53
|
+
Page {{ paginator.current_index }} of {{ paginator.number_pagers }}
|
|
54
|
+
</span>
|
|
55
|
+
|
|
56
|
+
{% if paginator.next %}
|
|
57
|
+
<a href="{{ paginator.next }}" class="pagination__link pagination__link--next">
|
|
58
|
+
Older
|
|
59
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
60
|
+
<path d="m9 18 6-6-6-6"/>
|
|
61
|
+
</svg>
|
|
62
|
+
</a>
|
|
63
|
+
{% endif %}
|
|
64
|
+
</nav>
|
|
65
|
+
{% endif %}
|
|
66
|
+
{% endblock %}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
{% extends "base.html" %}
|
|
2
|
+
|
|
3
|
+
{% block title %}{{ config.title }}{% endblock %}
|
|
4
|
+
|
|
5
|
+
{% block content %}
|
|
6
|
+
{# Hero Section - Left-aligned like raskell.io #}
|
|
7
|
+
<section class="hero">
|
|
8
|
+
<div class="hero__content">
|
|
9
|
+
{% if config.extra.author.avatar %}
|
|
10
|
+
<img src="{{ get_url(path=config.extra.author.avatar) | safe }}" alt="{{ config.extra.author.name }}" class="hero__avatar">
|
|
11
|
+
{% endif %}
|
|
12
|
+
<p><strong>{{ config.extra.hero.title | default(value=config.title) }}</strong></p>
|
|
13
|
+
<p>{{ config.extra.hero.subtitle | default(value=config.description) }}</p>
|
|
14
|
+
{% if config.extra.hero.cta %}
|
|
15
|
+
<div class="hero__actions">
|
|
16
|
+
<a href="{{ config.extra.hero.cta.url | safe }}" class="view-all-link">
|
|
17
|
+
{{ config.extra.hero.cta.text }}
|
|
18
|
+
</a>
|
|
19
|
+
</div>
|
|
20
|
+
{% endif %}
|
|
21
|
+
{% if config.extra.social %}
|
|
22
|
+
<div class="hero-meta">
|
|
23
|
+
<div class="bio-social">
|
|
24
|
+
{% if config.extra.social.github %}
|
|
25
|
+
<a href="{{ config.extra.social.github }}" target="_blank" rel="noopener" aria-label="GitHub">
|
|
26
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
27
|
+
<path d="M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"/>
|
|
28
|
+
<path d="M9 18c-4.51 2-5-2-7-2"/>
|
|
29
|
+
</svg>
|
|
30
|
+
</a>
|
|
31
|
+
{% endif %}
|
|
32
|
+
{% if config.extra.social.twitter %}
|
|
33
|
+
<a href="{{ config.extra.social.twitter }}" target="_blank" rel="noopener" aria-label="Twitter">
|
|
34
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
35
|
+
<path d="M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z"/>
|
|
36
|
+
</svg>
|
|
37
|
+
</a>
|
|
38
|
+
{% endif %}
|
|
39
|
+
{% if config.extra.social.linkedin %}
|
|
40
|
+
<a href="{{ config.extra.social.linkedin }}" target="_blank" rel="noopener" aria-label="LinkedIn">
|
|
41
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
42
|
+
<path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"/>
|
|
43
|
+
<rect width="4" height="12" x="2" y="9"/>
|
|
44
|
+
<circle cx="4" cy="4" r="2"/>
|
|
45
|
+
</svg>
|
|
46
|
+
</a>
|
|
47
|
+
{% endif %}
|
|
48
|
+
{% if config.extra.social.mastodon %}
|
|
49
|
+
<a href="{{ config.extra.social.mastodon }}" target="_blank" rel="noopener me" aria-label="Mastodon">
|
|
50
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
51
|
+
<path d="M21.58 13.913c-.29 1.469-2.592 3.121-5.238 3.396-1.379.184-2.737.368-4.185.276-2.368-.092-4.237-.551-4.237-.551 0 .184.014.459.014.643.067 1.745 1.379 1.929 5.064 2.113 3.731.184 6.965-.828 6.965-.828l.152 2.02s-2.548 1.377-7.05 1.653c-2.497.092-5.593-.092-9.21-1.193C.23 18.747.04 13.637 0 8.443c-.012-1.377 0-2.663 0-3.764 0-4.776 3.078-6.188 3.078-6.188C4.626-.092 7.05-.368 9.568-.368h.062c2.518 0 4.955.276 6.503.858 0 0 3.077 1.412 3.077 6.188 0 0 .04 3.58-.63 7.235z"/>
|
|
52
|
+
<path d="M17.74 8.4v5.004h-1.979V8.585c0-1.023-.419-1.539-1.288-1.539-.949 0-1.423.616-1.423 1.835v2.658h-1.966V8.88c0-1.219-.474-1.835-1.423-1.835-.856 0-1.288.516-1.288 1.54v4.818H6.4V8.4c0-1.023.252-1.835.768-2.435.529-.6 1.221-.904 2.079-.904 1.005 0 1.765.387 2.264 1.16l.487.82.487-.82c.499-.773 1.26-1.16 2.264-1.16.858 0 1.55.304 2.079.904.516.6.768 1.412.768 2.435h.144z"/>
|
|
53
|
+
</svg>
|
|
54
|
+
</a>
|
|
55
|
+
{% endif %}
|
|
56
|
+
{% if config.extra.social.email %}
|
|
57
|
+
<a href="mailto:{{ config.extra.social.email }}" aria-label="Email">
|
|
58
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
59
|
+
<rect width="20" height="16" x="2" y="4" rx="2"/>
|
|
60
|
+
<path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"/>
|
|
61
|
+
</svg>
|
|
62
|
+
</a>
|
|
63
|
+
{% endif %}
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
{% endif %}
|
|
67
|
+
</div>
|
|
68
|
+
</section>
|
|
69
|
+
|
|
70
|
+
{# Recent Posts Section - Row list style #}
|
|
71
|
+
{% set blog = get_section(path="blog/_index.md", metadata_only=false) %}
|
|
72
|
+
{% if blog.pages %}
|
|
73
|
+
<section class="section">
|
|
74
|
+
<div class="section__header">
|
|
75
|
+
<h2 class="section__title">Recent Posts</h2>
|
|
76
|
+
<a href="{{ get_url(path='@/blog/_index.md') | safe }}" class="section__link">View all</a>
|
|
77
|
+
</div>
|
|
78
|
+
<div class="posts">
|
|
79
|
+
{% for page in blog.pages | slice(end=6) %}
|
|
80
|
+
<article class="post">
|
|
81
|
+
<a href="{{ page.permalink | safe }}">
|
|
82
|
+
<div class="post-row">
|
|
83
|
+
{% if page.date %}
|
|
84
|
+
<time datetime="{{ page.date }}">{{ page.date | date(format="%b %d") }}</time>
|
|
85
|
+
{% endif %}
|
|
86
|
+
<h3>{{ page.title }}</h3>
|
|
87
|
+
</div>
|
|
88
|
+
</a>
|
|
89
|
+
</article>
|
|
90
|
+
{% endfor %}
|
|
91
|
+
</div>
|
|
92
|
+
<a href="{{ get_url(path='@/blog/_index.md') | safe }}" class="view-all-link">View all posts</a>
|
|
93
|
+
</section>
|
|
94
|
+
{% endif %}
|
|
95
|
+
|
|
96
|
+
{# About Section (optional) #}
|
|
97
|
+
{% if config.extra.show_about_section | default(value=true) %}
|
|
98
|
+
<section class="section section--alt">
|
|
99
|
+
<div class="about-preview">
|
|
100
|
+
<div class="about-preview__content">
|
|
101
|
+
<h2>About</h2>
|
|
102
|
+
<p>{{ config.extra.about.summary | default(value="I'm a developer who writes about web technologies, software design, and the craft of building things.") }}</p>
|
|
103
|
+
<a href="{{ get_url(path='about') | safe }}" class="view-all-link">Learn more</a>
|
|
104
|
+
</div>
|
|
105
|
+
</div>
|
|
106
|
+
</section>
|
|
107
|
+
{% endif %}
|
|
108
|
+
{% endblock %}
|