<project name="streamsx.topology.python" default="pythondoc" >
    <description>
        Build the streamsx.topology Python doc.
    </description>

  <import file="../common-build.xml"/>
  <property name="py.doc" location="${tk.doc}/pythondoc"/>
  <property name="sphinx.dir" location="sphinx"/>
  <property name="streamsx.py.dir" location="${tk}/opt/python/packages"/>

  <property name="topology.build.sphinx" value="yes"/>

  <target name="pythondoc" depends="pythondoc_work,pythondoc_warning"/>

  <target name="pythondoc_warning" unless="${topology.build.sphinx}">
     <echo message="Python documentation not being built! topology.build.sphinx=${topology.build.sphinx}"/>
  </target>

  <target name="pythondoc_work" if="${topology.build.sphinx}">
   <exec executable="make"
         dir="${sphinx.dir}" failonerror="true">
     <arg value="clean"/>
     <arg value="html"/>
   </exec>
   <copy todir="${py.doc}">
     <fileset dir="${sphinx.dir}/build/html"/>
   </copy>

   </target>

  <target name="clean">
    <delete dir="${pydoc}"/>
    <delete dir="${sphinx.dir}/build"/>
    <delete>
     <fileset dir="${sphinx.dir}/source"
       includes="*.rst"
       excludes="index.rst"/>
   </delete>
  </target>
</project>

<project name="streamsx.topology.python" default="pythondoc" >
    <description>
        Build the streamsx.topology Python doc.
    </description>

  <import file="../common-build.xml"/>
  <property name="py.doc" location="${tk.doc}/pythondoc"/>
  <property name="sphinx.dir" location="sphinx"/>
  <property name="streamsx.py.dir" location="${tk}/opt/python/packages"/>

  <property name="topology.build.sphinx" value="yes"/>

  <target name="pythondoc" depends="pythondoc_work,pythondoc_warning"/>

  <target name="pythondoc_warning" unless="${topology.build.sphinx}">
     <echo message="Python documentation not being built! topology.build.sphinx=${topology.build.sphinx}"/>
  </target>

  <target name="pythondoc_work" if="${topology.build.sphinx}">
   <exec executable="make"
         dir="${sphinx.dir}" failonerror="true">
     <arg value="clean"/>
     <arg value="html"/>
   </exec>
   <copy todir="${py.doc}">
     <fileset dir="${sphinx.dir}/build/html"/>
   </copy>

   </target>

  <target name="clean">
    <delete dir="${pydoc}"/>
    <delete dir="${sphinx.dir}/build"/>
    <delete>
     <fileset dir="${sphinx.dir}/source"
       includes="*.rst"
       excludes="index.rst service.rst pysetup.rst"/>
   </delete>
  </target>
</project>

Add new pydoc files to exclude
Add new pydoc files to exclude
