[docs] Reorganise colorLib docs (#1936)

Does not add any new documentation (there is already some documentation for user-facing functions). It just makes colorLib.builder the top-level documentation entry, because that’s the part the user needs to care about.
This commit is contained in:
Simon Cozens 2020-05-12 11:19:17 +01:00 committed by GitHub
parent 94cb1759f7
commit a114ec2c20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 26 deletions

View File

@ -1,8 +0,0 @@
#######
builder
#######
.. automodule:: fontTools.colorLib.builder
:inherited-members:
:members:
:undoc-members:

View File

@ -1,8 +0,0 @@
######
errors
######
.. automodule:: fontTools.colorLib.errors
:inherited-members:
:members:
:undoc-members:

View File

@ -1,14 +1,11 @@
########
colorLib
########
#####################################################
colorLib.builder: Build COLR/CPAL tables from scratch
#####################################################
.. toctree::
:maxdepth: 1
.. automodule:: fontTools.colorLib.builder
:members: buildCPAL, buildCOLR, populateCOLRv0
builder
errors
.. automodule:: fontTools.colorLib
.. autoclass:: fontTools.colorLib.builder.ColorPaletteType
:inherited-members:
:members:
:undoc-members:
:undoc-members:

View File

@ -1,3 +1,7 @@
"""
colorLib.builder: Build COLR/CPAL tables from scratch
"""
import collections
import copy
import enum