Skip to content

Commit

Permalink
Merge pull request #94 from CMDBrew/rename_configurations_doc_to_cust…
Browse files Browse the repository at this point in the history
…omizations

docs: rename configurations doc to customizations
  • Loading branch information
ilunglee authored Oct 17, 2021
2 parents c1ad7ca + 7743c42 commit 8b4f1e1
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion website/docs/enhancements/components.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 1
sidebar_position: 2
---

# Arbre Components
Expand Down
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
12 changes: 6 additions & 6 deletions website/docs/enhancements/form.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 3
sidebar_position: 4
description: Adminterface Guide for the Form(new, edit) Page.
---

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion website/docs/enhancements/form/_input_counter.mdx
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 2 additions & 2 deletions website/docs/enhancements/index.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 2
sidebar_position: 3
description: Adminterface Guide for the Index Page.
---

Expand Down Expand Up @@ -128,7 +128,7 @@ import ConfirmCssClass from '!!raw-loader!@site/../config/locales/active_admin.e
]}>
<TabItem value="css_class">
Create a <code>css_claases.yml</code> and specify the changes. Visit the <a href="/docs/start/configuration#css-classes">configuration guide</a> for more information.
Create a <code>css_claases.yml</code> and specify the changes. Visit the <a href="/docs/enhancements/customizations#css-classes">configuration guide</a> for more information.
<br/>
<br/>
Expand Down
4 changes: 2 additions & 2 deletions website/docs/enhancements/javascript.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ import ConfirmCssClass from '!!raw-loader!@site/../config/locales/active_admin.e
]}>
<TabItem value="css_class">
To update the default CSS classes, you can create a <code>css_claases.yml</code> and specify the changes. See <a href="/docs/start/configuration#css-classes">Configuration</a> for more information.
To update the default CSS classes, you can create a <code>css_claases.yml</code> and specify the changes. See <a href="/docs/enhancements/customizations#css-classes">Configuration</a> for more information.
<br/>
<br/>
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion website/docs/start/cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8b4f1e1

Please sign in to comment.