Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

docs: fix formatting of note callouts#16761

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Parkreiner merged 4 commits intocoder:mainfromlucasmelin:main
Mar 7, 2025
Merged

Conversation

lucasmelin
Copy link
Contributor

Fixes the formatting of several note callouts. Previously, these would render incorrectly both on GitHub and on the documentation site.

Example:
coder-docs-note-callout-issue

@cdr-botcdr-botbot added the communityPull Requests and issues created by the community. labelMar 2, 2025
@github-actionsGitHub Actions
Copy link

github-actionsbot commentedMar 2, 2025
edited
Loading

All contributors have signed the CLA ✍️ ✅
Posted by theCLA Assistant Lite bot.

@lucasmelin
Copy link
ContributorAuthor

I have read the CLA Document and I hereby sign the CLA

cdrci2 added a commit to coder/cla that referenced this pull requestMar 2, 2025
@ethanndickson
Copy link
Member

ethanndickson commentedMar 3, 2025
edited
Loading

From my work on a different branch, it doesn't look like Coder.com supports the[!NOTE] syntax at all, i.e. I have

> [!NOTE]> Despite the browser showing an insecure connection without `HTTPS`, the underlying tunnel is encrypted with WireGuard in the same fashion as other Coder workspace connections (e.g. `coder port-forward`).

which is rendering as:
image

Works on GitHub though

lucasmelin reacted with thumbs up emoji

@lucasmelin
Copy link
ContributorAuthor

Thanks for the tip@ethanndickson. Updated the PR so that callouts found in documentation located in thedocs/ directory use HTMLblockquotes instead. I don't think the documentation located in theexamples/templates/ directory are rendered on Coder.com, so these are still using the GitHub callout syntax.

ethanndickson reacted with heart emoji

@Parkreiner
Copy link
Member

Parkreiner commentedMar 3, 2025
edited
Loading

@ethanndickson The specific blockquote syntax is actually part of something that GitHub themselves came up – Github-Flavored Markdown. This is themain spec doc, andthis is the cheatsheet where they describe how the comments are supposed to work.

I just added support for these to the Coder Registry the other week. We already use them extensively throughout our projects (including a lot of Coder Modules and Templates), so my gut feeling is that it'd be a mistake to switch away from them. So realistically, there's a good chance that we want to update the docs to make sure they render correctly on GitHub, but then also update how we render them, across both the private Coder.com repo, and the public/offlinedocs directory in this repo

@matifali Does that sound right to you? I know we have an issue about adding GFM to Coder.com that's from 2023, but I wasn't sure if it's still something we're actively trying to support. We already have a custom system partly in place because we have code that processes HTML blockquotes that use theadmonition class, but my worries are:

  1. This is a custom system that isn't really documented
  2. Even though GFM is also a custom system, it has much better adoption, and will look more immediately familiar to other open-source devs
  3. The HTML semantics from using theadmonition class are wrong. GFM alertslook like blockquotes, but the HTML that GitHub translates them into is actually plain paragraph text. Adding quote semantics to non-quoted text definitely feels like a bug
  4. All READMEs that currently use theadmonition class render properly in the Coder docs, but don't render properly in GitHub itself. Ideally I'd make it so that there's one way of making alerts, and it works everywhere

@lucasmelin Sorry for the confusion – you did absolutely nothing wrong, especially with a lot of this still being undocumented. I'd say to sit back until Atif responds, but you may end up needing to swap back to your previous commit

lucasmelin reacted with thumbs up emoji

@matifali
Copy link
Member

matifali commentedMar 3, 2025
edited
Loading

@Parkreiner, I would be all in for supporting GFM over our custom callouts. The benefit is consistency on our side and GitHub.

If its easy to support, I would love to see us supporting GFM on Coder docs.

aqandrew reacted with thumbs up emoji

@Parkreiner
Copy link
Member

@lucasmelin I went ahead and bumped the ticket for updating Coder.com to start rendering GFM alerts properly. My team is still figuring out some sprint priorities, but depending on how things go, I might be able to tackle that issue later this week

In the meantime, could you swap back to the GFM alert syntax? I think there's enough consensus at Coder that we want to treat GFM as the standard, and treat any cases where we don't conform to it as a bug

lucasmelin reacted with thumbs up emojimatifali reacted with heart emoji

@lucasmelin
Copy link
ContributorAuthor

Switched back to GFM note callouts for the documentation located in thedocs/ directory in225c08b.

Copy link
Member

@ParkreinerParkreiner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thanks for doing this! I'm going to try to update the Docs site as soon as my current work is wrapped up

lucasmelin and matifali reacted with heart emoji
@Parkreiner
Copy link
Member

Going to be merging this in for you right now. One of other engineers (@aqandrew) was kind enough to open up a PR for updating the Coder.com site to parse GFM properly

The Docs site should hopefully be all fixed up in the next few hours

@ParkreinerParkreiner merged commitdb064ed intocoder:mainMar 7, 2025
31 checks passed
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsMar 7, 2025
@matifali
Copy link
Member

@EdwardAngert, can you please do a follow-up PR to update all remaining callouts to GFM alerts?
Thanks <3.

@aqandrew
Copy link

Thank you for the PR@lucasmelin! coder.com/docs now renders these GFM alerts correctly.

image

@EdwardAngert
Copy link
Contributor

😮 ❣️

@EdwardAngert
Copy link
Contributor

thanks y'all!

I'm starting a PR to find all the other callouts

for me:GitHub docs: alerts

Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@ParkreinerParkreinerParkreiner approved these changes

Assignees

@lucasmelinlucasmelin

Labels
communityPull Requests and issues created by the community.
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

6 participants
@lucasmelin@ethanndickson@Parkreiner@matifali@aqandrew@EdwardAngert

[8]ページ先頭

©2009-2025 Movatter.jp