def conf ( self ) : return self . env . get_template ( 'conf.py.j2' ) . render ( metadata = self . metadata , package = self . package )
python render jinjia yaml template
Generate the Sphinx conf . py configuration file
def conf(self):
        """Generate the Sphinx `conf.py` configuration file

        Returns:
            (str): the contents of the `conf.py` file.
        """
        return self.env.get_template('conf.py.j2').render(
            metadata=self.metadata,
            package=self.package)