-
Notifications
You must be signed in to change notification settings - Fork 10
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
Create a default page structure for components #245
Comments
I've attempted a trial run at entering ns-accordion content in the format as outlined in the scope above. This helps assess if there's any issues. Content was copied from existing docs, some screenshots as placeholders for snippets etc, and I've add a few comments/questions in situ. I also added a custom.css on my branch and tweaked the main heading style slightly larger, because I wanted to see how that works in anticipation that we may need to fine tune things a touch once we can see how it is working. Eg. if we decided we needed a specific class that makes the main purpose 1 liner larger and bolder to make it more noticeable, or if we wanted to add the tag equivalent of the name as the first item below the main title and using |
I've added content for all sections on the ns-accordion as a trial-fit. Let's discuss to see what might need changing. I am hoping to gain some insights from some user interviews I'll be setting up and then empathy mapping. This will help us understand what is important to the users and give us insights on heirarchy and usefulness of content, and understand the painpoints of the current way of working. |
Thoughts...
|
Discovery work on code block, images #257 |
Discovery work on general styles for Nucleus docs:• There are light and dark modes to take advantage of in Astro. There are still some to yet be considered such as links and captions. These below give an overall look and feel that helps it look more considered than default and Nucleus branded rather than BG. Let me know if you think we should reconsider any of these choices? |
I was looking at my Grammarly app (a useful tool to assist when writing things) and the following set could be correct for our tone of voice for the docs - let me know if you think this needs anything different. (I had considered using 'expert' but then thought the users would not be, so better to talk in their language.) |
Grammarly, Hemmingway and VSCode CopilotObserving the response from both https://app.grammarly.com/ (using the settings above) and for https://hemingwayapp.com/ Using Copilot in VSCode:Prompt to Copilot: review my document Copilot response: As an AI programming assistant, I can provide feedback on the structure and formatting of your document. Here's my review:
Overall, the document is well-structured and provides clear guidance on how to use the accordion component. It might be helpful to provide more context or explanations for the code snippets in the Usage and Component placement sections. Prompt to Copilot: suggest grammatical changes Copilot response: Here are some suggested grammatical changes:
Prompt to Copilot: apply these changes Copilot response: Here's your document with the suggested grammatical changes applied: Before: ## Introduction
> Accordion enables users to expand and collapse multiple sections of content.
We use accordions to break down content into meaningful sections, helping to reduce information overload. Accordions are useful for things like frequently asked questions or displaying multiple blocks of related content inside an [ns-expander](components/ns-expander.md).
## Content guidance
![Accordion](images/ns-accordion/contentguidance-ns-accordion.webp)
| Key | Field type | Guidelines |
| :--- | :--- | :--- |
| A | Heading | The recommended length is between 4 and 12 words, not exceeding 50 characters in total. |
| B | Content | Use between 1 and 8 [ns-expander](components/ns-expander.md) components. All expanders need to be related to the accordion's heading.|
## Best practice
| 💚 Do's | 💔 Don'ts |
| :--- | :--- |
| Use for FAQs | Use a background with an accordion as the expanded state is white |
| Use to split up related content | Use more than 8 expanders |
| Make sure the heading relates to content | Use for critical or to hide information (such as caveats) |
| Use as a supporting component to the rest of the page's content | Use as a solution to excessive copy on a page |
| | Use as the only component on a page |
### Considerations of best practises
If you need more than 8 [ns-expander](components/ns-expander.md) components, you can use more than one accordion on the page.
If there isn't a inherent logical order to the expanders, use alphabetical order for ease of scanning. After: ## Introduction
> The accordion enables users to expand and collapse multiple sections of content.
We use accordions to break down content into meaningful sections, helping to reduce information overload. Accordions are useful for things like frequently asked questions or displaying multiple blocks of related content inside an [ns-expander](components/ns-expander.md).
## Content guidance
![Accordion](images/ns-accordion/contentguidance-ns-accordion.webp)
| Key | Field type | Guidelines |
| :--- | :--- | :--- |
| A | Heading | The recommended length is between 4 and 12 words, not exceeding 50 characters in total. |
| B | Content | Use between 1 and 8 [ns-expander](components/ns-expander.md) components. All expanders should be related to the accordion's heading.|
## Best practice
| 💚 Do's | 💔 Don'ts |
| :--- | :--- |
| Use for FAQs | Use a background with an accordion as the expanded state is white |
| Use to split up related content | Use more than 8 expanders |
| Ensure the heading relates to the content | Use for critical or to hide information (such as caveats) |
| Use as a supporting component to the rest of the page's content | Use as a solution to excessive copy on a page |
| | Use as the only component on a page |
### Considerations of best practices
If you need more than 8 [ns-expander](components/ns-expander.md) components, you can use more than one accordion on the page.
If there isn't an inherent logical order to the expanders, consider using alphabetical order for ease of scanning. GitHub Copilot suggested this question:
Copilot response: Accordions are commonly used in web development for the following purposes:
Remember, while accordions can be very useful, they should be used sparingly and not for critical information that all users should see, as some users may not realize they need to expand the accordion to view the content. SummaryUsing Copilot to assist in the structure, grammar and content of our documents could be a time-saver, help with spelling and grammar and give us some insight to produce additional content. Both Grammarly and Hemmingway have the option of using AI, but I've not tried either of these as they are part of their paid plans and I'm thinking that using these cloud apps may be an issue with Centrica security etc., even though our content will be public. |
Merged approved branch for fonts #259 |
I've created a few component pages which differ from each other so we can evaluate the page structure for the different needs. These components are:
|
Looking at the results we had from the user research, it suggests that we might move 'Best Practice' and 'Dos & Don'ts' to the 'Guidance' section and Snippets to the 'Implementation' section as that's where they would be expected. Also, visual examples are highly appreciated by the users so comprehensive image examples of configured variants etc could be included in Guidance too. |
Added a comment re testing the structure on the User research ticket... #256 (comment) |
Code snippet component #268 |
At this point in time, we are happy with the initial default page structure for the component pages. Ticket to track the implementation: The PR to build the initial component page structure is: |
Outcome
We have a template to work with when we start creating each component's documentation page
Scope
This is the structure we agreed during our workshop:
Component name
Overview
Guidance
Implementation
Placement ***
Side widgets
Automated to pull from custom-elements.json *
Automated to pull from custom-elements.json and manual content **
Reusable wrapper / component ***
The text was updated successfully, but these errors were encountered: