iterative / cml.dev

🔗 CML website and documentation
https://cml.dev
Apache License 2.0
13 stars 23 forks source link

How to stop this auto-hyperlinking? #424

Closed rogermparent closed 1 year ago

rogermparent commented 1 year ago

@iterative/websites any idea how to stop cml runner launch ... --cloud=aws --labels=cml-gpu from auto-hyperlinking to /doc/ref/runner#--cloud?

_Originally posted by @casperdcl in https://github.com/iterative/cml.dev/pull/417#discussion_r1046469804_

Seems like our args auto-linker's flag reading functionality includes instances where more than one flag is given. While minor, this doesn't make much sense so we should probably restrict the linking to when only one argument is present.

jorgeorpinel commented 1 year ago

It's based on this file in the theme but the logic (not sure where) is not very strict and tries to find something to link to within the corresponding cmd ref.

I've raised this in the past: https://github.com/iterative/gatsby-theme-iterative/issues/156