rerun-io / rerun

Visualize streams of multimodal data. Free, fast, easy to use, and simple to integrate. Built in Rust.
https://rerun.io/
Apache License 2.0
6.5k stars 320 forks source link

Versioned GitHub repository links from our docs #6077

Open emilk opened 6 months ago

emilk commented 6 months ago

We link to files on GitHub quite often in our docs.

For instance, we link to https://github.com/rerun-io/rerun/blob/main/examples/python/log_file/main.py The problem is that that file is gone. We should have linked to https://github.com/rerun-io/rerun/blob/0.15.0/examples/python/log_file/main.py instead

So how do we solve this?

Unclear

Immediate problems for 0.16 release

(Fixed in https://github.com/rerun-io/rerun/pull/6331)

examples/cpp/external_data_loader/README.md
3:python: https://github.com/rerun-io/rerun/tree/latest/examples/python/external_data_loader/main.py

examples/rust/external_data_loader/README.md
3:python: https://github.com/rerun-io/rerun/tree/latest/examples/python/external_data_loader/main.py

examples/python/external_data_loader/README.md
3:python: https://github.com/rerun-io/rerun/tree/latest/examples/python/external_data_loader/main.py

docs/content/reference/sdk-operating-modes.md
93:Check out our [dedicated example](https://github.com/rerun-io/rerun/tree/latest/examples/python/stdio/main.py).

docs/content/getting-started/data-in/python.md
16:At any time, you can checkout the complete code listing for this tutorial [here](https://github.com/rerun-io/rerun/tree/latest/examples/python/dna/main.py) to better keep track of the overall picture.

Related

jleibs commented 6 months ago

Just had a user run into errors when trying to run https://www.rerun.io/docs/howto/extend/extend-ui since they copied code from that link into their own project, and ended up using in-flux 0.16 APIs against the 0.15 release.

Wumpf commented 5 months ago

Everything that is mentioned in an examples/ README.md should actually be trivial to solve: just do relative paths. landing has to understand that ofc then