-
Notifications
You must be signed in to change notification settings - Fork 22.5k
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
docs(template): Add template for CSS module landing pages #27731
Conversation
Preview URLs
(comment last updated: 2023-07-10 19:06:09) |
files/en-us/mdn/writing_guidelines/page_structures/page_types/index.md
Outdated
Show resolved
Hide resolved
@@ -129,6 +129,27 @@ An **SVG reference page** lists all the attributes that are available on an SVG | |||
|
|||
- [SVG element page template](/en-US/docs/MDN/Writing_guidelines/Page_structures/Page_types/SVG_element_page_template) | |||
|
|||
## CSS module landing page | |||
|
|||
Every **[CSS](/en-US/docs/Web/CSS) module** links to a specification that provides support for certain features and implementations in CSS. For example, the specification linked to the [CSS box model](/en-US/docs/Web/CSS/CSS_box_model) module describes the margin and padding properties that let you create spacing in and around a CSS box. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Every **[CSS](/en-US/docs/Web/CSS) module** links to a specification that provides support for certain features and implementations in CSS. For example, the specification linked to the [CSS box model](/en-US/docs/Web/CSS/CSS_box_model) module describes the margin and padding properties that let you create spacing in and around a CSS box. | |
Every **[CSS](/en-US/docs/Web/CSS) module** links to a specification that provides support for certain features and implementations in CSS. For example, the specification linked to the [CSS box model](/en-US/docs/Web/CSS/CSS_box_model) module describes the margin and padding properties defined in the CSS box model specification that let you create spacing in and around a CSS box. |
just want to somehow say a module is a specification, with css1 and css2.X specs not included
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
^^^ Not quite right "the specification linked to" and "defined in the CSS box model specification" in the same sentence.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Modified the text a bit to add clarity. Is this better (efb00cd)?
Every CSS module represents a CSS specification that provides support for certain features and implementations in CSS. For example, the CSS box model module represents the specification that describes the margin and padding properties that let you create spacing in and around a CSS box.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sounds good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
two suggested things to add, but approving because it's also ok as is.
@@ -45,7 +45,7 @@ If the work is more significant, then you should consider a few factors when pri | |||
|
|||
If you want to get a team together to work on an update, or you just want to report or discuss some content needing an update, feel free to [file a content issue](https://github.com/mdn/content/issues) or [ask us for help](/en-US/docs/MDN/Community/Communication_channels). | |||
|
|||
## The page-type front matter key | |||
## Front matter key for page types |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why? Given the important subject here is page-type?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to get rid of the "The" at the beginning of the title. Also because we're not referring to any other front matter keys, it seemed this could be made a bit generic. Reverting in d126142.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's OK either way. I prefer it the way you reverted, but that doesn't make me right.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No worries! I value your input and didn't want to disturb the reasoning that's gone behind the page type page creation. All good. 👍
A **CSS module landing page** provides an overview of the features that the module provides and lists all the properties, data types, CSS functions, and so on offered by the module. When possible, the CSS module landing page also provides a quick demonstration of what can be achieved using the properties of the module through an interactive example. | ||
The module landing page serves primarily as a _navigation_ page, but also functions as an at-a-glance _reference_ page for the module. | ||
|
||
Some related properties and features that belong in other modules but are closely related to the functionality offered by the module you are documenting can also be covered in a _Related concepts_ section. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some related properties and features that belong in other modules but are closely related to the functionality offered by the module you are documenting can also be covered in a _Related concepts_ section. | |
Some related properties and features that belong in other modules, but which are closely related to the functionality offered by the module you are documenting, can also be covered in a _Related concepts_ section. |
A **CSS module landing page** provides an overview of the features that the module provides and lists all the properties, data types, CSS functions, and so on offered by the module. When possible, the CSS module landing page also provides a quick demonstration of what can be achieved using the properties of the module through an interactive example. | ||
The module landing page serves primarily as a _navigation_ page, but also functions as an at-a-glance _reference_ page for the module. | ||
|
||
Some related properties and features that belong in other modules but are closely related to the functionality offered by the module you are documenting can also be covered in a _Related concepts_ section. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some related properties and features that belong in other modules but are closely related to the functionality offered by the module you are documenting can also be covered in a _Related concepts_ section. | |
Some related properties and features that belong in other modules, but which are closely related to the functionality offered by the module you are documenting, can also be covered in a _Related concepts_ section. |
files/en-us/mdn/writing_guidelines/page_structures/page_types/index.md
Outdated
Show resolved
Hide resolved
.../mdn/writing_guidelines/page_structures/page_types/css_module_landing_page_template/index.md
Show resolved
Hide resolved
883de40
to
efb00cd
Compare
Thanks a lot @estelle and @hamishwillee for reviewing these template changes. Let me know what you think of the updates based on your feedback. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is good. Estelle has already approved and noted she was happy, so merging.
Thanks, Hamish! |
Description
This PR is related to the work being done via openwebdocs/project#147 by @estelle.
Motivation
To define a structure that can be used uniformly to create/update other CSS module landing pages.
Additional details