diff --git a/astro.config.ts b/astro.config.ts index ad4a04eecf5e1..4e44b9af5adcb 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -1,5 +1,6 @@ import starlight from '@astrojs/starlight'; -import { pluginCollapsibleSections } from '@expressive-code/plugin-collapsible-sections'; +import xmdx from 'astro-xmdx'; +import { starlightPreset } from 'astro-xmdx/presets'; import { defineConfig, sharpImageService } from 'astro/config'; import rehypeSlug from 'rehype-slug'; import remarkSmartypants from 'remark-smartypants'; @@ -28,9 +29,6 @@ export default defineConfig({ ]), starlight({ title: 'Docs', - expressiveCode: { - plugins: [pluginCollapsibleSections()], - }, components: { EditLink: './src/components/starlight/EditLink.astro', Hero: './src/components/starlight/Hero.astro', @@ -72,6 +70,10 @@ export default defineConfig({ plugins: [starlightPluginSmokeTest(), starlightPluginLlmsTxt()], }), sitemap(), + xmdx({ + presets: [starlightPreset({ expressiveCode: false })], + expressiveCode: { enabled: true, importSource: '@astrojs/starlight/components' }, + }), ], trailingSlash: 'always', scopedStyleStrategy: 'where', @@ -95,4 +97,9 @@ export default defineConfig({ domains: ['avatars.githubusercontent.com'], service: sharpImageService(), }, + vite: { + ssr: { + noExternal: ['xmdx'], + }, + }, }); diff --git a/config/plugins/llms-txt.ts b/config/plugins/llms-txt.ts index 62738b2bd1a42..437375af8bd32 100644 --- a/config/plugins/llms-txt.ts +++ b/config/plugins/llms-txt.ts @@ -3,6 +3,9 @@ import starlightLlmsTxt from 'starlight-llms-txt'; /** Starlight plugin that sets up `starlight-llms-txt` with configuration for the Astro docs. */ export const starlightPluginLlmsTxt = () => starlightLlmsTxt({ + // Use raw Markdown content directly instead of rendering entries to avoid + // compatibility issues with the xmdx compiler. + rawContent: true, // Basic information about the docs and Astro to display in the main `llms.txt` entry file. projectName: 'Astro', description: 'Astro is an all-in-one web framework for building websites. ', diff --git a/package.json b/package.json index 52668720071c6..5faf2967a7573 100644 --- a/package.json +++ b/package.json @@ -62,12 +62,14 @@ "@astrojs/starlight": "^0.38.0", "@expressive-code/plugin-collapsible-sections": "^0.41.6", "@lunariajs/core": "https://pkg.pr.new/lunariajs/lunaria/@lunariajs/core@722c34c", + "astro-xmdx": "0.0.10-next.9", "canvas-confetti": "^1.6.0", "jsdoc-api": "^9.3.5", "rehype-slug": "^6.0.0", "remark-smartypants": "^3.0.2", "sharp": "^0.34.3", - "starlight-llms-txt": "^0.6.0" + "starlight-llms-txt": "^0.6.0", + "xmdx": "0.0.9-next.3" }, "packageManager": "pnpm@10.27.0", "pnpm": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 58b8ec7c7882f..3f2aa974fa2e2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -23,6 +23,9 @@ importers: '@lunariajs/core': specifier: https://pkg.pr.new/lunariajs/lunaria/@lunariajs/core@722c34c version: https://pkg.pr.new/lunariajs/lunaria/@lunariajs/core@722c34c + astro-xmdx: + specifier: 0.0.10-next.9 + version: 0.0.10-next.9(astro@6.0.2(@types/node@22.18.1)(jiti@2.3.3)(rollup@4.57.1)(typescript@5.6.2)(yaml@2.7.1))(vite@7.3.1(@types/node@22.18.1)(jiti@2.3.3)(yaml@2.7.1)) canvas-confetti: specifier: ^1.6.0 version: 1.6.0 @@ -41,6 +44,9 @@ importers: starlight-llms-txt: specifier: ^0.6.0 version: 0.6.0(@astrojs/starlight@0.38.0(astro@6.0.2(@types/node@22.18.1)(jiti@2.3.3)(rollup@4.57.1)(typescript@5.6.2)(yaml@2.7.1)))(astro@6.0.2(@types/node@22.18.1)(jiti@2.3.3)(rollup@4.57.1)(typescript@5.6.2)(yaml@2.7.1)) + xmdx: + specifier: 0.0.9-next.3 + version: 0.0.9-next.3 devDependencies: '@actions/core': specifier: ^1.11.1 @@ -1221,6 +1227,52 @@ packages: '@webgpu/types@0.1.21': resolution: {integrity: sha512-pUrWq3V5PiSGFLeLxoGqReTZmiiXwY3jRkIG5sLLKjyqNxrwm/04b4nw7LSmGWJcKk59XOM/YRTUwOzo4MMlow==} + '@xmdx/napi-darwin-arm64@0.0.8-next.0': + resolution: {integrity: sha512-LjHvW7x1fZtZdlAobbNHElr/6zHCfStfnXVkoHEH3k8zoe6zHJ/FNZn1RxJkzyjpjWdmuqVnviL/O7syGvQ8yw==} + engines: {node: '>= 18'} + cpu: [arm64] + os: [darwin] + + '@xmdx/napi-darwin-x64@0.0.8-next.0': + resolution: {integrity: sha512-a6Ry2LYCNM/OkgKUq2YrtigdTWkeS7ATn20f43vgVg5e28L9vWsR9CUJQSQWWzvXZOyoDyuuhaTyM/BVP6KceQ==} + engines: {node: '>= 18'} + cpu: [x64] + os: [darwin] + + '@xmdx/napi-linux-arm64-gnu@0.0.8-next.0': + resolution: {integrity: sha512-nKSBGdvw1vTnIsQ/QdK830Me3rnyb3sHqNGVRVYk0Tb74KBLr+0VoNJsT6/XBynKgbS50sgUAzw8upeOAJzTlQ==} + engines: {node: '>= 18'} + cpu: [arm64] + os: [linux] + + '@xmdx/napi-linux-arm64-musl@0.0.8-next.0': + resolution: {integrity: sha512-onqTUxI6Jd0HpHkIDCLgFJTHxAlTHc9vx04uJ7RXZIdvbTy5uM4w//TuXKlRJYivZXTUEuPI/mTg1L2Qs1C9OQ==} + engines: {node: '>= 18'} + cpu: [arm64] + os: [linux] + + '@xmdx/napi-linux-x64-gnu@0.0.8-next.0': + resolution: {integrity: sha512-iltkDuHEYdcS6z3vAVDHu8qongGqLWiXnIwhqr2EgaVdJ0qma3UD6UzW+R1bB5KMmPoQQ07+laVPL3v6+gRdPQ==} + engines: {node: '>= 18'} + cpu: [x64] + os: [linux] + + '@xmdx/napi-linux-x64-musl@0.0.8-next.0': + resolution: {integrity: sha512-9rG7D5N9mNeqLQkfmhWuMuXT/b50bEX+WF7Jq/TViB0fmy46AWwBObK53fTKA1VkvSO1eUZkKGjvbFmjluPQ9g==} + engines: {node: '>= 18'} + cpu: [x64] + os: [linux] + + '@xmdx/napi-win32-x64-msvc@0.0.8-next.0': + resolution: {integrity: sha512-4zDSUI89wDcKR5RGXc7zJN6zE9LfrVoV9tyusbMq5RUf9Di0aqGKCtX01GLPveb0TETz71lSzPwCXe4lqMbCpA==} + engines: {node: '>= 18'} + cpu: [x64] + os: [win32] + + '@xmdx/napi@0.0.8-next.0': + resolution: {integrity: sha512-9zzXDqNrlxjQqXPFfXZggH0Vf/NQXhT6enwXcPjOhRo5epMzhiw2r/cveirXI+nJSRduMnBoU/X1kahiFSLheA==} + engines: {node: '>= 18'} + acorn-jsx@5.3.2: resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} peerDependencies: @@ -1310,6 +1362,12 @@ packages: peerDependencies: astro: ^5.0.0 || ^6.0.0-alpha + astro-xmdx@0.0.10-next.9: + resolution: {integrity: sha512-2e89pNCuwPYRUP5dv+fzf/PACV75EDj/KgRjRflqjPUHwIu/Jztr7cro3uhTLGgOvYeH5dNsI5wiPhbhaUWvhg==} + peerDependencies: + astro: '>=4.0.0' + vite: '>=5.0.0' + astro@6.0.2: resolution: {integrity: sha512-aYCU9QcaV3QlOxO+JU2lR4xazVuPaH7oFhc990H/fhbWLMm1MWlRnjfnti1gYMm9N9l7gqPb3t7JsQBlUEQXIg==} engines: {node: ^20.19.1 || >=22.12.0, npm: '>=9.6.5', pnpm: '>=7.1.0'} @@ -1334,6 +1392,10 @@ packages: balanced-match@1.0.2: resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} + balanced-match@4.0.4: + resolution: {integrity: sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==} + engines: {node: 18 || 20 || >=22} + base-64@1.0.0: resolution: {integrity: sha512-kwDPIFCGx0NZHog36dj+tHiwP4QMzsZ3AgMViUBKI0+V5n4U0ufTCUMhnQ04diaRI8EX/QcPfql7zlhZ7j4zgg==} @@ -1361,6 +1423,10 @@ packages: brace-expansion@2.0.1: resolution: {integrity: sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==} + brace-expansion@5.0.4: + resolution: {integrity: sha512-h+DEnpVvxmfVefa4jFbCf5HdH5YMDXRsmKflpf1pILZWRFlTbJpxeU55nJl4Smt5HQaGzg1o6RHFPJaOqnmBDg==} + engines: {node: 18 || 20 || >=22} + braces@3.0.3: resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} engines: {node: '>=8'} @@ -1786,6 +1852,10 @@ packages: expressive-code@0.41.6: resolution: {integrity: sha512-W/5+IQbrpCIM5KGLjO35wlp1NCwDOOVQb+PAvzEoGkW1xjGM807ZGfBKptNWH6UECvt6qgmLyWolCMYKh7eQmA==} + extend-shallow@2.0.1: + resolution: {integrity: sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==} + engines: {node: '>=0.10.0'} + extend@3.0.2: resolution: {integrity: sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==} @@ -1919,6 +1989,10 @@ packages: deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me hasBin: true + glob@13.0.6: + resolution: {integrity: sha512-Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw==} + engines: {node: 18 || 20 || >=22} + globals@14.0.0: resolution: {integrity: sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==} engines: {node: '>=18'} @@ -1934,6 +2008,10 @@ packages: graceful-fs@4.2.11: resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} + gray-matter@4.0.3: + resolution: {integrity: sha512-5v6yZd4JK3eMI3FqqCouswVqwugaA9r4dNZB1wwcmrD02QkV5H0y7XBQW8QwQqEaZY1pM9aqORSORhJRdNK44Q==} + engines: {node: '>=6.0'} + h3@1.15.5: resolution: {integrity: sha512-xEyq3rSl+dhGX2Lm0+eFQIAzlDN6Fs0EcC4f7BNUmzaRX/PTzeuM+Tr2lHB8FoXggsQIeXLj8EDVgs5ywxyxmg==} @@ -2110,6 +2188,10 @@ packages: engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} hasBin: true + is-extendable@0.1.1: + resolution: {integrity: sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==} + engines: {node: '>=0.10.0'} + is-extglob@2.1.1: resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} engines: {node: '>=0.10.0'} @@ -2219,6 +2301,10 @@ packages: keyv@5.3.4: resolution: {integrity: sha512-ypEvQvInNpUe+u+w8BIcPkQvEqXquyyibWE/1NB5T2BTzIpS5cGEV1LZskDzPSTvNAaT4+5FutvzlvnkxOSKlw==} + kind-of@6.0.3: + resolution: {integrity: sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==} + engines: {node: '>=0.10.0'} + klaw@3.0.0: resolution: {integrity: sha512-0Fo5oir+O9jnXu5EefYbVK+mHMBeEVEy2cmctR1O1NECcCkPRreJKrS6Qt/j3KC2C148Dfo9i3pCmCMsdqGr0g==} @@ -2431,6 +2517,9 @@ packages: micromark-extension-directive@3.0.0: resolution: {integrity: sha512-61OI07qpQrERc+0wEysLHMvoiO3s2R56x5u7glHq2Yqq6EHbH4dW25G9GfDdGCDYqA21KE6DWgNSzxSwHc2hSg==} + micromark-extension-directive@4.0.0: + resolution: {integrity: sha512-/C2nqVmXXmiseSSuCdItCMho7ybwwop6RrrRPk0KbOHW21JKoCldC+8rFOaundDoRBUWBnJJcxeA/Kvi34WQXg==} + micromark-extension-footnote@0.3.2: resolution: {integrity: sha512-gr/BeIxbIWQoUm02cIfK7mdMZ/fbroRpLsck4kvFtjbzP4yi+OPVbnukTc/zy0i7spC2xYE/dbX1Sur8BEDJsQ==} @@ -2564,6 +2653,10 @@ packages: resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==} engines: {node: '>=8.6'} + minimatch@10.2.4: + resolution: {integrity: sha512-oRjTw/97aTBN0RHbYCdtF1MQfvusSIBQM0IZEgzl6426+8jSC0nF1a/GmnVLpfB9yyr6g6FTqWqiZVbxrtaCIg==} + engines: {node: 18 || 20 || >=22} + minimatch@3.1.2: resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} @@ -2578,6 +2671,10 @@ packages: resolution: {integrity: sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==} engines: {node: '>=16 || 14 >=14.17'} + minipass@7.1.3: + resolution: {integrity: sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==} + engines: {node: '>=16 || 14 >=14.17'} + mkdirp@0.5.6: resolution: {integrity: sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==} hasBin: true @@ -2751,6 +2848,10 @@ packages: resolution: {integrity: sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==} engines: {node: '>=16 || 14 >=14.18'} + path-scurry@2.0.2: + resolution: {integrity: sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg==} + engines: {node: 18 || 20 || >=22} + path-to-glob-pattern@2.0.1: resolution: {integrity: sha512-tmciSlVyHnX0LC86+zSr+0LURw9rDPw8ilhXcmTpVUOnI6OsKdCzXQs5fTG10Bjz26IBdnKL3XIaP+QvGsk5YQ==} @@ -2945,6 +3046,9 @@ packages: remark-directive@3.0.0: resolution: {integrity: sha512-l1UyWJ6Eg1VPU7Hm/9tt0zKtReJQNOA4+iDMAxTyZNWnJnFlbS/7zhiel/rogTLQ2vMYwDzSJa4BiVNqGlqIMA==} + remark-directive@4.0.0: + resolution: {integrity: sha512-7sxn4RfF1o3izevPV1DheyGDD6X4c9hrGpfdUpm7uC++dqrnJxIZVkk7CoKqcLm0VUMAuOol7Mno3m6g8cfMuA==} + remark-footnotes@3.0.0: resolution: {integrity: sha512-ZssAvH9FjGYlJ/PBVKdSmfyPc3Cz4rTWgZLI4iE/SX8Nt5l3o3oEjv3wwG5VD7xOjktzdwp5coac+kJV9l4jgg==} @@ -3042,6 +3146,10 @@ packages: search-insights@2.13.0: resolution: {integrity: sha512-Orrsjf9trHHxFRuo9/rzm0KIWmgzE8RMlZMzuhZOJ01Rnz3D0YBAe+V6473t6/H6c7irs6Lt48brULAiRWb3Vw==} + section-matter@1.0.0: + resolution: {integrity: sha512-vfD3pmTzGpufjScBh50YHKzEu2lxBWhVEHsNGoEXmCmn2hKGfeNLYMzCJpe8cD7gqX7TJluOVpBkAequ6dgMmA==} + engines: {node: '>=4'} + semver@5.7.2: resolution: {integrity: sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==} hasBin: true @@ -3159,6 +3267,10 @@ packages: resolution: {integrity: sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==} engines: {node: '>=12'} + strip-bom-string@1.0.0: + resolution: {integrity: sha512-uCC2VHvQRYu+lMh4My/sFNmF2klFymLX1wHJeXnbEJERpV/ZsVuonzerjfrGpIGF7LBVa1O7i9kjiWvJiFck8g==} + engines: {node: '>=0.10.0'} + strip-bom@2.0.0: resolution: {integrity: sha512-kwrX1y7czp1E69n2ajbG65mIo9dqvJ+8aBQXOGVxqwvNbsXdFM6Lq37dLAY3mknUwru8CfcCbfOLL/gMo+fi3g==} engines: {node: '>=0.10.0'} @@ -3664,6 +3776,9 @@ packages: resolution: {integrity: sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==} engines: {node: '>=12'} + xmdx@0.0.9-next.3: + resolution: {integrity: sha512-XPy6KU7m3l5rxdFLrJ1nvykQ0/bePlYGsIGZ+t5Bkqa0vN5G6YoToGAE1v10e8GaWv02y9J7uzAMJ4a+7e5wpw==} + xmlcreate@2.0.4: resolution: {integrity: sha512-nquOebG4sngPmGPICTS5EnxqhKbCmz5Ox5hsszI2T6U5qdrJizBc+0ilYSEjTSzU0yZcmvppztXe/5Al5fUwdg==} @@ -5011,6 +5126,37 @@ snapshots: '@webgpu/types@0.1.21': {} + '@xmdx/napi-darwin-arm64@0.0.8-next.0': + optional: true + + '@xmdx/napi-darwin-x64@0.0.8-next.0': + optional: true + + '@xmdx/napi-linux-arm64-gnu@0.0.8-next.0': + optional: true + + '@xmdx/napi-linux-arm64-musl@0.0.8-next.0': + optional: true + + '@xmdx/napi-linux-x64-gnu@0.0.8-next.0': + optional: true + + '@xmdx/napi-linux-x64-musl@0.0.8-next.0': + optional: true + + '@xmdx/napi-win32-x64-msvc@0.0.8-next.0': + optional: true + + '@xmdx/napi@0.0.8-next.0': + optionalDependencies: + '@xmdx/napi-darwin-arm64': 0.0.8-next.0 + '@xmdx/napi-darwin-x64': 0.0.8-next.0 + '@xmdx/napi-linux-arm64-gnu': 0.0.8-next.0 + '@xmdx/napi-linux-arm64-musl': 0.0.8-next.0 + '@xmdx/napi-linux-x64-gnu': 0.0.8-next.0 + '@xmdx/napi-linux-x64-musl': 0.0.8-next.0 + '@xmdx/napi-win32-x64-msvc': 0.0.8-next.0 + acorn-jsx@5.3.2(acorn@8.16.0): dependencies: acorn: 8.16.0 @@ -5115,6 +5261,22 @@ snapshots: deterministic-object-hash: 2.0.2 entities: 7.0.0 + astro-xmdx@0.0.10-next.9(astro@6.0.2(@types/node@22.18.1)(jiti@2.3.3)(rollup@4.57.1)(typescript@5.6.2)(yaml@2.7.1))(vite@7.3.1(@types/node@22.18.1)(jiti@2.3.3)(yaml@2.7.1)): + dependencies: + '@mdx-js/mdx': 3.1.1 + '@xmdx/napi': 0.0.8-next.0 + astro: 6.0.2(@types/node@22.18.1)(jiti@2.3.3)(rollup@4.57.1)(typescript@5.6.2)(yaml@2.7.1) + expressive-code: 0.41.6 + glob: 13.0.6 + gray-matter: 4.0.3 + remark-directive: 4.0.0 + remark-gfm: 4.0.1 + shiki: 3.22.0 + vite: 7.3.1(@types/node@22.18.1)(jiti@2.3.3)(yaml@2.7.1) + xmdx: 0.0.9-next.3 + transitivePeerDependencies: + - supports-color + astro@6.0.2(@types/node@22.18.1)(jiti@2.3.3)(rollup@4.57.1)(typescript@5.6.2)(yaml@2.7.1): dependencies: '@astrojs/compiler': 3.0.0 @@ -5222,6 +5384,8 @@ snapshots: balanced-match@1.0.2: {} + balanced-match@4.0.4: {} + base-64@1.0.0: {} base64-js@1.5.1: {} @@ -5249,6 +5413,10 @@ snapshots: dependencies: balanced-match: 1.0.2 + brace-expansion@5.0.4: + dependencies: + balanced-match: 4.0.4 + braces@3.0.3: dependencies: fill-range: 7.1.1 @@ -5701,6 +5869,10 @@ snapshots: '@expressive-code/plugin-shiki': 0.41.6 '@expressive-code/plugin-text-markers': 0.41.6 + extend-shallow@2.0.1: + dependencies: + is-extendable: 0.1.1 + extend@3.0.2: {} fast-deep-equal@3.1.3: {} @@ -5835,6 +6007,12 @@ snapshots: package-json-from-dist: 1.0.1 path-scurry: 1.11.1 + glob@13.0.6: + dependencies: + minimatch: 10.2.4 + minipass: 7.1.3 + path-scurry: 2.0.2 + globals@14.0.0: {} globals@16.5.0: {} @@ -5843,6 +6021,13 @@ snapshots: graceful-fs@4.2.11: {} + gray-matter@4.0.3: + dependencies: + js-yaml: 3.14.1 + kind-of: 6.0.3 + section-matter: 1.0.0 + strip-bom-string: 1.0.0 + h3@1.15.5: dependencies: cookie-es: 1.2.2 @@ -6143,6 +6328,8 @@ snapshots: is-docker@3.0.0: {} + is-extendable@0.1.1: {} + is-extglob@2.1.1: {} is-fullwidth-code-point@3.0.0: {} @@ -6246,6 +6433,8 @@ snapshots: dependencies: '@keyv/serialize': 1.0.3 + kind-of@6.0.3: {} + klaw@3.0.0: dependencies: graceful-fs: 4.2.11 @@ -6639,6 +6828,16 @@ snapshots: micromark-util-types: 2.0.2 parse-entities: 4.0.2 + micromark-extension-directive@4.0.0: + dependencies: + devlop: 1.1.0 + micromark-factory-space: 2.0.1 + micromark-factory-whitespace: 2.0.1 + micromark-util-character: 2.1.1 + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.2 + parse-entities: 4.0.2 + micromark-extension-footnote@0.3.2: dependencies: micromark: 2.11.4 @@ -6943,6 +7142,10 @@ snapshots: braces: 3.0.3 picomatch: 2.3.1 + minimatch@10.2.4: + dependencies: + brace-expansion: 5.0.4 + minimatch@3.1.2: dependencies: brace-expansion: 1.1.11 @@ -6955,6 +7158,8 @@ snapshots: minipass@7.1.2: {} + minipass@7.1.3: {} + mkdirp@0.5.6: dependencies: minimist: 1.2.8 @@ -7132,6 +7337,11 @@ snapshots: lru-cache: 10.4.3 minipass: 7.1.2 + path-scurry@2.0.2: + dependencies: + lru-cache: 11.2.5 + minipass: 7.1.3 + path-to-glob-pattern@2.0.1: {} path-to-regexp@6.3.0: {} @@ -7376,6 +7586,15 @@ snapshots: transitivePeerDependencies: - supports-color + remark-directive@4.0.0: + dependencies: + '@types/mdast': 4.0.4 + mdast-util-directive: 3.0.0 + micromark-extension-directive: 4.0.0 + unified: 11.0.5 + transitivePeerDependencies: + - supports-color + remark-footnotes@3.0.0: dependencies: mdast-util-footnote: 0.1.7 @@ -7543,6 +7762,11 @@ snapshots: search-insights@2.13.0: {} + section-matter@1.0.0: + dependencies: + extend-shallow: 2.0.1 + kind-of: 6.0.3 + semver@5.7.2: {} semver@7.7.4: {} @@ -7719,6 +7943,8 @@ snapshots: dependencies: ansi-regex: 6.1.0 + strip-bom-string@1.0.0: {} + strip-bom@2.0.0: dependencies: is-utf8: 0.2.1 @@ -8231,6 +8457,10 @@ snapshots: string-width: 5.1.2 strip-ansi: 7.1.0 + xmdx@0.0.9-next.3: + dependencies: + '@xmdx/napi': 0.0.8-next.0 + xmlcreate@2.0.4: {} xxhash-wasm@1.1.0: {} diff --git a/src/content/docs/es/recipes/making-toolbar-apps.mdx b/src/content/docs/es/recipes/making-toolbar-apps.mdx index bab05d6261af7..5dce07d11202f 100644 --- a/src/content/docs/es/recipes/making-toolbar-apps.mdx +++ b/src/content/docs/es/recipes/making-toolbar-apps.mdx @@ -85,6 +85,8 @@ Las aplicaciones de barra de herramientas para desarrollo sólo pueden ser agreg :::note[Usando rutas relativas en el entrypoint] El `entrypoint` es la ruta al archivo de tu aplicación de barra de herramientas, **relativo a la raíz de tu proyecto de Astro existente**, no al directorio de integración (`my-toolbar-app/`) por sí mismo. + ::: + 3. Para usar esta integración en tu proyecto, agrégala al array `integrations` en tu archivo `astro.config.mjs`. ```js title="astro.config.mjs" ins={2,5} diff --git a/src/content/docs/ja/guides/testing.mdx b/src/content/docs/ja/guides/testing.mdx index 25fae76d0c161..38bbf39a45d2c 100644 --- a/src/content/docs/ja/guides/testing.mdx +++ b/src/content/docs/ja/guides/testing.mdx @@ -358,19 +358,19 @@ Nightwatch.jsは、すべての主要なブラウザとそのモバイル版、 ``` -2. 新しいフォルダ`src/test/`を作成し、以下のテストファイルを追加します: - - ```js title="src/test/index.js" - describe('Astro testing with Nightwatch', function () { - before(browser => browser.navigateTo('http://localhost:4321/')); - - it("check that the title is correct", function (browser) { - browser.assert.titleEquals('Astro is awesome!') - }); - - after(browser => browser.end()); - }); - ``` +2. 新しいフォルダ`src/test/`を作成し、以下のテストファイルを追加します: + + ```js title="src/test/index.js" + describe('Astro testing with Nightwatch', function () { + before(browser => browser.navigateTo('http://localhost:4321/')); + + it("check that the title is correct", function (browser) { + browser.assert.titleEquals('Astro is awesome!') + }); + + after(browser => browser.end()); + }); + ``` :::tip[`baseUrl`を設定する] `nightwatch.conf.js`設定ファイルで[`"baseURL": "http://localhost:4321"`](https://nightwatchjs.org/guide/reference/settings.html#setting-the-baseurl-property)を設定すると、より便利なURLとして`browser.navigateTo("http://localhost:4321/")`の代わりに`browser.navigateTo("/")`を使用できます。 diff --git a/src/content/docs/ru/guides/testing.mdx b/src/content/docs/ru/guides/testing.mdx index d09c2fd9c6893..a3fd8d71323f6 100644 --- a/src/content/docs/ru/guides/testing.mdx +++ b/src/content/docs/ru/guides/testing.mdx @@ -262,7 +262,7 @@ export default defineConfig({ ``` :::tip[Установите `baseUrl`] - Вы можете установить [``baseUrl``: "http://localhost:4321"`](https://docs.cypress.io/guides/end-to-end-testing/testing-your-app#Step-3-Configure-Cypress) в файле конфигурации `cypress.config.js`, чтобы использовать `cy.visit("/")` вместо `cy.visit("http://localhost:4321/")` для более удобного URL. + Вы можете установить [`"baseUrl": "http://localhost:4321"`](https://docs.cypress.io/guides/end-to-end-testing/testing-your-app#Step-3-Configure-Cypress) в файле конфигурации `cypress.config.js`, чтобы использовать `cy.visit("/")` вместо `cy.visit("http://localhost:4321/")` для более удобного URL. :::