-
-
Notifications
You must be signed in to change notification settings - Fork 193
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
Editorconfig page #2427
Editorconfig page #2427
Conversation
For the initial introduction you want to:
|
Add new configuration file
730fbc3
to
832a680
Compare
…editorconfig-page
Temporarily deleted settings for ramping up the new configuration page.
- Redacted basic introduction - Included gif for online tool usage.
- Create section where we explain each recommendation (to be redacted) - Add icons for each recommendation - Implement tooltip for when users hover the symbol
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.
So far, so good.
A first breakdown of the settings: Auxiliary settings
Maximum width constraints
G-Research style
Other
There are a couple of |
|
||
(** | ||
## <img class="gresearch-recommendation align-top" data-bs-toggle="tooltip" data-bs-custom-class="gresearch-tooltip" data-bs-title="If you use one of these you should use all G-Research settings for consistency reasons" data-bs-custom-class="orange-tooltip" src="{{root}}/gresearch.svg" alt="G-Research logo"/> G-Research style | ||
#### <i class="bi bi-check-circle-fill orange-recommendation" data-bs-toggle="tooltip" data-bs-custom-class="orange-tooltip" data-bs-title="This setting is not recommended"></i> indent_size |
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.
@KenBonny don't mind the fsx
part, we are using fsdocs.
Everything in between (**
and *)
will be rendered as Markdown.
We currently need to write a lot of HTML code inside our markdown to show the right icon with a tooltip.
Using a web component, we can wrap all that.
We are most likely going to go with lit.
Cook some components up and then place the HTML with something like <fantomas-icon></fantomas-icon>
.
- Resized recommendation system icons - Changed code generation to not use variables - Redaction tweaks
…editorconfig-page
…/fantomas into editorconfig-page
(*** include-it ***) | ||
|
||
(** | ||
## Maximum width constraints |
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.
Before listing all the settings, I would add some introduction text that summarizes what these settings do. You can use some lorem ipsum for now if nothing comes to mind.
- Deleted repeated G-Research icon - Changed output background stylings - Deleted 'default_config' keyword - Temporal lorep ipsum that later will explain sections
- Imported Lit dependency for web components - Created 4 web componentes for each recommendation system - Changed hardcoded icons to custom web components - Changed icons stylings for allowing different stylings depending on icon location
…editorconfig-page
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.
Could you please also update the .README
file in docs.
eval
should be passed in as argument to get the script working.
One other interesting thing I discovered was the haunted project. import { html } from 'https://cdn.skypack.dev/lit';
import { component } from 'https://cdn.skypack.dev/haunted';
function SeaGreenCategory({ tooltip }) {
return html`<i class="bi bi-check-circle-fill green-recommendation" style="color: seagreen"
data-bs-toggle="tooltip" data-bs-custom-class="green-tooltip" data-bs-title="${tooltip}"></i>`;
}
customElements.define('fantomas-seagreen', component(SeaGreenCategory, { useShadowDOM: false,
observedAttributes: [ 'tooltip'] })); |
Temporary lorem ipsum for each setting description Temporary code generation
…editorconfig-page
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.
Move the gresearch svg to the images folder.
Update svg to have a width and height of 14px and change the padding to be 3px instead of 4px. That way the image will have a total width and height of 20px which will better match the bootstrap icon size.
- Add eval flag for readme file - Refactor code for better readability - Deleted unnecesary sass vars - Reworded settings redactions - Resize SVG icon
I took a glimpse at the last commits and I can still several previous remarks that are not yet addressed. Please circle back through each and every remake and finalize this PR. |
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.
Alright, let's merge this in. I'll address some things in a next PR.
Action Items
Configuration introduction
Categorization and recommendation system