interface Props {
description: string
- direction?: 'rtl'
layout: Layout
robots: string | undefined
thumbnail: string
title: string
}
-const { description, direction, layout, robots, thumbnail, title } = Astro.props
+const { description, layout, robots, thumbnail, title } = Astro.props
const canonicalUrl = new URL(Astro.url.pathname, Astro.site)
</script>
{import.meta.env.PROD && ScssProd && (
- <Stylesheet direction={direction} layout={layout} />
+ <Stylesheet layout={layout} />
<ScssProd.default />
)}
import type { Layout } from '@libs/layout'
interface Props {
- direction?: 'rtl'
layout: Layout
}
-
-const { direction } = Astro.props
---
-<link {...getVersionedBsCssProps(direction)} />
+<link {...getVersionedBsCssProps()} />
])
.optional(),
description: z.string(),
- direction: z.literal('rtl').optional(),
extra_js: z
.object({
async: z.boolean().optional(),
<head>
<Head
description={description}
- direction={frontmatter?.direction}
layout={layout}
robots={robots}
thumbnail={thumbnail}
type Props = ExampleFrontmatter
-const { body_class, direction, extra_css, extra_js, html_class, include_js, title = 'Example' } = Astro.props
+const { body_class, extra_css, extra_js, html_class, include_js, title = 'Example' } = Astro.props
const pageTitle = `${title} · ${getConfig().title} v${getConfig().docs_version}`
const canonicalUrl = new URL(Astro.url.pathname, Astro.site)
-
-const htmlProps: HTMLAttributes<'html'> = direction === 'rtl' ? { lang: 'ar', dir: 'rtl' } : { lang: 'en' }
---
<!DOCTYPE html>
-<html {...htmlProps} class:list={html_class} data-bs-theme="auto">
+<html lang="en" class:list={html_class} data-bs-theme="auto">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script is:inline src={getVersionedDocsPath('assets/js/color-modes.js')}></script>
- <Stylesheet direction={direction} layout="examples" />
+ <Stylesheet layout="examples" />
<Favicons />
<style is:global>
import { getConfig } from '@libs/config'
import { getVersionedDocsPath } from '@libs/path'
-export function getVersionedBsCssProps(direction: 'rtl' | undefined) {
+export function getVersionedBsCssProps() {
let bsCssLinkHref = '/dist/css/bootstrap'
if (import.meta.env.PROD) {
export const exampleFrontmatterSchema = z.object({
body_class: z.string().optional(),
- direction: z.literal('rtl').optional(),
extra_css: z.string().array().optional(),
extra_js: z
.object({