Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove legacy prop #31

Merged
merged 2 commits into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions en/project/page-constructor.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

Page constructor (hereinafter PC) is a library of the [Gravity UI](https://gravity-ui.com/) family for rendering web pages based on data presented in YAML format.
When creating pages, component-based approach is used: a page is built using a set of ready-made blocks that can be placed in any order. Each block has a certain type and set of input data parameters.
For the format of input data and list of available blocks, see the [documentation](https://preview.gravity-ui.com/page-constructor/?path=/docs/documentation-blocks--docs).
For the format of input data and list of available blocks, see the [documentation](https://preview.gravity-ui.com/page-constructor/?path=/docs/documentation-blocks--docs). The PC storybook has a [convenient sandbox](https://preview.gravity-ui.com/page-constructor/?path=/story/editor-main--default), in which you can first try out all the blocks and assemble the page, and only then copy the finished config to your documentation.

Examples of page design using PC [\[1\]](./pc-example1.yaml) [\[2\]](./pc-example2.yaml)
Examples of page design using PC [\[1\]](./pc-example1.yaml) [\[2\]](./pc-example2.yaml) [\[3\]](./pc-example3.yaml)

## Structure {#structure}

Expand All @@ -27,12 +27,10 @@ blocks:
fullWidth: false
buttons:
- text: 'Quickstart'
primary: true
theme: 'dark'
size: 'promo'
url: '/quickstart'
- text: 'GitHub'
primary: true
theme: 'outlined'
size: 'promo'
url: 'https://github.com/diplodoc-platform'
Expand Down
2 changes: 0 additions & 2 deletions en/project/pc-example1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,10 @@ blocks:
fullWidth: false
buttons:
- text: 'Quickstart'
primary: true
theme: 'outlined'
size: 'promo'
url: '/'
- text: 'GitHub'
primary: true
theme: 'outlined'
size: 'promo'
url: 'https://github.com/diplodoc-platform'
Expand Down
2 changes: 0 additions & 2 deletions en/project/pc-example3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,10 @@ blocks:
fullWidth: false
buttons:
- text: 'Quickstart'
primary: true
theme: 'outlined'
size: 'promo'
url: '/'
- text: 'GitHub'
primary: true
theme: 'outlined'
size: 'promo'
url: 'https://github.com/diplodoc-platform'
Expand Down
6 changes: 2 additions & 4 deletions ru/project/page-constructor.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

Page constructor (далее -- PC) - это библиотека семейства [Gravity UI](https://gravity-ui.com/) для рендеринга веб-страниц на основе данных представленных в YAML формате.
При создании страниц используется компонентный подход: страница строится с использованием набора готовых блоков, которые можно размещать в любом порядке. Каждый блок имеет определенный тип и набор параметров входных данных.
Формат входных данных и список доступных блоков можно посмотреть в [документации библиотеки](https://preview.gravity-ui.com/page-constructor/?path=/docs/documentation-blocks--docs).
Формат входных данных и список доступных блоков можно посмотреть в [документации библиотеки](https://preview.gravity-ui.com/page-constructor/?path=/docs/documentation-blocks--docs). В сторибуке PC есть [удобная песочница](https://preview.gravity-ui.com/page-constructor/?path=/story/editor-main--default), в которой сначала можно опробовать все блоки и собрать страницу, а уже потом скопировать готовый конфиг к себе в документацию.

Примеры оформление страниц с помощью PC [\[1\]](./pc-example1.yaml) [\[2\]](./pc-example2.yaml)
Примеры оформление страниц с помощью PC [\[1\]](./pc-example1.yaml) [\[2\]](./pc-example2.yaml) [\[3\]](./pc-example3.yaml)

## Структура {#structure}

Expand All @@ -27,12 +27,10 @@ blocks:
fullWidth: false
buttons:
- text: 'Начать'
primary: true
theme: 'dark'
size: 'promo'
url: '/quickstart'
- text: 'GitHub'
primary: true
theme: 'outlined'
size: 'promo'
url: 'https://github.com/diplodoc-platform'
Expand Down
2 changes: 0 additions & 2 deletions ru/project/pc-example1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,10 @@ blocks:
fullWidth: false
buttons:
- text: 'Начать'
primary: true
theme: 'outlined'
size: 'promo'
url: '/'
- text: 'GitHub'
primary: true
theme: 'outlined'
size: 'promo'
url: 'https://github.com/diplodoc-platform'
Expand Down
2 changes: 0 additions & 2 deletions ru/project/pc-example3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,10 @@ blocks:
fullWidth: false
buttons:
- text: 'Начать'
primary: true
theme: 'outlined'
size: 'promo'
url: '/'
- text: 'GitHub'
primary: true
theme: 'outlined'
size: 'promo'
url: 'https://github.com/diplodoc-platform'
Expand Down
Loading