-
Notifications
You must be signed in to change notification settings - Fork 274
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
Write documentation guidelines #4
Comments
Add stuff about Message components: You can use double quotes on the outside, and single quotes inside. It's essentially mix/match syntax. <Message |
Also, for Components that use External links: <Message |
And for bulleted list: <Message
NOTE: code block backticks (e.g. on 'mint' and 'GenesisConfig' breaks the mdx. |
On links / URLS: We are following a convention where no forward slash at the end of any link or url. |
Adding Document Objectives in How-to Guides:
Note: multi-line and back ticks / back slashes. |
Note: move components examples and doc guidelines to separate folder. |
We only use H2 ## Header and H3 ### Header to generate TableOfContents. As in those are the only anchor tags that will show up on the side-bar. Otherwise it crashes. |
I suggest the following:
@sacha-l what do you think? |
I agree - I'm just not so sure about:
Microsoft's guidelines actually encourage using contractions for the sake of having a more engaging and warm tone, which I sort of liked. I think having @lsgunnlsgunn lean in here will be super helpful - she's currently helping with writing up these guidelines 😊 |
Add in stuff on Prettier here: #210 |
We should include a link to Substrate's contributing guidelines. |
So we want to enforce that the exact titles are preserved as we have in I actually prefer that we can edit this to really make that title stand out. Here is an example: If we don't want people to change (or have the ability to remove) the title, I would propose we make a new issue (phase-2 or latter) to remove this property and draw that from the
Happy to go with whatever you think is best right now @sacha-l - just indicate yes/no here for custom titles for us 🙏 |
I like the idea of customizable titles, but I would like to revisit the use
of these components (when, where, and how to use them). Is this something a
Ui / UC person recommended? If so, I’d like to involve him or her in the
discussion post launch.
…On Thu, Oct 7, 2021 at 10:43 AM Dan Shields ***@***.***> wrote:
<Message
type={gray}
title={Note}
text={"Experienced developers may 'prefer' i've to skip that tutorial and
install the Node Template according to the instructions in > its readme."}
/>
So we want to *enforce* that the exact titles are preserved as we have in
v3/docs/Examples/Components/index.mdx ?
I actually prefer that we can edit this to really make that title stand
out. Here is an example:
[image: image]
<https://user-images.githubusercontent.com/35669742/136435768-23932a88-5317-428b-b4bb-7d3efe7293de.png>
If we don't want people to change (or have the ability to remove) the
title, I would propose we make a new issue (phase-2 or latter) to remove
this property and draw that from the type where that was not color, but
of the selection note,info,warn,adv,future-reading,... and not have a
user defined color.
Happy to go with whatever you think is best right now @sacha-l
<https://github.com/sacha-l> - just indicate yes/no here for custom
titles for us 🙏
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKRISG6YI5J5DV24XBCZS2LUFXL4FANCNFSM5BCSUV6A>
.
|
UI UX
…On Thu, Oct 7, 2021 at 10:59 AM Lisa Gunn ***@***.***> wrote:
I like the idea of customizable titles, but I would like to revisit the
use of these components (when, where, and how to use them). Is this
something a UI / UX person recommended? If so, I’d like to involve him or
her in the discussion post launch.
On Thu, Oct 7, 2021 at 10:43 AM Dan Shields ***@***.***>
wrote:
> <Message
> type={gray}
> title={Note}
> text={"Experienced developers may 'prefer' i've to skip that tutorial and
> install the Node Template according to the instructions in > its readme."}
> />
>
> So we want to *enforce* that the exact titles are preserved as we have
> in v3/docs/Examples/Components/index.mdx ?
>
> I actually prefer that we can edit this to really make that title stand
> out. Here is an example:
> [image: image]
> <https://user-images.githubusercontent.com/35669742/136435768-23932a88-5317-428b-b4bb-7d3efe7293de.png>
>
> If we don't want people to change (or have the ability to remove) the
> title, I would propose we make a new issue (phase-2 or latter) to remove
> this property and draw that from the type where that was not color, but
> of the selection note,info,warn,adv,future-reading,... and not have a
> user defined color.
>
> Happy to go with whatever you think is best right now @sacha-l
> <https://github.com/sacha-l> - just indicate yes/no here for custom
> titles for us 🙏
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#4 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AKRISG6YI5J5DV24XBCZS2LUFXL4FANCNFSM5BCSUV6A>
> .
>
|
💡 A note to include Substrate's contributing guidelines somehow. Maybe have a separate section referring to this doc for developers wanting to contribute to the codebase. |
From Imad's recent PR: #449 (comment) Steps to ContributeDocs/HTGs (Adding new .mdx files)
Tutorials (Adding new ones)
---
title: Create your first Substrate blockchain
slug: /tutorials/v3/create-your-first-substrate-chain
hideNav: true
sideNav: firstChain
version: '3.0'
section: tutorials
category: substrate chain
keywords: node template, basics
difficulty: 1
duration: 1 Hour
relevantSkills:
- Rust
- Blockchain basics
---
|
With Main-md branch launching, we will need to update and add this to the new content |
Closing this issue as obsolete (MDX-specific) and buried in the queue. We do have contributor's guidelines: They haven't been moved over and updated. |
[WIP]
This is an issue to keep track of the items we want to address in our updated contribution guidelines for the new devhub launch.
Components
List all different components: Tip, Advice, Note, Warning, Important
Convention and examples of which instances to use them in
Docs, Tutorials, How-to guides
Full-stops after bullet-points. Convention tbd
TODO: Add link to the different guidelines (htgs, kb docs) here.
The text was updated successfully, but these errors were encountered: