derberg / python-mqtt-client-template

This template generates MQTT Python client module. Its purpose is to abstract for the application client technical information about the broker and the names of topics it should use. Instead, it generates a module that provides a set of indent-driven functions that one can invoke to send a message to the application through the message broker.
2 stars 1 forks source link

Make sure that steps in readme are rendered on a condition of existance #21

Open derberg opened 2 weeks ago

derberg commented 2 weeks ago

So basically if you have send operations then return step about example usage of generated send functions, otherwise you should not render those

Same with receive

Example, if you have this step:

<Text newLines={2}>
        4. Example functions on how to receive messages :
      </Text>

      <Text>
        ```python
      </Text>

      <Text>
        {receiveFunctionExample(receiveFunctions)}
      </Text>

      <Text>
  </Text>


probably best solution is to create a dedicated react component, and return it only on a condition that there really are receive functions
thulieblack commented 2 weeks ago

Resource: https://fathom.video/share/4YxAGR4ixFoMzzCT45byzHN57DdMZmJ_