diff --git a/kibot/kiplot.py b/kibot/kiplot.py index 7f1689c7..7663ed3f 100644 --- a/kibot/kiplot.py +++ b/kibot/kiplot.py @@ -808,7 +808,8 @@ def generate_one_example(dest_dir): outputs = [] for n, cls in OrderedDict(sorted(outs.items())).items(): o = cls() - if not(o.is_pcb() and GS.pcb_file) and not(o.is_sch() and GS.sch_file): + if ((not(o.is_pcb() and GS.pcb_file) and not(o.is_sch() and GS.sch_file)) or + ((o.is_pcb() and o.is_sch()) and (not GS.pcb_file or not GS.sch_file))): logger.debug('- {}, skipped (PCB: {} SCH: {})'.format(n, o.is_pcb(), o.is_sch())) continue # Look for templates diff --git a/kibot/out_qr_lib.py b/kibot/out_qr_lib.py index 1d4cc677..77baa0fc 100644 --- a/kibot/out_qr_lib.py +++ b/kibot/out_qr_lib.py @@ -531,3 +531,15 @@ class QR_Lib(BaseOutput): # noqa: F821 """ [dict] Options for the `boardview` output """ self._both_related = True self._update_mode = False + + @staticmethod + def get_conf_examples(name, layers, templates): + gb = {} + gb['name'] = 'basic_qr_lib_example' + gb['comment'] = 'QR code symbol and footprint example' + gb['type'] = name + gb['dir'] = 'QR_libs' + qr1 = {'correction_level': 'medium', 'name': 'QR_data', 'pcb_negative': True} + qr2 = {'correction_level': 'medium', 'name': 'QR_kibot', 'text': 'https://github.com/INTI-CMNB/KiBot/'} + gb['options'] = {'qrs': [qr1, qr2], 'use_sch_dir': False} + return [gb]