Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions astro.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import starlight from '@astrojs/starlight';
import { pluginCollapsibleSections } from '@expressive-code/plugin-collapsible-sections';
import { defineConfig, sharpImageService } from 'astro/config';
import rehypeSlug from 'rehype-slug';
import remarkSmartypants from 'remark-smartypants';
Expand Down Expand Up @@ -28,9 +27,6 @@ export default defineConfig({
]),
starlight({
title: 'Docs',
expressiveCode: {
plugins: [pluginCollapsibleSections()],
},
components: {
EditLink: './src/components/starlight/EditLink.astro',
Hero: './src/components/starlight/Hero.astro',
Expand Down
2 changes: 2 additions & 0 deletions config/plugins/llms-txt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,6 @@ export const starlightPluginLlmsTxt = () =>
'en/guides/testing',
'en/guides/media/**',
],
// Use raw Markdown bodies to avoid rendering issues.
rawContent: true,
});
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@
},
"packageManager": "pnpm@10.27.0",
"pnpm": {
"overrides": {
"@astrojs/mdx@*": "npm:astro-xmdx@0.0.3-next.17",
"xmdx@*": "0.0.3-next.4",
"@xmdx/napi@*": "0.0.5-next.4"
},
"peerDependencyRules": {
"ignoreMissing": [
"@types/react",
Expand Down
4,528 changes: 2,427 additions & 2,101 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/content/docs/es/recipes/making-toolbar-apps.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ 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.

Para usar rutas relativas para entrypoints, obtén la ruta al archivo actual usando `import.meta.url` y resuelve la ruta al entrypoint desde allí.
:::

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}
Expand Down
28 changes: 14 additions & 14 deletions src/content/docs/ja/guides/testing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -358,21 +358,21 @@ Nightwatch.jsは、すべての主要なブラウザとそのモバイル版、
</html>
```

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/`を作成し、以下のテストファイルを追加します:

:::tip[`baseUrl`を設定する]
```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("/")`を使用できます。
:::
</Steps>
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/ru/guides/testing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
:::
</Steps>

Expand Down
Loading