Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
BaseMax committed Feb 10, 2025
1 parent b945eeb commit 8bde872
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 4 deletions.
6 changes: 6 additions & 0 deletions config/yaml/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,12 @@

نام این دستور معادل دستور `iframe` می‌باشد.

این دستور دارای ویژگی‌های زیر می‌باشد:

| نام ویژگی | توضیح | تولید |
|-----------|------------|-------|
| `منبع` | | `src` |

<h2 id="style">دستور <code>ظاهر سفارشی</code></h2>

این دستور مادر است و می تواند حامی دستوراتی به عنوان فرزند باشد.
Expand Down
2 changes: 2 additions & 0 deletions config/yaml/layout/type.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,8 @@ items:
- iframe
fa:
- سایت
attributes:
- AST_LAYOUT_ATTRIBUTE_TYPE_SRC
- descriptions: ''
examples: ''
generate_name: style
Expand Down
3 changes: 3 additions & 0 deletions src/generated-config/ast_layout_type_attributes.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ else if (attribute->parent_node_type == AST_LAYOUT_TYPE_VIDEO) {
else if (attribute->parent_node_type == AST_LAYOUT_TYPE_AUDIO) {
}
else if (attribute->parent_node_type == AST_LAYOUT_TYPE_IFRAME) {
if (is_attribute_type_in_array(attribute_key_type, valid_attributes_iframe, valid_attributes_iframe_length)) {
return true;
}
}
else if (attribute->parent_node_type == AST_LAYOUT_TYPE_STYLE) {
}
Expand Down
3 changes: 1 addition & 2 deletions src/generated-config/ast_layout_type_attributes_all.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,7 @@ layout_map_entry_t layout_map[] = {

{ AST_LAYOUT_TYPE_MEDIA, valid_attributes_media, valid_attributes_media_length },

// ----------- END AUTO GENERATED ----------- //};

// ----------- END AUTO GENERATED ----------- //
const size_t map_size = sizeof(layout_map) / sizeof(layout_map[0]);

#endif
Expand Down
6 changes: 4 additions & 2 deletions src/generated-config/ast_layout_type_attributes_values.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,10 @@ const size_t valid_attributes_video_length = 0;
ast_layout_attribute_type_t valid_attributes_audio[] = { AST_LAYOUT_ATTRIBUTE_TYPE_ERROR };
const size_t valid_attributes_audio_length = 0;

ast_layout_attribute_type_t valid_attributes_iframe[] = { AST_LAYOUT_ATTRIBUTE_TYPE_ERROR };
const size_t valid_attributes_iframe_length = 0;
ast_layout_attribute_type_t valid_attributes_iframe[] = {
AST_LAYOUT_ATTRIBUTE_TYPE_SRC,
};
const size_t valid_attributes_iframe_length = sizeof(valid_attributes_iframe) / sizeof(valid_attributes_iframe[0]);

ast_layout_attribute_type_t valid_attributes_style[] = { AST_LAYOUT_ATTRIBUTE_TYPE_ERROR };
const size_t valid_attributes_style_length = 0;
Expand Down

0 comments on commit 8bde872

Please sign in to comment.