rtl
This plugin will set direction to rtl on configured locales.
Usage
npm i -D @vuepress/plugin-rtl@next
import { rtlPlugin } from '@vuepress/plugin-rtl'
export default {
plugins: [
rtlPlugin({
// options
locales: ['/ar/'],
}),
],
}
Options
locales
- Type:
string[] - Default:
['/'] - Details: Locale path to enable rtl.
selector
Type:
SelectorOptionsinterface SelectorOptions { [element: string]: { [attrs: string]: string } }Default:
{ 'html': { dir: 'rtl' } }Details:
Selector to enable rtl.
The default settings mean that the
dirattribute of thehtmlelement will be set tortlin rtl locales.
