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

docs: glossary, keyword matching and tool-tips #34155

Closed
wants to merge 5 commits into from

Conversation

LouisVelez
Copy link
Contributor

@LouisVelez LouisVelez commented Dec 5, 2024

Closes #33117

Replaced by #34231

@LouisVelez
Copy link
Contributor Author

Creating a draft since there are a few issues I need to fix. And I want to review the whole doc.

Copy link
Contributor

@github-actions github-actions bot 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 contributing to openpilot! In order for us to review your PR as quickly as possible, check the following:

  • Convert your PR to a draft unless it's ready to review
  • Read the contributing docs
  • Before marking as "ready for review", ensure:
    • the goal is clearly stated in the description
    • all the tests are passing
    • the change is something we merge
    • include a route or your device' dongle ID if relevant

@LouisVelez LouisVelez marked this pull request as ready for review December 5, 2024 04:33
@LouisVelez
Copy link
Contributor Author

Did a few changes to allow links within the tooltip description to work. Also added a link to go to the glossary from the tooltip.

Glossary:

image

Keyword matching:

image

Tooltip:

image

allows highlighting/copy

image

links in descriptions

image

Tapping out for the day.

@LouisVelez
Copy link
Contributor Author

LouisVelez commented Dec 5, 2024

Just noticed the panda link is breaking when the main doc has a markdown link. Will look into it...
image

EDIT
Fixed!

@LouisVelez LouisVelez changed the title glossary with tool-tips docs: glossary, keyword matching and tool-tips Dec 5, 2024
@LouisVelez
Copy link
Contributor Author

LouisVelez commented Dec 5, 2024

@maxime-desroches is it ok if I add some flags for the linter to ignore the problem code? Or I'm open to other suggestions. See

@maxime-desroches
Copy link
Contributor

No we have to fix the code. ruff offers nice descriptions for each errors:
https://docs.astral.sh/ruff/rules/function-uses-loop-variable/
https://docs.astral.sh/ruff/rules/multi-line-implicit-string-concatenation/

@LouisVelez
Copy link
Contributor Author

LouisVelez commented Dec 6, 2024

No we have to fix the code. ruff offers nice descriptions for each errors: https://docs.astral.sh/ruff/rules/function-uses-loop-variable/ https://docs.astral.sh/ruff/rules/multi-line-implicit-string-concatenation/

@maxime-desroches That was very helpful, thank you. Code fixed, latest static analysis run

@LouisVelez LouisVelez mentioned this pull request Dec 6, 2024
Copy link
Contributor

@adeebshihadeh adeebshihadeh left a comment

Choose a reason for hiding this comment

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

Nice work! TODOs

  • split out anything that's not related to the glossary infra
  • can you also split out the new terms added to the glossary?

@@ -18,7 +18,7 @@ concurrency:
jobs:
docs:
name: build docs
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
Copy link
Contributor

Choose a reason for hiding this comment

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

revert this

@@ -14,23 +14,24 @@ Development is coordinated through [Discord](https://discord.comma.ai) and GitHu
## What contributions are we looking for?

**openpilot's priorities are [safety](SAFETY.md), stability, quality, and features, in that order.**
openpilot is part of comma's mission to *solve self-driving cars while delivering shippable intermediaries*, and all development is towards that goal.
openpilot is part of comma's mission to *solve self-driving cars while delivering shippable intermediaries*, and all development is towards that goal.
Copy link
Contributor

Choose a reason for hiding this comment

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

this should be its own PR

@@ -2,4 +2,4 @@

A brand port is a port of openpilot to a substantially new car brand or platform within a brand.

Here's an example of one: https://github.com/commaai/openpilot/pull/23331.
Here's an example of one: [PR-23331](https://github.com/commaai/openpilot/pull/23331).
Copy link
Contributor

Choose a reason for hiding this comment

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

same, this PR shouldn't change any content

import re
import tomllib

with open("docs/glossary.toml", "rb") as f:
Copy link
Contributor

Choose a reason for hiding this comment

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

don't do this at import time

@@ -31,7 +36,7 @@ nav:
- Contributing:
- Roadmap: contributing/roadmap.md
#- Architecture: contributing/architecture.md
- Contributing Guide →: https://github.com/commaai/openpilot/blob/master/docs/CONTRIBUTING.md
- Contributing Guide: CONTRIBUTING.md
Copy link
Contributor

Choose a reason for hiding this comment

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

split this out

@adeebshihadeh adeebshihadeh marked this pull request as draft December 11, 2024 22:17
@LouisVelez
Copy link
Contributor Author

LouisVelez commented Dec 12, 2024

Nice work! TODOs

  • split out anything that's not related to the glossary infra

  • can you also split out the new terms added to the glossary?

Just to make sure I understand correctly:

1 PR for infra only

1 PR for the terms additions.

1 PR for the changes in the content files (markdowns).

Does this sound correct?

@adeebshihadeh
Copy link
Contributor

Yeah, and potentially even split out the content changes per-page.

@LouisVelez
Copy link
Contributor Author

@adeebshihadeh , going to close this PR and submit the individuals just to start clean.

@LouisVelez LouisVelez closed this Dec 14, 2024
@LouisVelez LouisVelez mentioned this pull request Dec 14, 2024
2 tasks
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.

docs: setup glossary
3 participants