|
| 1 | +import { defineConfig, type DefaultTheme } from "vitepress"; |
| 2 | + |
| 3 | +export const fa = defineConfig({ |
| 4 | + title: "قابلیت دسترسی", |
| 5 | + lang: "fa-IR", |
| 6 | + description: "نگاهی به اهمیت accessibility در فرآیند توسعه", |
| 7 | + dir: "rtl", |
| 8 | + markdown: { |
| 9 | + container: { |
| 10 | + tipLabel: "نکته", |
| 11 | + warningLabel: "هشدار", |
| 12 | + dangerLabel: "خطر", |
| 13 | + infoLabel: "اطلاعات", |
| 14 | + detailsLabel: "جزئیات", |
| 15 | + }, |
| 16 | + }, |
| 17 | + themeConfig: { |
| 18 | + sidebar: sidebar(), |
| 19 | + docFooter: { |
| 20 | + prev: "قبلی", |
| 21 | + next: "بعدی", |
| 22 | + }, |
| 23 | + |
| 24 | + outline: { |
| 25 | + label: "در این صفحه", |
| 26 | + }, |
| 27 | + |
| 28 | + lastUpdated: { |
| 29 | + text: "آخرین بهروزرسانی", |
| 30 | + formatOptions: { |
| 31 | + dateStyle: "short", |
| 32 | + timeStyle: "medium", |
| 33 | + }, |
| 34 | + }, |
| 35 | + |
| 36 | + langMenuLabel: "تغییر زبان", |
| 37 | + returnToTopLabel: "بازگشت به بالا", |
| 38 | + sidebarMenuLabel: "منوی جانبی", |
| 39 | + darkModeSwitchLabel: "تم تاریک", |
| 40 | + lightModeSwitchTitle: "رفتن به حالت روشن", |
| 41 | + darkModeSwitchTitle: "رفتن به حالت تاریک", |
| 42 | + notFound: { |
| 43 | + linkLabel: "بازگشت به خانه", |
| 44 | + linkText: "بازگشت به خانه", |
| 45 | + title: "صفحه مورد نظر یافت نشد", |
| 46 | + code: "۴۰۴", |
| 47 | + quote: |
| 48 | + "اما اگر جهت خود را تغییر ندهید و اگر ادامه دهید به دنبال چیزی که دنبال میکنید، ممکن است در نهایت به جایی که در حال رفتن به سمتش هستید، برسید.", |
| 49 | + }, |
| 50 | + siteTitle: "قابلیت دسترسی (accessibility)", |
| 51 | + }, |
| 52 | +}); |
| 53 | + |
| 54 | +function sidebar(): DefaultTheme.SidebarItem[] { |
| 55 | + return [ |
| 56 | + { |
| 57 | + text: "مقدمه", |
| 58 | + base: "/topics/intro", |
| 59 | + items: [ |
| 60 | + { |
| 61 | + text: "چه کسانی به accessibility نیاز دارند؟", |
| 62 | + link: "/who-is-a11y-for", |
| 63 | + }, |
| 64 | + { text: "چرا accessibility مهم است؟", link: "/why-is-a11y-important" }, |
| 65 | + { text: "راهاندازی کاربران Windows", link: "/windows-users" }, |
| 66 | + // { text: "دموها: accessibility در محیط واقعی", link: "/examples" }, |
| 67 | + ], |
| 68 | + }, |
| 69 | + { |
| 70 | + text: "MVP", |
| 71 | + base: "/topics/mvp", |
| 72 | + items: [ |
| 73 | + { |
| 74 | + text: "MVPها چه ارتباطی با accessibility دارند؟", |
| 75 | + link: "/mvp-and-a11y", |
| 76 | + }, |
| 77 | + { |
| 78 | + text: "بازگشت به عقب بخاطر accessibility", |
| 79 | + link: "/shift-left", |
| 80 | + }, |
| 81 | + { |
| 82 | + text: "Personaهای مرتبط با accessibility", |
| 83 | + link: "/persona", |
| 84 | + }, |
| 85 | + ], |
| 86 | + }, |
| 87 | + { |
| 88 | + text: "روابط کاربری accessible", |
| 89 | + base: "/topics/ui", |
| 90 | + items: [ |
| 91 | + { |
| 92 | + text: "اصول پایهای اعمال accessibility", |
| 93 | + link: "/intro", |
| 94 | + }, |
| 95 | + { |
| 96 | + text: "چه چیزهایی باید حس خطر ما را فعال کنند؟", |
| 97 | + link: "/your-spidey-senses", |
| 98 | + }, |
| 99 | + { |
| 100 | + text: "با div دکمه نسازید!", |
| 101 | + link: "/dont-be-a-div-button-creator", |
| 102 | + }, |
| 103 | + { |
| 104 | + text: "متدهای Visibility", |
| 105 | + link: "/visibility-methods", |
| 106 | + }, |
| 107 | + { |
| 108 | + text: "چگونه یک کامپوننت UI را از نظر accessibility تست کنیم", |
| 109 | + link: "/how-to-test-components", |
| 110 | + }, |
| 111 | + ], |
| 112 | + }, |
| 113 | + ]; |
| 114 | +} |
0 commit comments