diff --git a/website/docs/enhancements/components.mdx b/website/docs/enhancements/components.mdx index 1fb113fe..16fed535 100644 --- a/website/docs/enhancements/components.mdx +++ b/website/docs/enhancements/components.mdx @@ -1,5 +1,5 @@ --- -sidebar_position: 1 +sidebar_position: 2 --- # Arbre Components diff --git a/website/docs/start/configuration.mdx b/website/docs/enhancements/customizations.mdx similarity index 99% rename from website/docs/start/configuration.mdx rename to website/docs/enhancements/customizations.mdx index e5386752..04bfe453 100644 --- a/website/docs/start/configuration.mdx +++ b/website/docs/enhancements/customizations.mdx @@ -1,9 +1,9 @@ --- -sidebar_position: 3 -description: Adminterface Configuration Guide for Scoping, CSS, Components, and Theme. +sidebar_position: 1 +description: Adminterface Customizations Guide for Scoping, CSS, Components, and Theme. --- -# Configuration +# Customizations ````mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; diff --git a/website/docs/enhancements/form.mdx b/website/docs/enhancements/form.mdx index 3b9e7d0f..7e68caa7 100644 --- a/website/docs/enhancements/form.mdx +++ b/website/docs/enhancements/form.mdx @@ -1,5 +1,5 @@ --- -sidebar_position: 3 +sidebar_position: 4 description: Adminterface Guide for the Form(new, edit) Page. --- @@ -277,7 +277,7 @@ import DatalistGroupish from './form/_groupish.mdx'; ### DatePicker `:date_picker` or `:datepicker` (ActiveAdmin compatibility) - a date select. Alternative to `:date` using the [Flatpickr] library replacing the jQuery date picker in [ActiveAdmin] -- **Configuration**: [Formtastic][Formtastic/StringInput], [Configuration] +- **Configuration**: [Formtastic][Formtastic/StringInput], [Customizations] - **Styling**: [Bootstrap][Bootstrap/form-control], [Flatpickr] ````mdx-code-block @@ -322,7 +322,7 @@ f.input :published_at, as: :date_select ### DateTimePicker `:datetime_picker` - a date and time select. Alternative to `:datetime` using the [Flatpickr] library replacing the jQuery date picker in [ActiveAdmin]. -- **Configuration**: [Formtastic][Formtastic/StringInput], [Configuration] +- **Configuration**: [Formtastic][Formtastic/StringInput], [Customizations] - **Styling**: [Bootstrap][Bootstrap/form-control], [Flatpickr] ````mdx-code-block @@ -531,7 +531,7 @@ import SearchGroupish from './form/_groupish.mdx'; ### Select `:select` - a select menu. Default for ActiveRecord associations: `belongs_to`, `has_many`, and `has_and_belongs_to_many`. -- **Configuration**: [Formtastic][Formtastic/SelectInput], [TomSelect], [Configuration] +- **Configuration**: [Formtastic][Formtastic/SelectInput], [TomSelect], [Customizations] - **Styling**: [Bootstrap][Bootstrap/select] ````mdx-code-block @@ -603,7 +603,7 @@ f.input :accept, as: :switch ### Text `:text` - a textarea. Default for column types: `:text` -- **Configuration**: [Formtastic][Formtastic/TextInput], [Configuration] +- **Configuration**: [Formtastic][Formtastic/TextInput], [Customizations] - **Styling**: [Bootstrap][Bootstrap/form-control] ```ruby @@ -707,7 +707,7 @@ import URLGroupish from './form/_groupish.mdx'; [Bootstrap/form-control#file-input]: https://getbootstrap.com/docs/5.0/forms/form-control#file-input [Bootstrap/range]: https://getbootstrap.com/docs/5.0/forms/range/ [Bootstrap/select]: https://getbootstrap.com/docs/5.0/forms/select/ -[Configuration]: /docs/start/configuration +[Customizations]: /docs/enhancements/customizations [CountrySelect]: https://github.com/stefanpenner/country_select [Flatpickr]: https://flatpickr.js.org/ [Formtastic]: https://github.com/formtastic/formtastic diff --git a/website/docs/enhancements/form/_input_counter.mdx b/website/docs/enhancements/form/_input_counter.mdx index e41a1ad6..22b73b4d 100644 --- a/website/docs/enhancements/form/_input_counter.mdx +++ b/website/docs/enhancements/form/_input_counter.mdx @@ -1,5 +1,5 @@ #### Input Counter -You can enable counter by passing the `counter:` option. See the [Configuration](/docs/start/configuration#inputs) guide for instructions on how to update the default options. +You can enable counter by passing the `counter:` option. See the [Customizations](/docs/enhancements/customizations#inputs) guide for instructions on how to update the default options. :::caution To ensure data integrity, you should also implement server-side validations. diff --git a/website/docs/enhancements/index.mdx b/website/docs/enhancements/index.mdx index 778eec49..241b4037 100644 --- a/website/docs/enhancements/index.mdx +++ b/website/docs/enhancements/index.mdx @@ -1,5 +1,5 @@ --- -sidebar_position: 2 +sidebar_position: 3 description: Adminterface Guide for the Index Page. --- @@ -128,7 +128,7 @@ import ConfirmCssClass from '!!raw-loader!@site/../config/locales/active_admin.e ]}> - Create a css_claases.yml and specify the changes. Visit the configuration guide for more information. + Create a css_claases.yml and specify the changes. Visit the configuration guide for more information.

diff --git a/website/docs/enhancements/javascript.mdx b/website/docs/enhancements/javascript.mdx index 32f88070..4b687db0 100644 --- a/website/docs/enhancements/javascript.mdx +++ b/website/docs/enhancements/javascript.mdx @@ -213,7 +213,7 @@ import ConfirmCssClass from '!!raw-loader!@site/../config/locales/active_admin.e ]}> - To update the default CSS classes, you can create a css_claases.yml and specify the changes. See Configuration for more information. + To update the default CSS classes, you can create a css_claases.yml and specify the changes. See Configuration for more information.

@@ -382,7 +382,7 @@ You can view the input mapping from your browser console. Adminterface comes with a set of JS plugins to make form inputs more dynamic. :::tip -You can add custom plugins or disable the default plugins by updating the configurations files for `components`. Learn more in the [Configuration guide](/docs/start/configuration#components). +You can add custom plugins or disable the default plugins by updating the configurations files for `components`. Learn more in the [Configuration guide](/docs/enhancements/customizations#components). ::: #### Input Counter diff --git a/website/docs/start/cli.mdx b/website/docs/start/cli.mdx index 61be6885..bfde73ad 100644 --- a/website/docs/start/cli.mdx +++ b/website/docs/start/cli.mdx @@ -124,7 +124,7 @@ This will copy the following files to `/config/adminterface/NAMESPACE`: - `components.yml` - `css_classes.yml` -See [Configuration](/docs/start/configuration) for usage guides and options. +See [Customizations](/docs/enhancements/customizations) for usage guides and options. :::tip This command helps you separate configurations for components and CSS classes for individual scopes to keep your code tidy.