Skip to content
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

Add href anchors for each sig entry in README tables #2449

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

trask
Copy link
Member

@trask trask commented Nov 21, 2024

As part of cleaning up meeting docs in #1809, it would be nice to be able to link directly to each SIG entry in the community readme.

Copy link
Member

@svrnm svrnm left a comment

Choose a reason for hiding this comment

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

I love this! I ran into this problem so often that I wanted to link to a SIG and didn't have an anchor for that, so this is great.

To put this out for discussion, although I see advantages in both solutions, we could also turn this table into a list of sections, so instead of each SIG having a row we could go

### Specification: General

* Meeting Time: ...
* Meeting Notes: ... 
* Slack Channel: ...

That way we could even have a quick description above.

Although this would make the document muuuuuch longer.

@@ -91,9 +96,9 @@ def format_chat(chat):
calendar = f"[{invites}](https://groups.google.com/a/opentelemetry.io/g/{invites})"

if group_name == "Specification SIGs":
markdown_content += f"| {name} | {meeting} | {notes} | {chats} | {calendar} | {tc_sponsors} | {gc_liaison} | \n"
markdown_content += f"| <a href=\"{short_name}\"></a>{name} | {meeting} | {notes} | {chats} | {calendar} | {tc_sponsors} | {gc_liaison} | \n"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
markdown_content += f"| <a href=\"{short_name}\"></a>{name} | {meeting} | {notes} | {chats} | {calendar} | {tc_sponsors} | {gc_liaison} | \n"
markdown_content += f"| <a id=\"{short_name}\"></a>{name} | {meeting} | {notes} | {chats} | {calendar} | {tc_sponsors} | {gc_liaison} | \n"

Based on fragment navigation, set this to id or name.

else:
markdown_content += f"| {name} | {meeting} | {notes} | {chats} | {calendar} | {gc_liaison} |\n"
markdown_content += f"| <a href=\"{short_name}\"></a>{name} | {meeting} | {notes} | {chats} | {calendar} | {gc_liaison} |\n"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
markdown_content += f"| <a href=\"{short_name}\"></a>{name} | {meeting} | {notes} | {chats} | {calendar} | {gc_liaison} |\n"
markdown_content += f"| <a id=\"{short_name}\"></a>{name} | {meeting} | {notes} | {chats} | {calendar} | {gc_liaison} |\n"

short_name = None
for chat in sig.get('chat', []):
if chat.get('type') == 'slack':
short_name = chat.get('name').replace('#otel-', '')
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
short_name = chat.get('name').replace('#otel-', '')
short_name = chat.get('name').replace('#', '')

I would keep a kind of prefix for this, otherwise if we ever have a section called "Maintainers" or "Collector", etc we create a conflict. My preference would be "sig" but since we have some of them already maybe stick with otel?

Or we "urlify" the name?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants