KiBoM icon indicating copy to clipboard operation
KiBoM copied to clipboard

Adds an option to make a column to contain datasheet links

Open set-soft opened this issue 4 years ago • 4 comments

Replaces #79

Description

Having a separated column for the datasheet is an overkill. We can make that another column contains this information as a link. The part number is a suitable column.

This patch allows configuring it.

How to use

Define the datasheet_as_link option in the configuration file (i.e. bom.ini).

The value for this option is the column you want to convert into a link to the datasheet. Example:

datasheet_as_link = manf#

This will make entries in the column manf# (manufacturer part number) links to the datasheet.

Limitations

Only available for HTML

set-soft avatar Jul 17 '20 01:07 set-soft

Rebased it so it can cleanly apply. I saw a chunk of code missing from the "digikey_link_2" patch, but I plan to fix it with anoter PR. But I need this merged or the other will be pure conflicts ;-)

set-soft avatar Jul 18 '20 14:07 set-soft

Hi @set-soft please fix issues with preferences.py cheers

SchrodingersGat avatar Feb 11 '21 23:02 SchrodingersGat

Hi @SchrodingersGat ! Ok, I did a rebase using your current HEAD. Solved the conflict with ref_separator now you should be able to apply it.

set-soft avatar Feb 12 '21 19:02 set-soft

Thanks @set-soft - looks like there's a small style error though - https://travis-ci.org/github/SchrodingersGat/KiBoM/jobs/758740224

SchrodingersGat avatar Feb 13 '21 09:02 SchrodingersGat

Hi @SchrodingersGat ! I didn't notice the https://travis-ci.org/github/SchrodingersGat/KiBoM/jobs/758740224 link, and now the logs are gone. Running flake8 on my system doesn't report errors.

set-soft avatar Nov 08 '22 17:11 set-soft

@set-soft yeah this one is from a while ago. As it is passing now, I'm happy to merge it in.

SchrodingersGat avatar Nov 09 '22 06:11 SchrodingersGat