Skip to content

Commit

Permalink
Fix up automatic profile documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncozens committed Feb 22, 2024
1 parent 626947b commit 4d775a7
Show file tree
Hide file tree
Showing 30 changed files with 100 additions and 868 deletions.
718 changes: 67 additions & 651 deletions Lib/fontbakery/sphinx_extensions/profile.py

Large diffs are not rendered by default.

12 changes: 4 additions & 8 deletions docs/source/fontbakery/profiles/adobefonts.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
##########
adobefonts
##########
###########
Adobe Fonts
###########

All vendor-specific profiles such as the `adobefonts` one also include the checks from the :doc:`universal` profile.

.. automodule:: fontbakery.profiles.adobefonts
:members:
:undoc-members:
.. autoprofile:: fontbakery.profiles.adobefonts
7 changes: 0 additions & 7 deletions docs/source/fontbakery/profiles/cff.rst

This file was deleted.

7 changes: 0 additions & 7 deletions docs/source/fontbakery/profiles/cmap.rst

This file was deleted.

7 changes: 0 additions & 7 deletions docs/source/fontbakery/profiles/dsig.rst

This file was deleted.

12 changes: 4 additions & 8 deletions docs/source/fontbakery/profiles/fontbureau.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
##########
fontbureau
##########
###########
Font Bureau
###########

All vendor-specific profiles such as the `fontbureau` one also include the checks from the :doc:`universal` profile.

.. automodule:: fontbakery.profiles.fontbureau
:members:
:undoc-members:
.. autoprofile:: fontbakery.profiles.fontbureau
10 changes: 4 additions & 6 deletions docs/source/fontbakery/profiles/fontval.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#######
fontval
#######
########################
Microsoft Font Validator
########################

.. automodule:: fontbakery.profiles.fontval
:members:
:undoc-members:
.. autoprofile:: fontbakery.profiles.fontval
11 changes: 2 additions & 9 deletions docs/source/fontbakery/profiles/fontwerk.rst
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
########
fontwerk
Fontwerk
########

All vendor-specific profiles such as the `fontwerk` one also include the checks from the :doc:`universal` profile. Fontwerk also includes most checks from the :doc:`googlefonts` profile, except these:

.. literalinclude:: ../../../../Lib/fontbakery/profiles/fontwerk.py
:pyobject: leave_this_one_out

.. automodule:: fontbakery.profiles.fontwerk
:members:
:undoc-members:
.. autoprofile:: fontbakery.profiles.fontwerk
7 changes: 0 additions & 7 deletions docs/source/fontbakery/profiles/fvar.rst

This file was deleted.

7 changes: 0 additions & 7 deletions docs/source/fontbakery/profiles/gdef.rst

This file was deleted.

7 changes: 0 additions & 7 deletions docs/source/fontbakery/profiles/glyf.rst

This file was deleted.

12 changes: 4 additions & 8 deletions docs/source/fontbakery/profiles/googlefonts.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
###########
googlefonts
###########
############
Google Fonts
############

All vendor-specific profiles such as the `googlefonts` one also include the checks from the :doc:`universal` profile.

.. automodule:: fontbakery.profiles.googlefonts
:members:
:undoc-members:
.. autoprofile:: fontbakery.profiles.googlefonts
7 changes: 0 additions & 7 deletions docs/source/fontbakery/profiles/googlefonts_conditions.rst

This file was deleted.

7 changes: 0 additions & 7 deletions docs/source/fontbakery/profiles/gpos.rst

This file was deleted.

7 changes: 0 additions & 7 deletions docs/source/fontbakery/profiles/head.rst

This file was deleted.

7 changes: 0 additions & 7 deletions docs/source/fontbakery/profiles/hhea.rst

This file was deleted.

8 changes: 0 additions & 8 deletions docs/source/fontbakery/profiles/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,5 @@ profiles
fontval
ufo_sources
iso15008
layout
outline
shaping
shared_conditions
googlefonts_conditions


.. automodule:: fontbakery.profiles
:members:
:undoc-members:
6 changes: 2 additions & 4 deletions docs/source/fontbakery/profiles/iso15008.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
########
iso15008
ISO15008
########

.. automodule:: fontbakery.profiles.iso15008
:members:
:undoc-members:
.. autoprofile:: fontbakery.profiles.iso15008
7 changes: 0 additions & 7 deletions docs/source/fontbakery/profiles/kern.rst

This file was deleted.

7 changes: 0 additions & 7 deletions docs/source/fontbakery/profiles/layout.rst

This file was deleted.

7 changes: 0 additions & 7 deletions docs/source/fontbakery/profiles/loca.rst

This file was deleted.

7 changes: 0 additions & 7 deletions docs/source/fontbakery/profiles/name.rst

This file was deleted.

12 changes: 4 additions & 8 deletions docs/source/fontbakery/profiles/notofonts.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
#########
notofonts
#########
##########
Noto Fonts
##########

All vendor-specific profiles such as the `notofonts` one also include the checks from the :doc:`universal` profile.

.. automodule:: fontbakery.profiles.notofonts
:members:
:undoc-members:
.. autoprofile:: fontbakery.profiles.notofonts
30 changes: 3 additions & 27 deletions docs/source/fontbakery/profiles/opentype.rst
Original file line number Diff line number Diff line change
@@ -1,30 +1,6 @@
########
opentype
Opentype
########

The checks of the `opentype` profile are separated in one sub-profile for each of the Open Type tables as listed below:

.. toctree::
:maxdepth: 1

cff
cmap
dsig
fvar
gdef
glyf
gpos
head
hhea
kern
loca
name
os2
post
layout

.. automodule:: fontbakery.profiles.opentype
:members:
:undoc-members:

.. automodule:: fontbakery.profiles
.. autoprofile:: fontbakery.profiles.opentype

7 changes: 0 additions & 7 deletions docs/source/fontbakery/profiles/os2.rst

This file was deleted.

6 changes: 2 additions & 4 deletions docs/source/fontbakery/profiles/outline.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#######
outline
Outline
#######

.. automodule:: fontbakery.profiles.outline
:members:
:undoc-members:
.. autoprofile:: fontbakery.profiles.outline
7 changes: 0 additions & 7 deletions docs/source/fontbakery/profiles/post.rst

This file was deleted.

6 changes: 2 additions & 4 deletions docs/source/fontbakery/profiles/shaping.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#######
shaping
Shaping
#######

.. automodule:: fontbakery.profiles.shaping
:members:
:undoc-members:
.. autoprofile:: fontbakery.profiles.shaping
7 changes: 0 additions & 7 deletions docs/source/fontbakery/profiles/shared_conditions.rst

This file was deleted.

6 changes: 2 additions & 4 deletions docs/source/fontbakery/profiles/ufo_sources.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
###########
ufo_sources
UFO Sources
###########

.. automodule:: fontbakery.profiles.ufo_sources
:members:
:undoc-members:
.. autoprofile:: fontbakery.profiles.ufo_sources

0 comments on commit 4d775a7

Please sign in to comment.