docs: examples that references code should link to actual files in github
The rendered docs/examples on read the docs references examples we have in github but some pages do not properly link them and so it's hard for an end user to find the code. For example
https://opentelemetry-python.readthedocs.io/en/stable/examples/metrics/views/README.html lists a bunch of python files but these are not linked to github.
An example with a proper link is https://opentelemetry-python.readthedocs.io/en/stable/examples/django/README.html that is docs/examples/django/README.rst.
So we should review all the content of docs/examples and add proper :scm_web: links.
I will take this one. I will review the example READMEs and add :scm_web: links for the referenced code files.
There are 4 open PRs for this issue: #5428, #5433, #5484, #5515. None of them is
complete on its own. #5515 covers the 6 READMEs that were missing :scm_web:
plus metrics/views, and #5484 is the only one that also does metrics/reader.
@xrmx could you answer the question left open in #5428 ?
metrics/views/README.rst already links the directory, so the actual question is
whether the individual .py filenames in the bullet list should be linked too.
#5484 and #5515 both assumed yes. An answer would unblock all four PRs.
Also worth a look before merging #5433: it changes /var/log/general.log to
/var/log.general.log in the sqlcommenter README, which looks unintended.
Thanks for the heads up @Eason09053360
There are 4 open PRs for this issue: #5428, #5433, #5484, #5515. None of them is complete on its own. #5515 covers the 6 READMEs that were missing
:scm_web:plusmetrics/views, and #5484 is the only one that also doesmetrics/reader.
What a waste of compute and reviewers time 😓 There's also #5429 that didn't reference the issue but it's related.
@xrmx could you answer the question left open in #5428 ?
metrics/views/README.rstalready links the directory, so the actual question is whether the individual.pyfilenames in the bullet list should be linked too. #5484 and #5515 both assumed yes. An answer would unblock all four PRs.
Answered, thanks!
Also worth a look before merging #5433: it changes
/var/log/general.logto/var/log.general.login the sqlcommenter README, which looks unintended.
Feel free to comment on the PR directly when you spot something.
I would wait a bit to see if #5428 author is interested in updating it, if not if it's fine but incomplete I'll merge it anyway. And then we can see what's left. A couple of PRs are not CLA clean since weeks and so I guess we can close them.
i want to work this issue
Merged #5428 and closed all the other dups. If #5484 author signs the CLA I think we are good.
Merged #5484 and a followup #5606